Search Options

Results per page
Sort
Preferred Languages
Advance

Results 711 - 720 of 874 for Pythons (0.08 sec)

  1. fastapi/security/http.py

        `username` and the `password`.
    
        Read more about it in the
        [FastAPI docs for HTTP Basic Auth](https://fastapi.tiangolo.com/advanced/security/http-basic-auth/).
    
        ## Example
    
        ```python
        from typing import Annotated
    
        from fastapi import Depends, FastAPI
        from fastapi.security import HTTPBasic, HTTPBasicCredentials
    
        app = FastAPI()
    
        security = HTTPBasic()
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 19 09:47:28 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  2. docs/extensions/s3zip/examples/boto3/main.py

    #!/usr/bin/env/python
    
    import boto3
    from botocore.client import Config
    
    s3 = boto3.client('s3',
            endpoint_url='http://localhost:9000',
            aws_access_key_id='YOUR-ACCESSKEYID',
            aws_secret_access_key='YOUR-SECRETACCESSKEY',
            config=Config(signature_version='s3v4'),
            region_name='us-east-1')
    
    
    def _add_header(request, **kwargs):
        request.headers.add_header('x-minio-extract', 'true')
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 04 21:15:45 UTC 2021
    - 771 bytes
    - Viewed (0)
  3. docs/es/docs/advanced/response-change-status-code.md

    Puedes declarar un parámetro de tipo `Response` en tu *función de la operación de path* (como puedes hacer para cookies y headers).
    
    Y luego puedes establecer el `status_code` en ese objeto de respuesta *temporal*.
    
    ```Python hl_lines="1  9  12"
    {!../../docs_src/response_change_status_code/tutorial001.py!}
    ```
    
    Y luego puedes retornar cualquier objeto que necesites, como normalmente lo harías (un `dict`, un modelo de base de datos, etc).
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. docs/ko/docs/deployment/cloud.md

    이는 FastAPI와 **커뮤니티** (여러분)에 대한 진정한 헌신을 보여줍니다. 그들은 여러분에게 **좋은 서비스**를 제공할 뿐 만이 아니라 여러분이 **훌륭하고 건강한 프레임워크인** FastAPI 를 사용하길 원하기 때문입니다. 🙇
    
    아래와 같은 서비스를 사용해보고 각 서비스의 가이드를 따를 수도 있습니다:
    
    * <a href="https://docs.platform.sh/languages/python.html?utm_source=fastapi-signup&utm_medium=banner&utm_campaign=FastAPI-signup-June-2023" class="external-link" target="_blank">Platform.sh</a>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jan 28 10:38:34 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. docs/en/docs/reference/responses.md

    Read more about it in the [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/).
    
    You can import them directly from `fastapi.responses`:
    
    ```python
    from fastapi.responses import (
        FileResponse,
        HTMLResponse,
        JSONResponse,
        ORJSONResponse,
        PlainTextResponse,
        RedirectResponse,
        Response,
        StreamingResponse,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. docs/en/overrides/main.html

          </a>
        </div>
        <div class="item">
          <a title="Build your next app with FastAPI and MongoDB" style="display: block; position: relative;" href="https://www.mongodb.com/developer/languages/python/python-quickstart-fastapi/?utm_campaign=fastapi_framework&utm_source=fastapi_sponsorship&utm_medium=web_referral" target="_blank">
            <span class="sponsor-badge">sponsor</span>
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 09:13:26 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. fastapi/applications.py

        """
        `FastAPI` app class, the main entrypoint to use FastAPI.
    
        Read more in the
        [FastAPI docs for First Steps](https://fastapi.tiangolo.com/tutorial/first-steps/).
    
        ## Example
    
        ```python
        from fastapi import FastAPI
    
        app = FastAPI()
        ```
        """
    
        def __init__(
            self: AppType,
            *,
            debug: Annotated[
                bool,
                Doc(
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  8. docs/em/docs/deployment/server-workers.md

        * 👆 💪 🌈 👈 `main:app` 🌓 🐍 `import` 📄 💖:
    
            ```Python
            from main import app
            ```
    
        * , ❤ `main:app` 🔜 🌓 🐍 `import` 🍕 `from main import app`.
    * `--workers`: 🔢 👨‍🏭 🛠️ ⚙️, 🔠 🔜 🏃 Uvicorn 👨‍🏭, 👉 💼, 4️⃣ 👨‍🏭.
    * `--worker-class`: 🐁-🔗 👨‍🏭 🎓 ⚙️ 👨‍🏭 🛠️.
        * 📥 👥 🚶‍♀️ 🎓 👈 🐁 💪 🗄 &amp; ⚙️ ⏮️:
    
            ```Python
            import uvicorn.workers.UvicornWorker
            ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. docs/sts/client-grants.py

    #!/usr/bin/env python
    # -*- coding: utf-8 -*-
    
    import logging
    
    import boto3
    from boto3.session import Session
    from botocore.session import get_session
    
    from client_grants import ClientGrantsCredentialProvider
    
    boto3.set_stream_logger('boto3.resources', logging.DEBUG)
    
    bc_session = get_session()
    bc_session.get_component('credential_provider').insert_before(
        'env',
        ClientGrantsCredentialProvider('NZLOOFRSluw9RfIkuHGqfk1HFp4a',
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/static-files.md

    ## Использование `StaticFiles`
    
    * Импортируйте `StaticFiles`.
    * "Примонтируйте" экземпляр `StaticFiles()` с указанием определенной директории.
    
    ```Python hl_lines="2  6"
    {!../../docs_src/static_files/tutorial001.py!}
    ```
    
    /// note | "Технические детали"
    
    Вы также можете использовать `from starlette.staticfiles import StaticFiles`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top