Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 94 for appname (0.03 sec)

  1. docs_src/settings/app01_py39/config.py

    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 183 bytes
    - Viewed (0)
  2. docs_src/settings/app03_an_py39/config_pv1.py

    from pydantic.v1 import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
        class Config:
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 198 bytes
    - Viewed (0)
  3. docs_src/settings/app02_an_py39/config.py

    from pydantic_settings import BaseSettings
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 159 bytes
    - Viewed (0)
  4. docs_src/settings/app02_py39/test_main.py

    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 515 bytes
    - Viewed (0)
  5. docs/en/docs/advanced/settings.md

    ///
    
    Then, when you create an instance of that `Settings` class (in this case, in the `settings` object), Pydantic will read the environment variables in a case-insensitive way, so, an upper-case variable `APP_NAME` will still be read for the attribute `app_name`.
    
    Next it will convert and validate the data. So, when you use that `settings` object, you will have data of the types you declared (e.g. `items_per_user` will be an `int`).
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. docs_src/settings/app02_an_py39/test_main.py

    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 515 bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/configurations/DocsTest.kt

        os: Os,
    ): String = "${model.projectId}_DocsTest_${os.asName()}"
    
    class DocsTestProject(
        model: CIBuildModel,
        stage: Stage,
        val os: Os,
        testJava: JvmCategory,
        testTypes: List<DocsTestType>,
    ) : Project({
            id(asDocsTestId(model, os))
            name = "Docs Test - ${testJava.version.toCapitalized()} ${os.asName()}"
        }) {
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Tue Nov 18 02:29:43 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_settings/test_tutorial001.py

        return mod.app
    
    
    def test_settings(app):
        client = TestClient(app)
        response = client.get("/info")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "app_name": "Awesome API",
            "admin_email": "******@****.***",
            "items_per_user": 50,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 690 bytes
    - Viewed (0)
  9. .teamcity/src/main/kotlin/model/PerformanceTestSpec.kt

        ) = "${asConfigurationId(model)}$bucket"
    
        override fun asConfigurationId(model: CIBuildModel) = "${model.projectId}_${oldUuid ?: "PerformanceTest$uuid"}"
    
        override fun asName(): String = "${type.displayName} - ${os.asName()}"
    
        override fun channel() = "${type.channel}${if (os == Os.LINUX) "" else "-${os.name.lowercase(Locale.US)}"}-%teamcity.build.branch%"
    }
    
    data class FlameGraphGeneration(
    Registered: Wed Dec 31 11:36:14 UTC 2025
    - Last Modified: Wed Feb 12 09:12:03 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. docs_src/settings/app03_py39/config.py

    from pydantic_settings import BaseSettings, SettingsConfigDict
    
    
    class Settings(BaseSettings):
        app_name: str = "Awesome API"
        admin_email: str
        items_per_user: int = 50
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 235 bytes
    - Viewed (0)
Back to top