Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 108 for New (0.14 sec)

  1. fastapi/utils.py

                    )
        new_field = create_response_field(name=field.name, type_=use_type)
        new_field.has_alias = field.has_alias  # type: ignore[attr-defined]
        new_field.alias = field.alias  # type: ignore[misc]
        new_field.class_validators = field.class_validators  # type: ignore[attr-defined]
        new_field.default = field.default  # type: ignore[misc]
        new_field.required = field.required  # type: ignore[misc]
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/testing-database.md

        ├── database.py
        ├── main.py
        ├── models.py
        ├── schemas.py
        └── tests
            ├── __init__.py
            └── test_sql_app.py
    ```
    
    ## Create the new database session
    
    First, we create a new database session with the new database.
    
    We'll use an in-memory database that persists during the tests instead of the local file `sql_app.db`.
    
    But the rest of the session code is more or less the same, we just copy it.
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  3. docs/en/docs/deployment/versions.md

    ## About Starlette
    
    You shouldn't pin the version of `starlette`.
    
    Different versions of **FastAPI** will use a specific newer version of Starlette.
    
    So, you can just let **FastAPI** use the correct Starlette version.
    
    ## About Pydantic
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Nov 05 20:50:37 GMT 2020
    - 3.3K bytes
    - Viewed (0)
  4. scripts/playwright/separate_openapi_schemas/image03.py

    from playwright.sync_api import Playwright, sync_playwright
    
    
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_text("GET/items/Read Items").click()
        page.get_by_role("tab", name="Schema").click()
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Aug 25 19:10:22 GMT 2023
    - 892 bytes
    - Viewed (0)
  5. docs/fr/docs/advanced/additional-responses.md

    old_dict = {
        "old key": "old value",
        "second old key": "second old value",
    }
    new_dict = {**old_dict, "new key": "new value"}
    ```
    
    Ici, `new_dict` contiendra toutes les paires clé-valeur de `old_dict` plus la nouvelle paire clé-valeur :
    
    ```Python
    {
        "old key": "old value",
        "second old key": "second old value",
        "new key": "new value",
    }
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  6. docs/en/docs/contributing.md

    Checking the link from above, the code for "Creole" is `ht`.
    
    The next step is to run the script to generate a new translation directory:
    
    <div class="termy">
    
    ```console
    // Use the command new-lang, pass the language code as a CLI argument
    $ python ./scripts/docs.py new-lang ht
    
    Successfully initialized: docs/ht
    ```
    
    </div>
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 17:42:43 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  7. docs_src/websockets/tutorial003.py

            </form>
            <ul id='messages'>
            </ul>
            <script>
                var client_id = Date.now()
                document.querySelector("#ws-id").textContent = client_id;
                var ws = new WebSocket(`ws://localhost:8000/ws/${client_id}`);
                ws.onmessage = function(event) {
                    var messages = document.getElementById('messages')
                    var message = document.createElement('li')
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sun Aug 09 13:52:19 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  8. docs_src/websockets/tutorial002_an_py310.py

            <script>
            var ws = null;
                function connect(event) {
                    var itemId = document.getElementById("itemId")
                    var token = document.getElementById("token")
                    ws = new WebSocket("ws://localhost:8000/items/" + itemId.value + "/ws?token=" + token.value);
                    ws.onmessage = function(event) {
                        var messages = document.getElementById('messages')
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sat Mar 18 12:29:59 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  9. docs/en/docs/alternatives.md

    ## Intro
    
    **FastAPI** wouldn't exist if not for the previous work of others.
    
    There have been many tools created before that have helped inspire its creation.
    
    I have been avoiding the creation of a new framework for several years. First I tried to solve all the features covered by **FastAPI** using many different frameworks, plug-ins, and tools.
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 23.2K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/middleware.md

    So, in the documentation for third-party ASGI middlewares they will probably tell you to do something like:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    Plain Text
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Mar 10 18:27:10 GMT 2023
    - 4K bytes
    - Viewed (0)
Back to top