- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 109 for Wain (0.15 sec)
-
docs/pt/docs/deployment.md
```Dockerfile FROM python:3.7 RUN pip install fastapi uvicorn EXPOSE 80 COPY ./app /app CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"] ``` ### Crie o código **FastAPI** * Crie um diretório `app` e entre nele. * Crie um arquivo `main.py` com: ```Python from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root():
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Aug 18 16:16:54 GMT 2022 - 16.8K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases.py
test_db.unlink() # Import while creating the client to create the DB after starting the test session from docs_src.sql_databases.sql_app import main # Ensure import side effects are re-executed importlib.reload(main) with TestClient(main.app) as c: yield c if test_db.is_file(): # pragma: nocover test_db.unlink() os.chdir(cwd) # TODO: pv2 add version with Pydantic v2
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.1K bytes - Viewed (0) -
tests/test_tutorial/test_sql_databases/test_sql_databases_middleware_py310.py
test_db.unlink() # Import while creating the client to create the DB after starting the test session from docs_src.sql_databases.sql_app_py310 import alt_main # Ensure import side effects are re-executed importlib.reload(alt_main) with TestClient(alt_main.app) as c: yield c if test_db.is_file(): # pragma: nocover test_db.unlink() os.chdir(cwd) @needs_py310
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.5K bytes - Viewed (0) -
docs/de/docs/advanced/behind-a-proxy.md
### Bereitstellung des `root_path` Um dies zu erreichen, können Sie die Kommandozeilenoption `--root-path` wie folgt verwenden: <div class="termy"> ```console $ uvicorn main:app --root-path /api/v1 <span style="color: green;">INFO</span>: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit) ``` </div> Falls Sie Hypercorn verwenden, das hat auch die Option `--root-path`.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 20:30:07 GMT 2024 - 13.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/schema-extra-example.md
или `examples` добавляются в <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#parameter-object" class="external-link" target="_blank">определение OpenAPI, к объекту `Parameter Object` (в спецификации)</a>. И для функций `Body()`, `File()` и `Form()` аргументы `example` или `examples` аналогично добавляются в <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#mediaTypeObject" class="external-link" target="_blank"> определение...
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.6K bytes - Viewed (0) -
docs/ja/docs/tutorial/security/first-steps.md
**FastAPI**では、これを**OAuth2**を使用して構築できます。 ですが、ちょっとした必要な情報を探すために、長い仕様のすべてを読む必要はありません。 **FastAPI**が提供するツールを使って、セキュリティを制御してみましょう。 ## どう見えるか まずはこのコードを使って、どう動くか観察します。その後で、何が起こっているのか理解しましょう。 ## `main.py`を作成 `main.py`に、下記の例をコピーします: ```Python {!../../../docs_src/security/tutorial001.py!} ``` ## 実行 !!! info "情報"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 10.5K bytes - Viewed (0) -
docs/en/docs/python-types.md
```Python hl_lines="2" {!../../../docs_src/python_types/tutorial004.py!} ``` ## Declaring types You just saw the main place to declare type hints. As function parameters. This is also the main place you would use them with **FastAPI**. ### Simple types You can declare all the standard Python types, not only `str`. You can use, for example: * `int`
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 17K bytes - Viewed (0) -
docs/de/docs/features.md
```Python from typing import List, Dict from datetime import date from pydantic import BaseModel # Deklarieren Sie eine Variable als ein `str` # und bekommen Sie Editor-Unterstütung innerhalb der Funktion def main(user_id: str): return user_id # Ein Pydantic-Modell class User(BaseModel): id: int name: str joined: date ``` Das kann nun wie folgt verwendet werden: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Mar 30 19:43:43 GMT 2024 - 10.8K bytes - Viewed (0) -
docs/en/docs/deployment/https.md
All this renewal process, while still serving the app, is one of the main reasons why you would want to have a **separate system to handle HTTPS** with a TLS Termination Proxy instead of just using the TLS certificates with the application server directly (e.g. Uvicorn). ## Recap
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 12K bytes - Viewed (0) -
docs/ja/docs/features.md
型を使用した標準的なPythonを記述します: ```Python from datetime import date from pydantic import BaseModel # Declare a variable as a str # and get editor support inside the function def main(user_id: str): return user_id # A Pydantic model class User(BaseModel): id: int name: str joined: date ``` これは以下のように用いられます: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 12.3K bytes - Viewed (0)