Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Reshape (0.17 sec)

  1. fastapi/utils.py

        new_field.post_validators = field.post_validators  # type: ignore[attr-defined]
        new_field.parse_json = field.parse_json  # type: ignore[attr-defined]
        new_field.shape = field.shape  # type: ignore[attr-defined]
        new_field.populate_validators()  # type: ignore[attr-defined]
        return new_field
    
    
    def generate_operation_id_for_path(
        *, name: str, path: str, method: str
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/first-steps.md

    This schema definition includes your API paths, the possible parameters they take, etc.
    
    #### Data "schema"
    
    The term "schema" might also refer to the shape of some data, like a JSON content.
    
    In that case, it would mean the JSON attributes, and data types they have, etc.
    
    #### OpenAPI and JSON Schema
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/response-model.md

    * Add a **JSON Schema** for the response, in the OpenAPI *path operation*.
        * This will be used by the **automatic docs**.
        * It will also be used by automatic client code generation tools.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  4. docs/en/docs/python-types.md

    ## Pydantic models
    
    <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a> is a Python library to perform data validation.
    
    You declare the "shape" of the data as classes with attributes.
    
    And each attribute has a type.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  5. docs/en/docs/release-notes.md

    * 🌐 Add Russian translation for `docs/ru/docs/tutorial/response-status-code.md`. PR [#9370](https://github.com/tiangolo/fastapi/pull/9370) by [@nadia3373](https://github.com/nadia3373).
    
    ### Internal
    
    * πŸ› Fix `flask.escape` warning for internal tests. PR [#9468](https://github.com/tiangolo/fastapi/pull/9468) by [@samuelcolvin](https://github.com/samuelcolvin).
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
  6. docs/en/docs/tutorial/dependencies/index.md

            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="8-11"
        {!> ../../../docs_src/dependencies/tutorial001.py!}
        ```
    
    That's it.
    
    **2 lines**.
    
    And it has the same shape and structure that all your *path operation functions* have.
    
    You can think of it as a *path operation function* without the "decorator" (without the `@app.get("/some-path")`).
    
    And it can return anything you want.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/security/oauth2-scopes.md

        !!! tip
            Prefer to use the `Annotated` version if possible.
    
        ```Python hl_lines="105  107-115"
        {!> ../../../docs_src/security/tutorial005.py!}
        ```
    
    ## Verify the `username` and data shape
    
    We verify that we get a `username`, and extract the scopes.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  8. docs/en/docs/how-to/sql-databases-peewee.md

        These Pydantic models define more or less a "schema" (a valid data shape).
    
        So this will help us avoiding confusion while using both.
    
    ### Create the Pydantic *models* / schemas
    
    Create all the same Pydantic models as in the SQLAlchemy tutorial:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 13:23:25 GMT 2024
    - 23.6K bytes
    - Viewed (1)
  9. fastapi/_compat.py

        sequence_shapes = {
            SHAPE_LIST,
            SHAPE_SET,
            SHAPE_FROZENSET,
            SHAPE_TUPLE,
            SHAPE_SEQUENCE,
            SHAPE_TUPLE_ELLIPSIS,
        }
        sequence_shape_to_type = {
            SHAPE_LIST: list,
            SHAPE_SET: set,
            SHAPE_TUPLE: tuple,
            SHAPE_SEQUENCE: list,
            SHAPE_TUPLE_ELLIPSIS: list,
        }
    
        @dataclass
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. docs/ko/docs/python-types.md

    <img src="/img/python-types/image06.png">
    
    ## Pydantic λͺ¨λΈ
    
    <a href="https://docs.pydantic.dev/" class="external-link" target="_blank">Pydantic</a>은 데이터 검증(Validation)을 μœ„ν•œ 파이썬 λΌμ΄λΈŒλŸ¬λ¦¬μž…λ‹ˆλ‹€.
    
    당신은 속성듀을 ν¬ν•¨ν•œ 클래슀 ν˜•νƒœλ‘œ "λͺ¨μ–‘(shape)"을 μ„ μ–Έν•  수 μžˆμŠ΅λ‹ˆλ‹€.
    
    그리고 각 속성은 νƒ€μž…μ„ 가지고 μžˆμŠ΅λ‹ˆλ‹€.
    
    이 클래슀λ₯Ό ν™œμš©ν•˜μ—¬μ„œ 값을 가지고 μžˆλŠ” μΈμŠ€ν„΄μŠ€λ₯Ό λ§Œλ“€κ²Œ 되면, ν•„μš”ν•œ κ²½μš°μ—λŠ” μ λ‹Ήν•œ νƒ€μž…μœΌλ‘œ λ³€ν™˜κΉŒμ§€ μ‹œν‚€κΈ°λ„ ν•˜μ—¬ 데이터가 ν¬ν•¨λœ 객체λ₯Ό λ°˜ν™˜ν•©λ‹ˆλ‹€.
    
    그리고 κ²°κ³Ό 객체에 λŒ€ν•΄μ„œλŠ” μ—λ””ν„°μ˜ 도움을 받을 수 있게 λ©λ‹ˆλ‹€.
    
    Pydantic 곡식 λ¬Έμ„œ μ˜ˆμ‹œ:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 10.5K bytes
    - Viewed (0)
Back to top