Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 169 for url_lines (0.12 sec)

  1. docs/ru/docs/alternatives.md

    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    Соответствующая в FastAPI API-операция пути могла бы выглядеть так:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World"}
    ```
    
    Посмотрите, насколько похожи `requests.get(...)` и `@app.get(...)`.
    
    /// check | Вдохновило **FastAPI** на
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  2. docs/ja/docs/environment-variables.md

    Hello Wade Wilson
    ```
    
    </div>
    
    ////
    
    ## Pythonで環境変数を読み取る
    
    環境変数をPythonの**外側**、ターミナル(や他の方法)で作成し、**Python内で読み取る**こともできます。
    
    例えば、以下のような`main.py`ファイルを用意します:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Jan 27 15:39:04 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  3. docs/ja/docs/tutorial/first-steps.md

    `uvicorn main:app`は以下を示します:
    
    * `main`: `main.py`ファイル (Python "module")。
    * `app`:  `main.py`内部で作られるobject(`app = FastAPI()`のように記述される)。
    * `--reload`: コードの変更時にサーバーを再起動させる。開発用。
    
    ///
    
    出力には次のような行があります:
    
    ```hl_lines="4"
    INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
    ```
    
    この行はローカルマシンでアプリが提供されているURLを示しています。
    
    ### チェック
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 11K bytes
    - Viewed (0)
  4. docs/tr/docs/alternatives.md

    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    Bunun FastAPI'deki API <abbr title="Yol İşlemi: Path Operation">*yol işlemi*</abbr> şöyle görünür:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
        return {"message": "Hello World!"}
    ```
    
    `requests.get(...)` ile `@app.get(...)` arasındaki benzerliklere bakın.
    
    /// check | **FastAPI**'a nasıl ilham verdi?
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Oct 11 17:48:49 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/settings.md

    Hello Wade Wilson
    ```
    
    </div>
    
    ////
    
    ### 在 Python 中读取环境变量
    
    您还可以在 Python 之外的地方(例如终端中或使用任何其他方法)创建环境变量,然后在 Python 中读取它们。
    
    例如,您可以有一个名为 `main.py` 的文件,其中包含以下内容:
    
    ```Python hl_lines="3"
    import os
    
    name = os.getenv("MY_NAME", "World")
    print(f"Hello {name} from Python")
    ```
    
    /// tip
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *}
    
    Da der Pfad jeder *Pfadoperation* mit `/` beginnen muss, wie in:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ... darf das Präfix kein abschließendes `/` enthalten.
    
    Das Präfix lautet in diesem Fall also `/items`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 13:54:34 UTC 2025
    - 21.3K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/bigger-applications.md

    мы добавим их в `APIRouter`.
    
    {* ../../docs_src/bigger_applications/app_an_py39/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *}
    
    Так как каждый *эндпоинт* начинается с символа `/`:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...то префикс не должен заканчиваться символом `/`.
    
    В нашем случае префиксом является `/items`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Dec 11 21:25:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  8. docs/ja/docs/python-types.md

        * この`dict`のキーは`str`型です。(つまり、各項目の名前)
        * この`dict`の値は`float`型です。(つまり、各項目の価格)
    
    #### `Optional`
    
    また、`Optional`を使用して、変数が`str`のような型を持つことを宣言することもできますが、それは「オプション」であり、`None`にすることもできます。
    
    ```Python hl_lines="1 4"
    {!../../docs_src/python_types/tutorial009.py!}
    ```
    
    ただの`str`の代わりに`Optional[str]`を使用することで、エディタは値が常に`str`であると仮定している場合に実際には`None`である可能性があるエラーを検出するのに役立ちます。
    
    #### ジェネリック型
    
    以下のように角括弧で型パラメータを取る型を:
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. docs/es/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *}
    
    Como el path de cada *path operation* tiene que empezar con `/`, como en:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...el prefijo no debe incluir un `/` final.
    
    Así que, el prefijo en este caso es `/items`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/bigger-applications.md

    {* ../../docs_src/bigger_applications/app_an_py39/routers/items.py hl[5:10,16,21] title["app/routers/items.py"] *}
    
    Como o caminho de cada *operação de rota* deve começar com `/`, como em:
    
    ```Python hl_lines="1"
    @router.get("/{item_id}")
    async def read_item(item_id: str):
        ...
    ```
    
    ...o prefixo não deve incluir um `/` final.
    
    Então, o prefixo neste caso é `/items`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 20:32:40 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top