- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 70 for geturl (0.15 sec)
-
docs/en/docs/tutorial/security/oauth2-jwt.md
``` ## Update the dependencies Update `get_current_user` to receive the same token as before, but this time, using JWT tokens. Decode the received token, verify it, and return the current user. If the token is invalid, return an HTTP error right away. === "Python 3.10+" ```Python hl_lines="89-106" {!> ../../../docs_src/security/tutorial004_an_py310.py!} ``` === "Python 3.9+"
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 13K bytes - Viewed (0) -
docs/pt/docs/async.md
async def get_burgers(number: int): # Fazer alguma coisa assíncrona para criar os hambúrgueres return burgers ``` ...ao invés de `def`: ```Python hl_lines="2" # Isso não é assíncrono def get_sequential_burgers(number: int): # Faz alguma coisa sequencial para criar os hambúrgueres return burgers ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 22.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py
from fastapi.testclient import TestClient @pytest.fixture(name="app") def get_app(): from docs_src.request_forms_and_files.tutorial001_an import app return app @pytest.fixture(name="client") def get_client(app: FastAPI): client = TestClient(app) return client def test_post_form_no_body(client: TestClient): response = client.post("/files/") assert response.status_code == 422, response.text
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 9.8K bytes - Viewed (0) -
docs/fr/docs/async.md
```Python hl_lines="1" async def get_burgers(number: int): # Opérations asynchrones pour créer les burgers return burgers ``` ...et non `def` : ```Python hl_lines="2" # Ceci n'est pas asynchrone def get_sequential_burgers(number: int): # Opérations asynchrones pour créer les burgers return burgers ```
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Mar 31 23:52:53 GMT 2024 - 24K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005_py39.py
from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="client") def get_client(): from docs_src.security.tutorial005_py39 import app client = TestClient(app) return client def get_access_token( *, username="johndoe", password="secret", scope=None, client: TestClient ): data = {"username": username, "password": password} if scope: data["scope"] = scope
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:07:10 GMT 2024 - 16.3K bytes - Viewed (0) -
docs/ja/docs/async.md
results = await some_library() return results ``` !!! note "備考" `async def` を使用して作成された関数の内部でしか `await` は使用できません。 --- データベース、API、ファイルシステムなどと通信し、`await` の使用をサポートしていないサードパーティライブラリ (現在のほとんどのデータベースライブラリに当てはまります) を使用している場合、次の様に、単に `def` を使用して通常通り *path operation 関数* を宣言してください: ```Python hl_lines="2" @app.get('/') def results(): results = some_library() return results ``` ---
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/pt/docs/deployment.md
* Crie um arquivo `main.py` com: ```Python from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: str = None): return {"item_id": item_id, "q": q} ``` * Você deve ter uma estrutura de diretórios assim: ``` . ├── app │ └── main.py └── Dockerfile
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) -
docs/de/docs/features.md
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/concepts.md
Those worker processes would be the ones running your application, they would perform the main computations to receive a **request** and return a **response**, and they would load anything you put in variables in RAM. <img src="/img/deployment/concepts/process-ram.svg">
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 18K 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 my_user: User = User(id=3, name="John Doe", joined="2018-07-19")
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)