- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for Flock (0.28 sec)
-
docs/en/docs/advanced/events.md
```Python async with lifespan(app): await do_stuff() ``` When you create a context manager or an async context manager like above, what it does is that, before entering the `with` block, it will execute the code before the `yield`, and after exiting the `with` block, it will execute the code after the `yield`. In our code example above, we don't use it directly, but we pass it to FastAPI for it to use it.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.8K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
{!> ../../../docs_src/sql_databases/sql_app/main.py!} ``` !!! info We put the creation of the `SessionLocal()` and handling of the requests in a `try` block. And then we close it in the `finally` block. This way we make sure the database session is always closed after the request. Even if there was an exception while processing the request.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 29.6K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
``` !!! tip You can use `async` or regular functions. **FastAPI** will do the right thing with each, the same as with normal dependencies. ## A dependency with `yield` and `try` If you use a `try` block in a dependency with `yield`, you'll receive any exception that was thrown when using the dependency.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 14.1K bytes - Viewed (0) -
docs/em/docs/deployment/docker.md
1️⃣. 👉 🥇 ▶️, ⚫️ 🌟 `requirements-stage`. 2️⃣. ⚒ `/tmp` ⏮️ 👷 📁. 📥 🌐❔ 👥 🔜 🏗 📁 `requirements.txt` 3️⃣. ❎ 🎶 👉 ☁ ▶️. 4️⃣. 📁 `pyproject.toml` & `poetry.lock` 📁 `/tmp` 📁. ↩️ ⚫️ ⚙️ `./poetry.lock*` (▶️ ⏮️ `*`), ⚫️ 🏆 🚫 💥 🚥 👈 📁 🚫 💪. 5️⃣. 🏗 `requirements.txt` 📁. 6️⃣. 👉 🏁 ▶️, 🕳 📥 🔜 🛡 🏁 📦 🖼. 7️⃣. ⚒ ⏮️ 👷 📁 `/code`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 27.9K bytes - Viewed (0) -
docs/ja/docs/deployment/docker.md
``` 1. これは最初のステージで、`requirements-stage`と名付けられます 2. `/tmp` を現在の作業ディレクトリに設定します ここで `requirements.txt` というファイルを生成します。 3. このDockerステージにPoetryをインストールします 4. pyproject.toml`と`poetry.lock`ファイルを`/tmp` ディレクトリにコピーします `./poetry.lock*`(末尾に`*`)を使用するため、そのファイルがまだ利用できない場合でもクラッシュすることはないです。 5. requirements.txt`ファイルを生成します 6. これは最後のステージであり、ここにあるものはすべて最終的なコンテナ・イメージに保存されます 7. 現在の作業ディレクトリを `/code` に設定します
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 44.3K bytes - Viewed (0) -
docs/en/overrides/main.html
HTML - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Mar 25 23:10:11 GMT 2024 - 4.6K bytes - Viewed (0) -
docs/de/docs/tutorial/dependencies/dependencies-with-yield.md
Sie können `async`hrone oder reguläre Funktionen verwenden. **FastAPI** wird bei jeder das Richtige tun, so wie auch bei normalen Abhängigkeiten. ## Eine Abhängigkeit mit `yield` und `try`. Wenn Sie einen `try`-Block in einer Abhängigkeit mit `yield` verwenden, empfangen Sie alle Exceptions, die bei Verwendung der Abhängigkeit geworfen wurden.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 18:10:29 GMT 2024 - 13.5K bytes - Viewed (0) -
docs/en/docs/advanced/custom-response.md
{!../../../docs_src/custom_response/tutorial008.py!} ``` 1. This is the generator function. It's a "generator function" because it contains `yield` statements inside. 2. By using a `with` block, we make sure that the file-like object is closed after the generator function is done. So, after it finishes sending the response.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 11.7K bytes - Viewed (0) -
docs/en/docs/tutorial/security/simple-oauth2.md
"email": "******@****.***", "full_name": "John Doe", "disabled": false, "hashed_password": "fakehashedsecret" } ``` <img src="/img/tutorial/security/image06.png"> If you click the lock icon and logout, and then try the same operation again, you will get an HTTP 401 error of: ```JSON { "detail": "Not authenticated" } ``` ### Inactive user
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.5K bytes - Viewed (0) -
docs/en/docs/async.md
### Path operation functions When you declare a *path operation function* with normal `def` instead of `async def`, it is run in an external threadpool that is then awaited, instead of being called directly (as it would block the server).
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 23K bytes - Viewed (0)