- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for argv (0.14 sec)
-
tests/test_tutorial/test_dependencies/test_tutorial008d.py
from docs_src.dependencies.tutorial008d import InternalError with pytest.raises(InternalError) as exc_info: client.get("/items/portal-gun") assert ( exc_info.value.args[0] == "The portal gun is too dangerous to be owned by Rick" ) def test_internal_server_error(): from docs_src.dependencies.tutorial008d import app client = TestClient(app, raise_server_exceptions=False)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Feb 24 23:06:37 GMT 2024 - 1.2K bytes - Viewed (0) -
docs_src/sql_databases/sql_app_py39/tests/test_sql_app.py
from sqlalchemy.orm import sessionmaker from ..database import Base from ..main import app, get_db SQLALCHEMY_DATABASE_URL = "sqlite:///./test.db" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base.metadata.create_all(bind=engine) def override_get_db(): try:
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jan 07 14:11:31 GMT 2022 - 1.2K bytes - Viewed (0) -
docs/em/docs/tutorial/sql-databases.md
``` #### ๐ โ: ```Python connect_args={"check_same_thread": False} ``` ...๐ช ๐ด `SQLite`. โซ๏ธ ๐ซ ๐ช ๐ ๐ฝ. !!! info "๐ก โน" ๐ข ๐ ๐ ๐ด โ 1๏ธโฃ ๐งต ๐ โฎ๏ธ โซ๏ธ, ๐ค ๐ ๐ ๐งต ๐ ๐ต ๐ฌ ๐จ. ๐ โ ๐ซ ๐ค ๐ ๐ ๐ ๐ (๐ ๐จ). โ๏ธ FastAPI, โ๏ธ ๐ ๐ข (`def`) ๐ ๐ 1๏ธโฃ ๐งต ๐ช ๐ โฎ๏ธ ๐ฝ ๐ ๐จ, ๐ฅ ๐ช โ ๐ ๐ญ ๐ โซ๏ธ ๐ โ ๐ โฎ๏ธ `connect_args={"check_same_thread": False}`.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 25.2K bytes - Viewed (1) -
fastapi/dependencies/utils.py
if get_origin(use_annotation) is Annotated: annotated_args = get_args(annotation) type_annotation = annotated_args[0] fastapi_annotations = [ arg for arg in annotated_args[1:] if isinstance(arg, (FieldInfo, params.Depends)) ] fastapi_specific_annotations = [ arg for arg in fastapi_annotations
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 02:52:56 GMT 2024 - 29.5K bytes - Viewed (0) -
docs_src/sql_databases/sql_app/database.py
from sqlalchemy.orm import sessionmaker SQLALCHEMY_DATABASE_URL = "sqlite:///./sql_app.db" # SQLALCHEMY_DATABASE_URL = "postgresql://user:password@postgresserver/db" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False} ) SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sun Apr 05 11:53:09 GMT 2020 - 461 bytes - Viewed (0) -
docs_src/sql_databases/sql_app/tests/test_sql_app.py
from sqlalchemy.pool import StaticPool from ..database import Base from ..main import app, get_db SQLALCHEMY_DATABASE_URL = "sqlite://" engine = create_engine( SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}, poolclass=StaticPool, ) TestingSessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base.metadata.create_all(bind=engine) def override_get_db():
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jun 22 11:20:12 GMT 2023 - 1.2K bytes - Viewed (0) -
fastapi/security/api_key.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 23 22:29:18 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/ja/docs/tutorial/path-params-numeric-validations.md
้ขๆฐใฎๆๅใฎใใฉใกใผใฟใจใใฆ`*`ใๆธกใใพใใ Pythonใฏใใฎ`*`ใงไฝใใใใใใจใฏใใใพใใใใใใไปฅ้ใฎใในใฆใฎใใฉใกใผใฟใใญใผใฏใผใๅผๆฐ๏ผใญใผใจๅคใฎใใข๏ผใจใใฆๅผใฐใใในใใใฎใงใใใจ็ฅใฃใฆใใใงใใใใใใใฏ<abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>ใจใใฆใ็ฅใใใฆใใพใใใใจใใใใฉใซใๅคใใชใใฆใใ ```Python hl_lines="8" {!../../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ## ๆฐๅคใฎๆค่จผ: ไปฅไธ
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Mon Jan 15 15:46:32 GMT 2024 - 6.1K bytes - Viewed (0) -
docs/en/docs/tutorial/path-params-numeric-validations.md
Python won't do anything with that `*`, but it will know that all the following parameters should be called as keyword arguments (key-value pairs), also known as <abbr title="From: K-ey W-ord Arg-uments"><code>kwargs</code></abbr>. Even if they don't have a default value. ```Python hl_lines="7" {!../../../docs_src/path_params_numeric_validations/tutorial003.py!} ``` ### Better with `Annotated`
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Jan 11 16:31:18 GMT 2024 - 9.1K bytes - Viewed (0) -
docs/en/docs/tutorial/sql-databases.md
We will later use this `engine` in other places. ```Python hl_lines="8-10" {!../../../docs_src/sql_databases/sql_app/database.py!} ``` #### Note The argument: ```Python connect_args={"check_same_thread": False} ``` ...is needed only for `SQLite`. It's not needed for other databases. !!! info "Technical Details"
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)