Search Options

Results per page
Sort
Preferred Languages
Advance

Results 361 - 370 of 873 for Python (0.11 sec)

  1. docs/en/docs/reference/status.md

    # Status Codes
    
    You can import the `status` module from `fastapi`:
    
    ```python
    from fastapi import status
    ```
    
    `status` is provided directly by Starlette.
    
    It contains a group of named constants (variables) with integer status codes.
    
    For example:
    
    * 200: `status.HTTP_200_OK`
    * 403: `status.HTTP_403_FORBIDDEN`
    * etc.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 871 bytes
    - Viewed (0)
  2. docs/pt/docs/how-to/extending-openapi.md

    ### **FastAPI** Normal
    
    Primeiro, escreva toda a sua aplicação **FastAPI** normalmente:
    
    ```Python hl_lines="1  4  7-9"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    ### Gerar o esquema OpenAPI
    
    Em seguida, use a mesma função utilitária para gerar o esquema OpenAPI, dentro de uma função `custom_openapi()`:
    
    ```Python hl_lines="2  15-21"
    {!../../docs_src/extending_openapi/tutorial001.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 22 17:40:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. .github/actions/notify-translations/Dockerfile

    FROM python:3.9
    
    RUN pip install httpx PyGithub "pydantic==1.5.1" "pyyaml>=5.3.1,<6.0.0"
    
    COPY ./app /app
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 19:51:39 UTC 2023
    - 138 bytes
    - Viewed (0)
  4. docs/pt/docs/alternatives.md

    > Requests é um dos pacotes Python mais baixados de todos os tempos
    
    O jeito de usar é muito simples. Por exemplo, para fazer uma requisição `GET`, você deveria escrever:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    A contra-parte da aplicação FastAPI, *rota de operação*, poderia parecer como:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. common/Makefile.common.mk

    .*$$' $(MAKEFILE_LIST) | sort  | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
    
    .PHONY: lint-dockerfiles lint-scripts lint-yaml lint-copyright-banner lint-go lint-python lint-helm lint-markdown lint-sass lint-typescript lint-all format-go format-python update-common lint-licenses dump-licenses dump-licenses-csv check-clean-repo tidy-docker help tidy-go mod-download-go...
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Jun 12 14:37:27 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. docs/zh/docs/contributing.md

    首先,你可能想了解 [帮助 FastAPI 及获取帮助](help-fastapi.md){.internal-link target=_blank}的基本方式。
    
    ## 开发
    
    如果你已经克隆了源码仓库,并且需要深入研究代码,下面是设置开发环境的指南。
    
    ### 通过 `venv` 管理虚拟环境
    
    你可以使用 Python 的 `venv` 模块在一个目录中创建虚拟环境:
    
    <div class="termy">
    
    ```console
    $ python -m venv env
    ```
    
    </div>
    
    这将使用 Python 程序创建一个 `./env/` 目录,然后你将能够为这个隔离的环境安装软件包。
    
    ### 激活虚拟环境
    
    使用以下方法激活新环境:
    
    //// tab | Linux, macOS
    
    <div class="termy">
    
    ```console
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 04:48:30 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/custom-response.md

    ```Python hl_lines="1  18"
    {!../../docs_src/response_directly/tutorial002.py!}
    ```
    
    ### `HTMLResponse`
    
    Takes some text or bytes and returns an HTML response, as you read above.
    
    ### `PlainTextResponse`
    
    Takes some text or bytes and returns a plain text response.
    
    ```Python hl_lines="2  7  9"
    {!../../docs_src/custom_response/tutorial005.py!}
    ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  8. docs/en/docs/reference/middleware.md

    It can be imported from `fastapi`:
    
    ```python
    from fastapi.middleware.cors import CORSMiddleware
    ```
    
    ::: fastapi.middleware.gzip.GZipMiddleware
    
    It can be imported from `fastapi`:
    
    ```python
    from fastapi.middleware.gzip import GZipMiddleware
    ```
    
    ::: fastapi.middleware.httpsredirect.HTTPSRedirectMiddleware
    
    It can be imported from `fastapi`:
    
    ```python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 991 bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/handling-errors.md

    ### Импортируйте `HTTPException`
    
    ```Python hl_lines="1"
    {!../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    ### Вызовите `HTTPException` в своем коде
    
    `HTTPException` - это обычное исключение Python с дополнительными данными, актуальными для API.
    
    Поскольку это исключение Python, то его не `возвращают`, а `вызывают`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. docs/em/docs/advanced/security/http-basic-auth.md

        * ⚫️ 🔌 `username` &amp; `password` 📨.
    
    ```Python hl_lines="2  6  10"
    {!../../docs_src/security/tutorial006.py!}
    ```
    
    🕐❔ 👆 🔄 📂 📛 🥇 🕰 (⚖️ 🖊 "🛠️" 🔼 🩺) 🖥 🔜 💭 👆 👆 🆔 &amp; 🔐:
    
    <img src="/img/tutorial/security/image12.png">
    
    ## ✅ 🆔
    
    📥 🌅 🏁 🖼.
    
    ⚙️ 🔗 ✅ 🚥 🆔 &amp; 🔐 ☑.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top