Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 85 for Liles (0.13 sec)

  1. docs/en/docs/reference/uploadfile.md

    # `UploadFile` class
    
    You can define *path operation function* parameters to be of the type `UploadFile` to receive files from the request.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import UploadFile
    ```
    
    ::: fastapi.UploadFile
        options:
            members:
                - file
                - filename
                - size
                - headers
                - content_type
                - read
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 472 bytes
    - Viewed (0)
  2. docs/en/docs/tutorial/bigger-applications.md

    # Bigger Applications - Multiple Files
    
    If you are building an application or a web API, it's rarely the case that you can put everything on a single file.
    
    **FastAPI** provides a convenience tool to structure your application while keeping all the flexibility.
    
    !!! info
        If you come from Flask, this would be the equivalent of Flask's Blueprints.
    
    ## An example file structure
    
    Let's say you have a file structure like this:
    
    ```
    .
    β”œβ”€β”€ app
    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)
  3. docs/en/docs/release-notes.md

    * ✨ Add support for declaring `UploadFile` parameters without explicit `File()`. PR [#4469](https://github.com/tiangolo/fastapi/pull/4469) by [@tiangolo](https://github.com/tiangolo). New docs: [Request Files - File Parameters with UploadFile](https://fastapi.tiangolo.com/tutorial/request-files/#file-parameters-with-uploadfile).
    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)
  4. docs/em/docs/tutorial/dependencies/dependencies-with-yield.md

    ## πŸ”‘ πŸ‘¨β€πŸ’Ό
    
    ### βš«οΈβ” "πŸ”‘ πŸ‘¨β€πŸ’Ό"
    
    "πŸ”‘ πŸ‘¨β€πŸ’Ό" πŸ™† πŸ‘ˆ 🐍 🎚 πŸ‘ˆ πŸ‘† πŸ’ͺ βš™οΈ `with` πŸ“„.
    
    πŸ–Ό, <a href="https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files" class="external-link" target="_blank">πŸ‘† πŸ’ͺ βš™οΈ `with` ✍ πŸ“</a>:
    
    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  5. docs/en/docs/deployment/concepts.md

    ### What is a Program
    
    The word **program** is commonly used to describe many things:
    
    * The **code** that you write, the **Python files**.
    * The **file** that can be **executed** by the operating system, for example: `python`, `python.exe` or `uvicorn`.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 18K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/request-files.md

    # Request Files
    
    You can define files to be uploaded by the client using `File`.
    
    !!! info
        To receive uploaded files, first install <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>.
    
        E.g. `pip install python-multipart`.
    
        This is because uploaded files are sent as "form data".
    
    ## Import `File`
    
    Import `File` and `UploadFile` from `fastapi`:
    
    === "Python 3.9+"
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  7. docs/de/docs/tutorial/request-forms-and-files.md

    ## `File` und `Form` importieren
    
    === "Python 3.9+"
    
        ```Python hl_lines="3"
        {!> ../../../docs_src/request_forms_and_files/tutorial001_an_py39.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="1"
        {!> ../../../docs_src/request_forms_and_files/tutorial001_an.py!}
        ```
    
    === "Python 3.8+ nicht annotiert"
    
        !!! tip "Tipp"
            Bevorzugen Sie die `Annotated`-Version, falls mΓΆglich.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:07:35 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  8. docs/ko/docs/tutorial/request-forms-and-files.md

        예 ) `pip install python-multipart`.
    
    ## `File` 및 `Form` μ—…λ‘œλ“œ
    
    ```Python hl_lines="1"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    ## `File` 및 `Form` λ§€κ°œλ³€μˆ˜ μ •μ˜
    
    `Body` 및 `Query`와 λ™μΌν•œ λ°©μ‹μœΌλ‘œ 파일과 폼의 λ§€κ°œλ³€μˆ˜λ₯Ό μƒμ„±ν•©λ‹ˆλ‹€:
    
    ```Python hl_lines="8"
    {!../../../docs_src/request_forms_and_files/tutorial001.py!}
    ```
    
    파일과 폼 ν•„λ“œλŠ” 폼 데이터 ν˜•μ‹μœΌλ‘œ μ—…λ‘œλ“œλ˜μ–΄ 파일과 폼 ν•„λ“œλ‘œ μ „λ‹¬λ©λ‹ˆλ‹€.
    
    μ–΄λ–€ νŒŒμΌλ“€μ€ `bytes`둜, 또 μ–΄λ–€ νŒŒμΌλ“€μ€ `UploadFile`둜 μ„ μ–Έν•  수 μžˆμŠ΅λ‹ˆλ‹€.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Mar 13 19:02:19 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial002_an.py

                        },
                    },
                    "Body_create_files_files__post": {
                        "title": "Body_create_files_files__post",
                        "required": ["files"],
                        "type": "object",
                        "properties": {
                            "files": {
                                "title": "Files",
                                "type": "array",
    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)
  10. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

    
    @pytest.fixture(name="app")
    def get_app():
        from docs_src.request_forms_and_files.tutorial001 import app
    
        return app
    
    
    @pytest.fixture(name="client")
    def get_client(app: FastAPI):
        client = TestClient(app)
        return client
    
    
    def test_post_form_no_body(client: TestClient):
        response = client.post("/files/")
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top