Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for video (0.14 sec)

  1. docs_src/custom_response/tutorial008.py

    from fastapi import FastAPI
    from fastapi.responses import StreamingResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/")
    def main():
        def iterfile():  # (1)
            with open(some_file_path, mode="rb") as file_like:  # (2)
                yield from file_like  # (3)
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jul 19 19:14:58 GMT 2021
    - 360 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_custom_response/test_tutorial009.py

    from docs_src.custom_response.tutorial009 import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 487 bytes
    - Viewed (0)
  3. tests/test_tutorial/test_custom_response/test_tutorial009b.py

    from docs_src.custom_response.tutorial009b import app
    
    client = TestClient(app)
    
    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009b.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 490 bytes
    - Viewed (0)
  4. docs/contribute/concurrency.md

    Consider an application streaming a video over http/2. Perhaps the user pauses the video and the application stops reading bytes from this stream. The buffer will fill up, and flow control prevents the server from sending more data on this stream. When the user unpauses her video the buffer drains, the read is acknowledged, and the server proceeds to stream data.
    
    #### Shared reader thread
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 16:35:36 GMT 2022
    - 7K bytes
    - Viewed (0)
  5. docs_src/custom_response/tutorial009b.py

    from fastapi import FastAPI
    from fastapi.responses import FileResponse
    
    some_file_path = "large-video-file.mp4"
    app = FastAPI()
    
    
    @app.get("/", response_class=FileResponse)
    async def main():
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 217 bytes
    - Viewed (0)
  6. SECURITY.md

    including tensorflow-io should be sandboxed if used to process untrusted data.
    
    For example, if an attacker were to upload a malicious video file, they could
    potentially exploit a vulnerability in the TensorFlow code that handles videos,
    which could allow them to execute arbitrary code on the system running
    TensorFlow.
    
    It is important to keep TensorFlow up to date with the latest security patches
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Sun Oct 01 06:06:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/MediaType.kt

     *
     * [rfc_2045]: http://tools.ietf.org/html/rfc2045
     */
    class MediaType internal constructor(
      internal val mediaType: String,
      /**
       * Returns the high-level media type, such as "text", "image", "audio", "video", or "application".
       */
      @get:JvmName("type") val type: String,
      /**
       * Returns a specific media subtype, such as "plain" or "png", "mpeg", "mp4" or "xml".
       */
      @get:JvmName("subtype") val subtype: String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. docs/en/data/sponsors.yml

        title: Simplify Full Stack Development with FastAPI & MongoDB
        img: https://fastapi.tiangolo.com/img/sponsors/mongodb.png
    silver:
      - url: https://training.talkpython.fm/fastapi-courses
        title: FastAPI video courses on demand from people you trust
        img: https://fastapi.tiangolo.com/img/sponsors/talkpython-v2.jpg
      - url: https://github.com/deepset-ai/haystack/
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Mar 25 23:10:11 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  9. docs/compression/README.md

     | `rar` | (WinRAR)    |
     | `zip` | (ZIP)       |
     | `7z`  | (7-Zip)     |
     | `xz`  | (LZMA)      |
     | `mp4` | (MP4)       |
     | `mkv` | (MKV media) |
     | `mov` | (MOV)       |
    
    - Content-Types
    
     | `video/*`                |
     | `audio/*`                |
     | `application/zip`        |
     | `application/x-gzip`     |
     | `application/zip`        |
     | `application/x-bz2`      |
     | `application/x-compress` |
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 11 11:55:34 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  10. docs/pt/docs/help-fastapi.md

    É possível [contribuir](contributing.md){.internal-link target=_blank} no código fonte fazendo Pull Requests, por exemplo:
    
    * Para corrigir um erro de digitação que você encontrou na documentação.
    * Para compartilhar um artigo, video, ou podcast criados por você sobre o FastAPI <a href="https://github.com/tiangolo/fastapi/edit/master/docs/en/data/external_links.yml" class="external-link" target="_blank">editando este arquivo</a>.
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top