- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 74 for argument (0.25 sec)
-
docs/pt/docs/tutorial/body-fields.md
## Recapitulando Você pode usar `Field` do Pydantic para declarar validações extras e metadados para atributos do modelo.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 02 15:00:11 GMT 2021 - 2.2K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
So, if you have an object `something` (that might _not_ be a function) and you can "call" it (execute it) like: ```Python something() ``` or ```Python something(some_argument, some_keyword_argument="foo") ``` then it is a "callable". ## Classes as dependencies You might notice that to create an instance of a Python class, you use that same syntax. For example: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.4K bytes - Viewed (0) -
docs/en/docs/advanced/openapi-callbacks.md
The only new thing is the `callbacks=invoices_callback_router.routes` as an argument to the *path operation decorator*. We'll see what that is next. ## Documenting the callback The actual callback code will depend heavily on your own API app. And it will probably vary a lot from one app to the next.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 7.7K bytes - Viewed (0) -
docs/fr/docs/contributing.md
Maintenant, lancez le serveur en live pour les documents en espagnol : <div class="termy"> ```console // Use the command "live" and pass the language code as a CLI argument $ python ./scripts/docs.py live es <span style="color: green;">[INFO]</span> Serving on http://127.0.0.1:8008 <span style="color: green;">[INFO]</span> Start watching changes
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jul 27 18:51:07 GMT 2023 - 16.3K bytes - Viewed (0) -
docs/zh/docs/contributing.md
对于西班牙语来说,它的两位字母代码是 `es`。所以西班牙语翻译的目录位于 `docs/es/`。 !!! tip 默认语言是英语,位于 `docs/en/`目录。 现在为西班牙语文档运行实时服务器: <div class="termy"> ```console // Use the command "live" and pass the language code as a CLI argument $ python ./scripts/docs.py live es <span style="color: green;">[INFO]</span> Serving on http://127.0.0.1:8008 <span style="color: green;">[INFO]</span> Start watching changes
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 11:57:21 GMT 2024 - 12.9K bytes - Viewed (0) -
docs/de/docs/tutorial/background-tasks.md
```Python hl_lines="14" {!../../../docs_src/background_tasks/tutorial001.py!} ``` `.add_task()` erhält als Argumente: * Eine Taskfunktion, die im Hintergrund ausgeführt wird (`write_notification`). * Eine beliebige Folge von Argumenten, die der Reihe nach an die Taskfunktion übergeben werden sollen (`email`). * Alle Schlüsselwort-Argumente, die an die Taskfunktion übergeben werden sollen (`message="some notification"`). ## Dependency Injection
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jan 12 14:15:29 GMT 2024 - 6.4K bytes - Viewed (0) -
docs/de/docs/advanced/settings.md
Sie könnten zum Beispiel eine Datei `main.py` haben mit: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` !!! tip "Tipp" Das zweite Argument für <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> ist der zurückzugebende Defaultwert.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:17:14 GMT 2024 - 17.8K bytes - Viewed (0) -
docs/pt/docs/advanced/templates.md
```Python {"id": id} ``` Por exemplo, dado um ID de valor `42`, aparecerá: ```html Item ID: 42 ``` ### Argumentos do `url_for` Você também pode usar `url_for()` dentro do template, ele recebe como argumentos os mesmos argumentos que seriam usados pela sua *path operation function*. Logo, a seção com: {% raw %} ```jinja <a href="{{ url_for('read_item', id=id) }}"> ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 28 04:05:17 GMT 2024 - 3.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/background-tasks.md
```Python hl_lines="14" {!../../../docs_src/background_tasks/tutorial001.py!} ``` `.add_task()` recebe como argumentos: - Uma função de tarefa a ser executada em segundo plano (`write_notification`). - Qualquer sequência de argumentos que deve ser passada para a função de tarefa na ordem (`email`). - Quaisquer argumentos nomeados que devem ser passados para a função de tarefa (`mensagem = "alguma notificação"`). ## Injeção de dependência
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Mon May 09 23:44:32 GMT 2022 - 5.3K bytes - Viewed (0) -
docs/de/docs/how-to/custom-docs-ui-assets.md
Jetzt können Sie die *Pfadoperationen* für die benutzerdefinierten Dokumentationen erstellen. Sie können die internen Funktionen von FastAPI wiederverwenden, um die HTML-Seiten für die Dokumentation zu erstellen und ihnen die erforderlichen Argumente zu übergeben: * `openapi_url`: die URL, unter welcher die HTML-Seite für die Dokumentation das OpenAPI-Schema für Ihre API abrufen kann. Sie können hier das Attribut `app.openapi_url` verwenden. * `title`: der Titel Ihrer API.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 18:17:36 GMT 2024 - 9.2K bytes - Viewed (0)