- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 109 for Main (0.25 sec)
-
.github/actions/notify-translations/app/main.py
comment_id=comment_id, body=body, ) response = UpdateCommentResponse.parse_obj(data) return response.data.updateDiscussionComment.comment if __name__ == "__main__": settings = Settings() if settings.input_debug: logging.basicConfig(level=logging.DEBUG) else: logging.basicConfig(level=logging.INFO)
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Sep 27 23:01:46 GMT 2023 - 12.4K bytes - Viewed (0) -
.github/actions/people/app/main.py
"count": count, "avatarUrl": author.avatarUrl, "url": author.url, } ) return users if __name__ == "__main__": logging.basicConfig(level=logging.INFO) settings = Settings() logging.info(f"Using config: {settings.model_dump_json()}") g = Github(settings.input_token.get_secret_value())
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Mar 26 17:38:21 GMT 2024 - 19.2K bytes - Viewed (1) -
tests/test_tutorial/test_bigger_applications/test_main.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.bigger_applications.app.main import app client = TestClient(app) return client def test_users_token_jessica(client: TestClient): response = client.get("/users?token=jessica") assert response.status_code == 200
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 24.6K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient @pytest.fixture(name="client") def get_client(): from docs_src.bigger_applications.app_an.main import app client = TestClient(app) return client def test_users_token_jessica(client: TestClient): response = client.get("/users?token=jessica") assert response.status_code == 200
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 24.6K bytes - Viewed (0) -
tests/test_tutorial/test_bigger_applications/test_main_an_py39.py
import pytest from dirty_equals import IsDict from fastapi.testclient import TestClient from ...utils import needs_py39 @pytest.fixture(name="client") def get_client(): from docs_src.bigger_applications.app_an_py39.main import app client = TestClient(app) return client @needs_py39 def test_users_token_jessica(client: TestClient): response = client.get("/users?token=jessica")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 24.9K bytes - Viewed (0) -
tests/test_dependency_overrides.py
] } ) def test_main_depends_q_foo(): response = client.get("/main-depends/?q=foo") assert response.status_code == 200 assert response.json() == { "in": "main-depends", "params": {"q": "foo", "skip": 0, "limit": 100}, } def test_main_depends_q_foo_skip_100_limit_200(): response = client.get("/main-depends/?q=foo&skip=100&limit=200")
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:40:57 GMT 2024 - 15.4K bytes - Viewed (0) -
docs/en/docs/tutorial/bigger-applications.md
## The main `FastAPI` Now, let's see the module at `app/main.py`. Here's where you import and use the class `FastAPI`. This will be the main file in your application that ties everything together. And as most of your logic will now live in its own specific module, the main file will be quite simple. ### Import `FastAPI`
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.6K bytes - Viewed (0) -
docs/zh/docs/tutorial/bigger-applications.md
因此,为了能够在同一个文件中使用它们,我们直接导入子模块: ```Python hl_lines="5" title="app/main.py" {!../../../docs_src/bigger_applications/app/main.py!} ``` ### 包含 `users` 和 `items` 的 `APIRouter` 现在,让我们来包含来自 `users` 和 `items` 子模块的 `router`。 ```Python hl_lines="10-11" title="app/main.py" {!../../../docs_src/bigger_applications/app/main.py!} ``` !!! info
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 18.5K bytes - Viewed (0) -
docs/em/docs/advanced/settings.md
<div class="termy"> ```console // Here we don't set the env var yet $ python main.py // As we didn't set the env var, we get the default value Hello World from Python // But if we create an environment variable first $ export MY_NAME="Wade Wilson" // And then call the program again $ python main.py // Now it can read the environment variable Hello Wade Wilson from Python ```
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 11.4K bytes - Viewed (0) -
docs/en/docs/advanced/settings.md
### The main app file Now we create a dependency that returns a new `config.Settings()`. === "Python 3.9+" ```Python hl_lines="6 12-13" {!> ../../../docs_src/settings/app02_an_py39/main.py!} ``` === "Python 3.8+" ```Python hl_lines="6 12-13" {!> ../../../docs_src/settings/app02_an/main.py!} ``` === "Python 3.8+ non-Annotated"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 15.7K bytes - Viewed (0)