1,771 matches across 25 files for func main
snippet_mode: auto · sorted by relevance
docs/en/docs/js/custom.js JAVASCRIPT 12 matches · showing 5 view file →
1function setupTermynal() {
2 document.querySelectorAll(".use-termynal").forEach(node => {
3 node.style.display = "block";
· · ·
12 let termynals = [];
13
14 function createTermynals() {
15 document
16 .querySelectorAll(`.${termynalActivateClass} .highlight code`)
· · ·
20 const useLines = [];
21 let buffer = [];
22 function saveBuffer() {
23 if (buffer.length) {
24 let isBlankSpace = true;
· · ·
99 }
100
101 function loadVisibleTermynals() {
102 termynals = termynals.filter(termynal => {
103 if (termynal.container.getBoundingClientRect().top - innerHeight <= 0) {
· · ·
113}
114
115function shuffle(array) {
116 var currentIndex = array.length, temporaryValue, randomIndex;
117 while (0 !== currentIndex) {
+ 7 more matches in this file
fastapi/routing.py PYTHON 141 matches · showing 5 view file →
1import contextlib
2import email.message
3import functools
4import inspect
5import json
· · ·
96# dependencies' AsyncExitStack
97def request_response(
98 func: Callable[[Request], Awaitable[Response] | Response],
99) -> ASGIApp:
100 """
· · ·
101 Takes a function or coroutine `func(request) -> response`,
102 and returns an ASGI application.
103 """
· · ·
104 f: Callable[[Request], Awaitable[Response]] = (
105 func # type: ignore[assignment]
106 if is_async_callable(func)
107 else functools.partial(run_in_threadpool, func) # type: ignore[call-arg]
· · ·
106 if is_async_callable(func)
107 else functools.partial(run_in_threadpool, func) # type: ignore[call-arg]
108 ) # ty: ignore[invalid-assignment]
+ 136 more matches in this file
fastapi/dependencies/models.py PYTHON 26 matches · showing 5 view file →
3from collections.abc import Callable
4from dataclasses import dataclass, field
5from functools import cached_property, partial
6from typing import Any, Literal
7
· · ·
11
12if sys.version_info >= (3, 13): # pragma: no cover
13 from inspect import iscoroutinefunction
14else: # pragma: no cover
15 from asyncio import iscoroutinefunction
· · ·
15 from asyncio import iscoroutinefunction
16
17
· · ·
23
24
25def _impartial(func: Callable[..., Any]) -> Callable[..., Any]:
26 while isinstance(func, partial):
27 func = func.func
· · ·
26 while isinstance(func, partial):
27 func = func.func
28 return func
+ 21 more matches in this file
fastapi/applications.py PYTHON 92 matches · showing 5 view file →
41class FastAPI(Starlette):
42 """
43 `FastAPI` app class, the main entrypoint to use FastAPI.
44
45 Read more in the
· · ·
286
287 You would use it, for example, if your application is served from
288 different domains and you want to use the same Swagger UI in the
289 browser to interact with each of them (instead of having multiple
290 browser tabs open). Or if you want to leave fixed the possible URLs.
· · ·
343 from fastapi import Depends, FastAPI
344
345 from .dependencies import func_dep_1, func_dep_2
346
347 app = FastAPI(dependencies=[Depends(func_dep_1), Depends(func_dep_2)])
· · ·
347 app = FastAPI(dependencies=[Depends(func_dep_1), Depends(func_dep_2)])
348 ```
349 """
· · ·
503 Doc(
504 """
505 A list of startup event handler functions.
506
507 You should instead use the `lifespan` handlers.
+ 87 more matches in this file
fastapi/param_functions.py PYTHON 20 matches · showing 5 view file →
250
251 Swagger UI (that provides the `/docs` interface) has better support for the
252 OpenAPI-specific examples than the JSON Schema `examples`, that's the main
253 use case for this.
254
· · ·
609
610 Swagger UI (that provides the `/docs` interface) has better support for the
611 OpenAPI-specific examples than the JSON Schema `examples`, that's the main
612 use case for this.
613
· · ·
931
932 Swagger UI (that provides the `/docs` interface) has better support for the
933 OpenAPI-specific examples than the JSON Schema `examples`, that's the main
934 use case for this.
935
· · ·
1237
1238 Swagger UI (that provides the `/docs` interface) has better support for the
1239 OpenAPI-specific examples than the JSON Schema `examples`, that's the main
1240 use case for this.
1241
· · ·
1565
1566 Swagger UI (that provides the `/docs` interface) has better support for the
1567 OpenAPI-specific examples than the JSON Schema `examples`, that's the main
1568 use case for this.
1569
+ 15 more matches in this file
scripts/translate.py PYTHON 2 matches view file →
3import subprocess
4from collections.abc import Iterable
5from functools import lru_cache
6from os import sep as pathsep
7from pathlib import Path
· · ·
482
483
484if __name__ == "__main__":
485 app()
486
fastapi/sse.py PYTHON 2 matches view file →
28
29 The actual encoding logic lives in the FastAPI routing layer. This class
30 serves mainly as a marker and sets the correct `Content-Type`.
31 """
32
· · ·
53 """Represents a single Server-Sent Event.
54
55 When `yield`ed from a *path operation function* that uses
56 `response_class=EventSourceResponse`, each `ServerSentEvent` is encoded
57 into the [SSE wire format](https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream)
fastapi/cli.py PYTHON 5 matches view file →
1try:
2 from fastapi_cli.cli import main as cli_main
3
4except ImportError: # pragma: no cover
· · ·
5 cli_main = None # type: ignore
6
7
· · ·
8def main() -> None:
9 if not cli_main: # type: ignore[truthy-function]
10 message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
· · ·
9 if not cli_main: # type: ignore[truthy-function]
10 message = 'To use the fastapi command, please install "fastapi[standard]":\n\n\tpip install "fastapi[standard]"\n'
11 print(message)
· · ·
12 raise RuntimeError(message) # noqa: B904
13 cli_main()
14
fastapi/openapi/models.py PYTHON 3 matches view file →
3from typing import Annotated, Any, Literal, Optional, Union
4
5from fastapi._compat import with_info_plain_validator_function
6from fastapi.logger import logger
7from pydantic import (
· · ·
52 cls, source: type[Any], handler: Callable[[Any], Mapping[str, Any]]
53 ) -> Mapping[str, Any]:
54 return with_info_plain_validator_function(cls._validate)
55
56
· · ·
191 writeOnly: bool | None = None
192 examples: list[Any] | None = None
193 # Ref: OpenAPI 3.1.0: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#schema-object
194 # Schema Object
195 discriminator: Discriminator | None = None
pyproject.toml TOML 2 matches view file →
118
119[project.scripts]
120fastapi = "fastapi.cli:main"
121
122[dependency-groups]
· · ·
274ignore = [
275 "E501", # line too long, handled by black
276 "B008", # do not perform function calls in argument defaults
277 "C901", # too complex
278]
docs/en/docs/advanced/security/index.md MARKDOWN 2 matches view file →
15## Read the Tutorial first { #read-the-tutorial-first }
16
17The next sections assume you already read the main [Tutorial - User Guide: Security](../../tutorial/security/index.md).
18
19They are all based on the same concepts, but allow some extra functionalities.
· · ·
19They are all based on the same concepts, but allow some extra functionalities.
20
docs/en/docs/reference/dependencies.md MARKDOWN 1 matches view file →
3## `Depends()`
4
5Dependencies are handled mainly with the special function `Depends()` that takes a callable.
6
7Here is the reference for it and its parameters.
docs/en/docs/tutorial/testing.md MARKDOWN 18 matches · showing 5 view file →
25Create a `TestClient` by passing your **FastAPI** application to it.
26
27Create functions with a name that starts with `test_` (this is standard `pytest` conventions).
28
29Use the `TestClient` object the same way as you do with `httpx`.
· · ·
35/// tip
36
37Notice that the testing functions are normal `def`, not `async def`.
38
39And the calls to the client are also normal calls, not using `await`.
· · ·
53/// tip
54
55If you want to call `async` functions in your tests apart from sending requests to your FastAPI application (e.g. asynchronous database functions), have a look at the [Async Tests](../advanced/async-tests.md) in the advanced tutorial.
56
57///
· · ·
71├── app
72│   ├── __init__.py
73│   └── main.py
74```
75
· · ·
76In the file `main.py` you have your **FastAPI** app:
77
78
+ 13 more matches in this file
docs/pt/llm-prompt.md MARKDOWN 6 matches · showing 5 view file →
18- Merge repeated words naturally while keeping the meaning.
19- Do **not** introduce extra words to replace repeated phrases unnecessarily.
20- Keep translations fluent and concise, but maintain the original meaning.
21
22**Example:**
· · ·
26
27Avoid translating literally as:
28Vamos ver como isso funciona e como alterar isso se você precisar fazer isso.
29
30Better translation:
· · ·
31Vamos ver como isso funciona e como alterar se você precisar.
32
33---
· · ·
50* bug: bug
51* context manager: gerenciador de contexto
52* cross domain: cross domain (do not translate to "domínio cruzado")
53* cross origin: cross origin (do not translate to "origem cruzada")
54* Cross-Origin Resource Sharing: Cross-Origin Resource Sharing (do not translate to "Compartilhamento de Recursos de Origem Cruzada")
· · ·
60* FastAPI app: aplicação FastAPI
61* framework: framework (do not translate)
62* feature: funcionalidade
63* guides: tutoriais
64* I/O (as in "input and output"): I/O (do not translate to "E/S")
+ 1 more matches in this file
docs/es/docs/tutorial/testing.md MARKDOWN 18 matches · showing 5 view file →
25Crea un `TestClient` pasándole tu aplicación de **FastAPI**.
26
27Crea funciones con un nombre que comience con `test_` (esta es la convención estándar de `pytest`).
28
29Usa el objeto `TestClient` de la misma manera que con `httpx`.
· · ·
35/// tip | Consejo
36
37Nota que las funciones de prueba son `def` normales, no `async def`.
38
39Y las llamadas al cliente también son llamadas normales, sin usar `await`.
· · ·
53/// tip | Consejo
54
55Si quieres llamar a funciones `async` en tus pruebas además de enviar requests a tu aplicación FastAPI (por ejemplo, funciones asincrónicas de bases de datos), echa un vistazo a las [Pruebas Asincrónicas](../advanced/async-tests.md) en el tutorial avanzado.
56
57///
· · ·
71├── app
72│   ├── __init__.py
73│   └── main.py
74```
75
· · ·
76En el archivo `main.py` tienes tu aplicación de **FastAPI**:
77
78
+ 13 more matches in this file
docs/en/docs/advanced/settings.md MARKDOWN 31 matches · showing 5 view file →
80
81```console
82$ ADMIN_EMAIL="deadpool@example.com" APP_NAME="ChimichangApp" fastapi run main.py
83
84<span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
· · ·
107{* ../../docs_src/settings/app01_py310/config.py *}
108
109And then use it in a file `main.py`:
110
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
· · ·
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
112
113/// tip
· · ·
131Notice that now we don't create a default instance `settings = Settings()`.
132
133### The main app file { #the-main-app-file }
134
135Now we create a dependency that returns a new `config.Settings()`.
· · ·
136
137{* ../../docs_src/settings/app02_an_py310/main.py hl[6,12:13] *}
138
139/// tip
+ 26 more matches in this file
docs/zh-hant/docs/advanced/settings.md MARKDOWN 24 matches · showing 5 view file →
80
81```console
82$ ADMIN_EMAIL="deadpool@example.com" APP_NAME="ChimichangApp" fastapi run main.py
83
84<span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
· · ·
107{* ../../docs_src/settings/app01_py310/config.py *}
108
109然後在 `main.py` 檔案中使用它:
110
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
· · ·
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
112
113/// tip
· · ·
131注意現在我們不再建立預設實例 `settings = Settings()`。
132
133### 主應用程式檔案 { #the-main-app-file }
134
135現在我們建立一個相依,回傳新的 `config.Settings()`。
· · ·
136
137{* ../../docs_src/settings/app02_an_py310/main.py hl[6,12:13] *}
138
139/// tip
+ 19 more matches in this file
docs/es/docs/tutorial/index.md MARKDOWN 8 matches · showing 5 view file →
1# Tutorial - Guía del Usuario { #tutorial-user-guide }
2
3Este tutorial te muestra cómo usar **FastAPI** con la mayoría de sus funcionalidades, paso a paso.
4
5Cada sección se basa gradualmente en las anteriores, pero está estructurada para separar temas, de manera que puedas ir directamente a cualquier sección específica para resolver tus necesidades específicas de API.
· · ·
6
7También está diseñado para funcionar como una referencia futura para que puedas volver y ver exactamente lo que necesitas.
8
9## Ejecuta el código { #run-the-code }
· · ·
11Todos los bloques de código pueden ser copiados y usados directamente (de hecho, son archivos Python probados).
12
13Para ejecutar cualquiera de los ejemplos, copia el código a un archivo `main.py`, y comienza `fastapi dev`:
14
15<div class="termy">
· · ·
24 Importing from <font color="#75507B">/home/user/code/</font><font color="#AD7FA8">awesomeapp</font>
25
26 <span style="background-color:#007166"><font color="#D3D7CF"> module </font></span> 🐍 main.py
27
28 <span style="background-color:#007166"><font color="#D3D7CF"> code </font></span> Importing the FastAPI app object from the module with
· · ·
29 the following code:
30
31 <u style="text-decoration-style:solid">from </u><u style="text-decoration-style:solid"><b>main</b></u><u style="text-decoration-style:solid"> import </u><u style="text-decoration-style:solid"><b>app</b></u>
32
33 <span style="background-color:#007166"><font color="#D3D7CF"> app </font></span> Using import string: <font color="#3465A4">main:app</font>
+ 3 more matches in this file
docs/pt/docs/editor-support.md MARKDOWN 4 matches view file →
7## Configuração e Instalação { #setup-and-installation }
8
9A **FastAPI Extension** está disponível para [VS Code](https://code.visualstudio.com/) e [Cursor](https://www.cursor.com/). Pode ser instalada diretamente pelo painel de Extensões de cada editor, pesquisando por "FastAPI" e selecionando a extensão publicada por **FastAPI Labs**. A extensão também funciona em editores no navegador, como [vscode.dev](https://vscode.dev) e [github.dev](https://github.dev).
10
11### Descoberta da Aplicação { #application-discovery }
· · ·
12
13Por padrão, a extensão descobre automaticamente aplicações FastAPI no seu workspace procurando por arquivos que instanciam `FastAPI()`. Se a detecção automática não funcionar para a estrutura do seu projeto, você pode especificar um ponto de entrada via `[tool.fastapi]` em `pyproject.toml` ou pela configuração `fastapi.entryPoint` do VS Code usando notação de módulo (por exemplo, `myapp.main:app`).
14
15## Funcionalidades { #features }
· · ·
15## Funcionalidades { #features }
16
17- **Explorador de Operações de Rota** - Uma visualização em árvore na barra lateral de todas as <dfn title="rotas, endpoints">*operações de rota*</dfn> da sua aplicação. Clique para ir diretamente a qualquer definição de rota ou de router.
· · ·
21- **Transmitir logs da aplicação** - Transmissão em tempo real dos logs da aplicação implantada no FastAPI Cloud, com filtragem por nível e busca de texto.
22
23Se quiser se familiarizar com as funcionalidades da extensão, você pode abrir o walkthrough da extensão acessando a Paleta de Comandos (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> ou no macOS: <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>), selecionando "Welcome: Open walkthrough..." e, em seguida, escolhendo o walkthrough "Get started with FastAPI".
24
docs/es/docs/editor-support.md MARKDOWN 4 matches view file →
7## Configuración e instalación { #setup-and-installation }
8
9La **Extensión de FastAPI** está disponible tanto para [VS Code](https://code.visualstudio.com/) como para [Cursor](https://www.cursor.com/). Se puede instalar directamente desde el panel de Extensiones en cada editor buscando "FastAPI" y seleccionando la extensión publicada por **FastAPI Labs**. La extensión también funciona en editores basados en navegador como [vscode.dev](https://vscode.dev) y [github.dev](https://github.dev).
10
11### Descubrimiento de la aplicación { #application-discovery }
· · ·
12
13Por defecto, la extensión descubrirá automáticamente aplicaciones FastAPI en tu espacio de trabajo escaneando archivos que creen un instance de `FastAPI()`. Si la detección automática no funciona con la estructura de tu proyecto, puedes especificar un punto de entrada mediante `[tool.fastapi]` en `pyproject.toml` o la configuración de VS Code `fastapi.entryPoint` usando notación de módulo (p. ej. `myapp.main:app`).
14
15## Funcionalidades { #features }
· · ·
15## Funcionalidades { #features }
16
17- **Explorador de Path Operations** - Una vista en árbol en la barra lateral de todas las <dfn title="rutas, endpoints">*path operations*</dfn> de tu aplicación. Haz clic para saltar a cualquier definición de ruta o de router.
· · ·
21- **Streaming de logs de la aplicación** - Streaming en tiempo real de logs desde tu aplicación desplegada en FastAPI Cloud, con filtrado por nivel y búsqueda de texto.
22
23Si quieres familiarizarte con las funcionalidades de la extensión, puedes revisar el recorrido guiado de la extensión abriendo la Paleta de Comandos (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> o en macOS: <kbd>Cmd</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd>) y seleccionando "Welcome: Open walkthrough..." y luego eligiendo el recorrido "Get started with FastAPI".
24
docs/en/docs/advanced/stream-data.md MARKDOWN 8 matches · showing 5 view file →
21## A `StreamingResponse` with `yield` { #a-streamingresponse-with-yield }
22
23If you declare a `response_class=StreamingResponse` in your *path operation function*, you can use `yield` to send each chunk of data in turn.
24
25{* ../../docs_src/stream_data/tutorial001_py310.py ln[1:23] hl[20,23] *}
· · ·
27FastAPI will give each chunk of data to the `StreamingResponse` as is, it won't try to convert it to JSON or anything similar.
28
29### Non-async *path operation functions* { #non-async-path-operation-functions }
30
31You can also use regular `def` functions (without `async`), and use `yield` the same way.
· · ·
31You can also use regular `def` functions (without `async`), and use `yield` the same way.
32
33{* ../../docs_src/stream_data/tutorial001_py310.py ln[26:29] hl[27] *}
· · ·
45### Stream Bytes { #stream-bytes }
46
47One of the main use cases would be to stream `bytes` instead of strings, you can of course do it.
48
49{* ../../docs_src/stream_data/tutorial001_py310.py ln[44:47] hl[47] *}
· · ·
59{* ../../docs_src/stream_data/tutorial002_py310.py ln[6,19:20] hl[20] *}
60
61Then you can use this new class in `response_class=PNGStreamingResponse` in your *path operation function*:
62
63{* ../../docs_src/stream_data/tutorial002_py310.py ln[23:27] hl[23] *}
+ 3 more matches in this file
docs/zh/docs/advanced/settings.md MARKDOWN 23 matches · showing 5 view file →
80
81```console
82$ ADMIN_EMAIL="deadpool@example.com" APP_NAME="ChimichangApp" fastapi run main.py
83
84<span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
· · ·
107{* ../../docs_src/settings/app01_py310/config.py *}
108
109然后在 `main.py` 文件中使用它:
110
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
· · ·
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
112
113/// tip | 提示
· · ·
131注意,现在我们不再创建默认实例 `settings = Settings()`。
132
133### 主应用文件 { #the-main-app-file }
134
135现在我们创建一个依赖项,返回一个新的 `config.Settings()`。
· · ·
136
137{* ../../docs_src/settings/app02_an_py310/main.py hl[6,12:13] *}
138
139/// tip | 提示
+ 18 more matches in this file
docs/es/docs/advanced/settings.md MARKDOWN 33 matches · showing 5 view file →
53De la misma forma que con los modelos de Pydantic, declaras atributos de clase con anotaciones de tipos, y posiblemente, valores por defecto.
54
55Puedes usar todas las mismas funcionalidades de validación y herramientas que usas para los modelos de Pydantic, como diferentes tipos de datos y validaciones adicionales con `Field()`.
56
57{* ../../docs_src/settings/tutorial001_py310.py hl[2,5:8,11] *}
· · ·
80
81```console
82$ ADMIN_EMAIL="deadpool@example.com" APP_NAME="ChimichangApp" fastapi run main.py
83
84<span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
· · ·
107{* ../../docs_src/settings/app01_py310/config.py *}
108
109Y luego usarlo en un archivo `main.py`:
110
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
· · ·
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
112
113/// tip | Consejo
· · ·
131Nota que ahora no creamos un instance por defecto `settings = Settings()`.
132
133### El archivo principal de la app { #the-main-app-file }
134
135Ahora creamos una dependencia que devuelve un nuevo `config.Settings()`.
+ 28 more matches in this file
docs/pt/docs/advanced/settings.md MARKDOWN 25 matches · showing 5 view file →
53Da mesma forma que com modelos do Pydantic, você declara atributos de classe com anotações de tipo e, possivelmente, valores padrão.
54
55Você pode usar as mesmas funcionalidades e ferramentas de validação que usa em modelos do Pydantic, como diferentes tipos de dados e validações adicionais com `Field()`.
56
57{* ../../docs_src/settings/tutorial001_py310.py hl[2,5:8,11] *}
· · ·
80
81```console
82$ ADMIN_EMAIL="deadpool@example.com" APP_NAME="ChimichangApp" fastapi run main.py
83
84<span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
· · ·
107{* ../../docs_src/settings/app01_py310/config.py *}
108
109E então usá-lo em um arquivo `main.py`:
110
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
· · ·
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
112
113/// tip | Dica
· · ·
131Perceba que agora não criamos uma instância padrão `settings = Settings()`.
132
133### O arquivo principal da aplicação { #the-main-app-file }
134
135Agora criamos uma dependência que retorna um novo `config.Settings()`.
+ 20 more matches in this file
docs/fr/docs/advanced/settings.md MARKDOWN 25 matches · showing 5 view file →
80
81```console
82$ ADMIN_EMAIL="deadpool@example.com" APP_NAME="ChimichangApp" fastapi run main.py
83
84<span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
· · ·
107{* ../../docs_src/settings/app01_py310/config.py *}
108
109Puis l'utiliser dans un fichier `main.py` :
110
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
· · ·
111{* ../../docs_src/settings/app01_py310/main.py hl[3,11:13] *}
112
113/// tip | Astuce
· · ·
129{* ../../docs_src/settings/app02_an_py310/config.py hl[10] *}
130
131Notez que maintenant, nous ne créons pas d'instance par défaut `settings = Settings()`.
132
133### Le fichier principal de l'application { #the-main-app-file }
· · ·
133### Le fichier principal de l'application { #the-main-app-file }
134
135Nous créons maintenant une dépendance qui renvoie un nouveau `config.Settings()`.
+ 20 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.