- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 91 for com (0.14 sec)
-
docs_src/custom_response/tutorial006b.py
from fastapi import FastAPI from fastapi.responses import RedirectResponse app = FastAPI() @app.get("/fastapi", response_class=RedirectResponse) async def redirect_fastapi():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sat Jul 03 19:51:28 GMT 2021 - 220 bytes - Viewed (0) -
tests/test_tutorial/test_settings/test_app02.py
from ...utils import needs_pydanticv2 @needs_pydanticv2 def test_settings(monkeypatch: MonkeyPatch): from docs_src.settings.app02 import main monkeypatch.setenv("ADMIN_EMAIL", "admin@example.com") settings = main.get_settings() assert settings.app_name == "Awesome API" assert settings.items_per_user == 50 @needs_pydanticv2 def test_override_settings():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 488 bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial006b.py
client = TestClient(app) def test_redirect_response_class(): response = client.get("/fastapi", follow_redirects=False) assert response.status_code == 307 assert response.headers["location"] == "https://fastapi.tiangolo.com" def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == { "openapi": "3.1.0",
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jun 30 18:25:16 GMT 2023 - 899 bytes - Viewed (0) -
docs_src/security/tutorial005_an.py
"username": "johndoe", "full_name": "John Doe", "email": "johndoe@example.com", "hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "disabled": False, }, "alice": { "username": "alice", "full_name": "Alice Chains", "email": "alicechains@example.com", "hashed_password": "$2b$12$gSvqqUPvlXP2tfVFaWK1Be7DlH.PKZbv5H8KnzzVgXXbVxpva.pFm",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 5.3K bytes - Viewed (0) -
docs/sts/client_grants/sts_element.py
_ETREE_EXCEPTIONS = (ParseError, AttributeError, ValueError, TypeError) else: _ETREE_EXCEPTIONS = (SyntaxError, AttributeError, ValueError, TypeError) _STS_NS = {'sts': 'https://sts.amazonaws.com/doc/2011-06-15/'} class STSElement(object): """STS aware XML parsing class. Wraps a root element name and cElementTree.Element instance. Provides STS namespace aware parsing functions. """
Python - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 2.5K bytes - Viewed (0) -
tensorflow/api_template.__init__.py
""" # pylint: disable=g-bad-import-order,protected-access,g-import-not-at-top import distutils as _distutils import importlib import inspect as _inspect import os as _os import site as _site import sys as _sys # Do not remove this line; See https://github.com/tensorflow/tensorflow/issues/42596
Python - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 05 06:27:59 GMT 2024 - 6.7K bytes - Viewed (3) -
docs_src/security/tutorial004_an_py310.py
ALGORITHM = "HS256" ACCESS_TOKEN_EXPIRE_MINUTES = 30 fake_users_db = { "johndoe": { "username": "johndoe", "full_name": "John Doe", "email": "johndoe@example.com", "hashed_password": "$2b$12$EixZaYVK1fsbw1ZfbX3OXePaWxn96p36WQoeG6Lruj3vjPGga31lW", "disabled": False, } } class Token(BaseModel): access_token: str token_type: str
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Tue Mar 26 16:56:53 GMT 2024 - 4.1K bytes - Viewed (0) -
tests/test_response_model_data_filter.py
response = client.post( "/users", json={"email": "johndoe@example.com", "password": "secret"} ) assert response.json() == {"email": "johndoe@example.com"} def test_filter_second_level_model(): response = client.get("/pets/1") assert response.json() == { "name": "Nibbler", "owner": {"email": "johndoe@example.com"}, } def test_list_of_models():
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 1.7K bytes - Viewed (0) -
tests/test_openapi_servers.py
"http://staging.localhost.tiangolo.com:8000/", # TODO: remove when deprecating Pydantic v1 "http://staging.localhost.tiangolo.com:8000", ), "description": "Staging but actually localhost still", }, { "url": IsOneOf( "https://prod.example.com/",
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 2K bytes - Viewed (0) -
docs_src/sql_databases/sql_app/tests/test_sql_app.py
def test_create_user(): response = client.post( "/users/", json={"email": "deadpool@example.com", "password": "chimichangas4life"}, ) assert response.status_code == 200, response.text data = response.json() assert data["email"] == "deadpool@example.com" assert "id" in data user_id = data["id"] response = client.get(f"/users/{user_id}")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Jun 22 11:20:12 GMT 2023 - 1.2K bytes - Viewed (0)