Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 105 for 15 (0.11 sec)

  1. docs/en/docs/tutorial/bigger-applications.md

    === "Python 3.9+"
    
        ```Python hl_lines="3  6-8" title="app/dependencies.py"
        {!> ../../../docs_src/bigger_applications/app_an_py39/dependencies.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1  5-7" title="app/dependencies.py"
        {!> ../../../docs_src/bigger_applications/app_an/dependencies.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/extra-data-types.md

        * 🐍 `datetime.datetime`.
        * πŸ“¨ & πŸ“¨ πŸ”œ 🎨 `str` πŸ’Ύ 8️⃣6️⃣0️⃣1️⃣ πŸ“, πŸ’–: `2008-09-15T15:53:00+05:00`.
    * `datetime.date`:
        * 🐍 `datetime.date`.
        * πŸ“¨ & πŸ“¨ πŸ”œ 🎨 `str` πŸ’Ύ 8️⃣6️⃣0️⃣1️⃣ πŸ“, πŸ’–: `2008-09-15`.
    * `datetime.time`:
        * 🐍 `datetime.time`.
        * πŸ“¨ & πŸ“¨ πŸ”œ 🎨 `str` πŸ’Ύ 8️⃣6️⃣0️⃣1️⃣ πŸ“, πŸ’–: `14:23:55.003`.
    * `datetime.timedelta`:
        * 🐍 `datetime.timedelta`.
        * πŸ“¨ & πŸ“¨ πŸ”œ 🎨 `float` 🌐 πŸ₯ˆ.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_request_files/test_tutorial003_an.py

                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
            )
        assert response.status_code == 200, response.text
        assert response.json() == {"file_sizes": [14, 15]}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  4. docs_src/security/tutorial005_py310.py

        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. docs_src/security/tutorial005_an_py310.py

        to_encode = data.copy()
        if expires_delta:
            expire = datetime.now(timezone.utc) + expires_delta
        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/classes-as-dependencies.md

    === "Python 3.10+"
    
        ```Python hl_lines="11-15"
        {!> ../../../docs_src/dependencies/tutorial002_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
        ```Python hl_lines="11-15"
        {!> ../../../docs_src/dependencies/tutorial002_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="12-16"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  7. docs/de/docs/how-to/custom-request-and-route.md

    Wenn der Header kein `gzip` enthΓ€lt, wird nicht versucht, den Body zu dekomprimieren.
    
    Auf diese Weise kann dieselbe Routenklasse gzip-komprimierte oder unkomprimierte Requests verarbeiten.
    
    ```Python hl_lines="8-15"
    {!../../../docs_src/custom_request_and_route/tutorial001.py!}
    ```
    
    ### Eine benutzerdefinierte `GzipRoute`-Klasse erstellen
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:18:23 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_files/test_tutorial002_an.py

                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
            )
        assert response.status_code == 200, response.text
        assert response.json() == {"file_sizes": [14, 15]}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    === "Python 3.9+"
    
        ```Python hl_lines="15-16"
        {!> ../../../docs_src/dependencies/tutorial008c_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="14-15"
        {!> ../../../docs_src/dependencies/tutorial008c_an.py!}
        ```
    
    === "Python 3.8+ non-Annotated"
    
        !!! tip
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  10. docs/de/docs/tutorial/dependencies/global-dependencies.md

        {!> ../../../docs_src/dependencies/tutorial012_an.py!}
        ```
    
    === "Python 3.8 nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls mΓΆglich.
    
        ```Python hl_lines="15"
        {!> ../../../docs_src/dependencies/tutorial012.py!}
        ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:10:13 GMT 2024
    - 1.5K bytes
    - Viewed (0)
Back to top