- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for asynchronously (0.23 sec)
-
docs/en/docs/advanced/async-tests.md
Let's look at how we can make that work. ## pytest.mark.anyio If we want to call asynchronous functions in our tests, our test functions have to be asynchronous. AnyIO provides a neat plugin for this, that allows us to specify that some test functions are to be called asynchronously. ## HTTPX Even if your **FastAPI** application uses normal `def` functions instead of `async def`, it is still an `async` application underneath.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jan 13 12:07:15 GMT 2024 - 3.9K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
!!! tip Notice that here as we are using standard `open()` that doesn't support `async` and `await`, we declare the path operation with normal `def`. ### `FileResponse` Asynchronously streams a file as the response. Takes a different set of arguments to instantiate than the other response types: * `path` - The filepath to the file to stream.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs/en/docs/async.md
* **Asynchronous Code** * **`async` and `await`** * **Coroutines** ## Asynchronous Code Asynchronous code just means that the language ๐ฌ has a way to tell the computer / program ๐ค that at some point in the code, it ๐ค will have to wait for *something else* to finish somewhere else. Let's say that *something else* is called "slow-file" ๐. So, during that time, the computer can go and do some other work, while "slow-file" ๐ finishes.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0) -
docs/en/docs/advanced/middleware.md
In this section we'll see how to use other middlewares. ## Adding ASGI middlewares As **FastAPI** is based on Starlette and implements the <abbr title="Asynchronous Server Gateway Interface">ASGI</abbr> specification, you can use any ASGI middleware. A middleware doesn't have to be made for FastAPI or Starlette to work, as long as it follows the ASGI spec.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 10 18:27:10 GMT 2023 - 4K bytes - Viewed (0) -
docs/en/docs/tutorial/testing.md
!!! tip If 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){.internal-link target=_blank} in the advanced tutorial. ## Separating tests
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 6.2K bytes - Viewed (0) -
docs/en/docs/alternatives.md
### <a href="https://www.starlette.io/" class="external-link" target="_blank">Starlette</a> Starlette is a lightweight <abbr title="The new standard for building asynchronous Python web applications">ASGI</abbr> framework/toolkit, which is ideal for building high-performance asyncio services. It is very simple and intuitive. It's designed to be easily extensible, and have modular components.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23.2K bytes - Viewed (0) -
docs/en/docs/deployment/manually.md
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 9.2K bytes - Viewed (0) -
docs/em/docs/alternatives.md
**FastAPI** โคด๏ธ โ ๐ ๐ป ๐ ๐ฝ & ๐ฎ โซ๏ธ ๐, โ๏ธ โช๏ธโก๏ธ ๐ ๐ ๐ โซ๏ธ ๐จ. ### <a href="https://www.starlette.io/" class="external-link" target="_blank">๐</a> ๐ ๐ฟ <abbr title="The new standard for building asynchronous Python web">๐ซ</abbr> ๐ ๏ธ/๐งฐ, โ ๐ฏ ๐ โ-๐ญ โณ ๐โ๐ฆบ. โซ๏ธ ๐ถ ๐ & ๐๏ธ. โซ๏ธ ๐ง ๐ช ๐ง, & โ๏ธ ๐ง ๐ฆฒ. โซ๏ธ โ๏ธ: * ๐ค ๐ ๐ญ. * *๏ธโฃ ๐โ๐ฆบ. * -๐ ๏ธ ๐ฅ ๐. * ๐ด & ๐คซ ๐. * ๐ฏ ๐ฉโ๐ป ๐ ๐ ๐ธ๐ฒ.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 18.7K bytes - Viewed (0) -
docs/ja/docs/async.md
# ไธฆ่กๅฆ็ใจ async / await *path operation ้ขๆฐ*ใฎใใใฎ `async def` ใซ้ขใใ่ฉณ็ดฐใจ้ๅๆ (asynchronous) ใณใผใใไธฆ่กๅฆ็ (Concurrency)ใใใใฆใไธฆๅๅฆ็ (Parallelism) ใฎ่ๆฏใซใคใใฆใ ## ๆฅใใงใใพใใ๏ผ <abbr title="too long; didn't read (้ทใใใฆ่ชญใใชใไบบใฎใใใฎ่ฆ็ดใจใใๆๅณใฎในใฉใณใฐ)"><strong>TL;DR:</strong></abbr> ๆฌกใฎใใใชใ`await` ใไฝฟ็จใใฆๅผใณๅบใในใใตใผใใใผใใฃใฉใคใใฉใชใไฝฟ็จใใฆใใๅ ดๅ: ```Python results = await some_library() ``` ไปฅไธใฎๆงใซ `async def` ใไฝฟ็จใใฆ*path operation ้ขๆฐ*ใๅฎฃ่จใใพใใ ```Python hl_lines="2" @app.get('/')
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 27.8K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
def read_user(user_id: int, db: Session = Depends(get_db)): db_user = crud.get_user(db, user_id=user_id) ... ``` !!! info If you need to connect to your relational database asynchronously, see [Async SQL (Relational) Databases](../how-to/async-sql-encode-databases.md){.internal-link target=_blank}. !!! note "Very Technical Details"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 29.6K bytes - Viewed (0)