- Sort Score
- Num 10 results
- Language All
Results 1211 - 1220 of 1,304 for DEF (0.26 seconds)
-
docs/en/docs/tutorial/request-files.md
For example, inside of an `async` *path operation function* you can get the contents with: ```Python contents = await myfile.read() ``` If you are inside of a normal `def` *path operation function*, you can access the `UploadFile.file` directly, for example: ```Python contents = myfile.file.read() ``` /// note | `async` Technical Details
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 09:15:41 GMT 2025 - 7.3K bytes - Click Count (0) -
docs/pt/docs/tutorial/request-files.md
Por exemplo, dentro de uma função de *operação de rota* `assíncrona`, você pode obter o conteúdo com: ```Python contents = await myfile.read() ``` Se você estiver dentro de uma função de *operação de rota* normal `def`, você pode acessar o `UploadFile.file` diretamente, por exemplo: ```Python contents = myfile.file.read() ``` /// note | Detalhes Técnicos do `async`
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 8.1K bytes - Click Count (0) -
docs/en/docs/tutorial/first-steps.md
It will be called by **FastAPI** whenever it receives a request to the URL "`/`" using a `GET` operation. In this case, it is an `async` function. --- You could also define it as a normal function instead of `async def`: {* ../../docs_src/first_steps/tutorial003_py39.py hl[7] *} /// note If you don't know the difference, check the [Async: *"In a hurry?"*](../async.md#in-a-hurry){.internal-link target=_blank}. ///
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 12.8K bytes - Click Count (0) -
docs/es/docs/advanced/settings.md
```Python Settings() ``` se crearía un nuevo objeto `Settings`, y al crearse leería el archivo `.env` nuevamente. Si la función de dependencia fuera simplemente así: ```Python def get_settings(): return Settings() ``` crearíamos ese objeto para cada request, y estaríamos leyendo el archivo `.env` para cada request. ⚠️
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 13.2K bytes - Click Count (0) -
docs/de/docs/tutorial/first-steps.md
In diesem Fall handelt es sich um eine `async`-Funktion. --- Sie könnten sie auch als normale Funktion anstelle von `async def` definieren: {* ../../docs_src/first_steps/tutorial003_py39.py hl[7] *} /// note | HinweisCreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 14.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WholeOperationTimeoutTest.kt
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Jun 18 12:28:21 GMT 2025 - 10.6K bytes - Click Count (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
## Classes as dependencies { #classes-as-dependencies_1 } You might notice that to create an instance of a Python class, you use that same syntax. For example: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` In this case, `fluffy` is an instance of the class `Cat`. And to create `fluffy`, you are "calling" `Cat`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 6.7K bytes - Click Count (0) -
docs/uk/docs/tutorial/request-files.md
Наприклад, всередині `async` *функції обробки шляху* Ви можете отримати вміст за допомогою: ```Python contents = await myfile.read() ``` Якщо Ви знаходитесь у звичайній `def` *функції обробки шляху*, Ви можете отримати доступ до `UploadFile.file` безпосередньо, наприклад: ```Python contents = myfile.file.read() ``` /// note | Технічні деталі `async`
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Feb 22 22:01:44 GMT 2025 - 11.2K bytes - Click Count (0) -
docs/pt/docs/tutorial/dependencies/classes-as-dependencies.md
## Classes como dependências { #classes-as-dependencies_1 } Você deve ter percebido que para criar um instância de uma classe em Python, a mesma sintaxe é utilizada. Por exemplo: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` Nesse caso, `fluffy` é uma instância da classe `Cat`. E para criar `fluffy`, você está "chamando" `Cat`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.3K bytes - Click Count (0) -
docs/es/docs/tutorial/dependencies/classes-as-dependencies.md
## Clases como dependencias { #classes-as-dependencies_1 } Puedes notar que para crear una instance de una clase en Python, utilizas esa misma sintaxis. Por ejemplo: ```Python class Cat: def __init__(self, name: str): self.name = name fluffy = Cat(name="Mr Fluffy") ``` En este caso, `fluffy` es una instance de la clase `Cat`. Y para crear `fluffy`, estás "llamando" a `Cat`.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 7.1K bytes - Click Count (0)