Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 173 for Schenk (0.2 sec)

  1. .pre-commit-config.yaml

    default_language_version:
        python: python3.10
    repos:
    -   repo: https://github.com/pre-commit/pre-commit-hooks
        rev: v4.4.0
        hooks:
        -   id: check-added-large-files
        -   id: check-toml
        -   id: check-yaml
            args:
            -   --unsafe
        -   id: end-of-file-fixer
        -   id: trailing-whitespace
    -   repo: https://github.com/charliermarsh/ruff-pre-commit
        rev: v0.2.0
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 737 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_custom_request_and_route/test_tutorial001.py

    import gzip
    import json
    
    import pytest
    from fastapi import Request
    from fastapi.testclient import TestClient
    
    from docs_src.custom_request_and_route.tutorial001 import app
    
    
    @app.get("/check-class")
    async def check_gzip_request(request: Request):
        return {"request_class": type(request).__name__}
    
    
    client = TestClient(app)
    
    
    @pytest.mark.parametrize("compress", [True, False])
    def test_gzip_request(compress):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sun Nov 13 14:26:09 GMT 2022
    - 886 bytes
    - Viewed (0)
  3. docs/de/docs/alternatives.md

    !!! note "Hinweis"
        Das Django REST Framework wurde von Tom Christie erstellt. Derselbe Schöpfer von Starlette und Uvicorn, auf denen **FastAPI** basiert.
    
    
    !!! check "Inspirierte **FastAPI**"
        Eine automatische API-Dokumentationsoberfläche zu haben.
    
    ### <a href="https://flask.palletsprojects.com" class="external-link" target="_blank">Flask</a>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:26:28 GMT 2024
    - 26.7K bytes
    - Viewed (0)
  4. docs/en/docs/help-fastapi.md

    ### Tests
    
    * Help me check that the PR has **tests**.
    
    * Check that the tests **fail** before the PR. 🚨
    
    * Then check that the tests **pass** after the PR. ✅
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 13.7K bytes
    - Viewed (0)
  5. docs/es/docs/tutorial/path-params.md

    ```Python hl_lines="7"
    {!../../../docs_src/path_params/tutorial002.py!}
    ```
    
    En este caso, `item_id` es declarado como un `int`.
    
    !!! check "Revisa"
        Esto te dará soporte en el editor dentro de tu función, con chequeo de errores, auto-completado, etc.
    
    ## <abbr title="también conocido en inglés como: serialization, parsing, marshalling">Conversión</abbr> de datos
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.4K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/path-params.md

    ```Python hl_lines="7"
    {!../../../docs_src/path_params/tutorial002.py!}
    ```
    
    Nesse caso, `item_id` está sendo declarado como um `int`.
    
    !!! check "Verifique"
    	Isso vai dar à você suporte do seu editor dentro das funções, com verificações de erros, autocompletar, etc.
    
    ## Conversão de <abbr title="também conhecido como: serialização, parsing, marshalling">dados</abbr>
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.7K bytes
    - Viewed (0)
  7. docs_src/sql_databases/sql_app_py310/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 May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jan 07 14:11:31 GMT 2022
    - 1.2K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/path-params.md

    ```
    
    위의 예시에서, `item_id`는 `int`로 선언되었습니다.
    
    !!! check "확인"
        이 기능은 함수 내에서 오류 검사, 자동완성 등의 편집기 기능을 활용할 수 있게 해줍니다.
    
    ## 데이터 <abbr title="다음으로도 알려져 있습니다: 직렬화, 파싱, 마샬링">변환</abbr>
    
    이 예제를 실행하고 <a href="http://127.0.0.1:8000/items/3" class="external-link" target="_blank">http://127.0.0.1:8000/items/3</a>을 열면, 다음 응답을 볼 수 있습니다:
    
    ```JSON
    {"item_id":3}
    ```
    
    !!! check "확인"
        함수가 받은(반환도 하는) 값은 문자열 `"3"`이 아니라 파이썬 `int` 형인 `3`입니다.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/path-operation-configuration.md

        ```
    
    !!! info
        Notice that `response_description` refers specifically to the response, the `description` refers to the *path operation* in general.
    
    !!! check
        OpenAPI specifies that each *path operation* requires a response description.
    
        So, if you don't provide one, **FastAPI** will automatically generate one of "Successful response".
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Oct 17 05:59:11 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  10. docs_src/security/tutorial003.py

    def get_user(db, username: str):
        if username in db:
            user_dict = db[username]
            return UserInDB(**user_dict)
    
    
    def fake_decode_token(token):
        # This doesn't provide any security at all
        # Check the next version
        user = get_user(fake_users_db, token)
        return user
    
    
    async def get_current_user(token: str = Depends(oauth2_scheme)):
        user = fake_decode_token(token)
        if not user:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat May 14 11:59:59 GMT 2022
    - 2.4K bytes
    - Viewed (0)
Back to top