Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 106 for importDir (0.06 seconds)

  1. api/go1.txt

    pkg go/build, func Import(string, string, ImportMode) (*Package, error)
    pkg go/build, func ImportDir(string, ImportMode) (*Package, error)
    pkg go/build, func IsLocalImport(string) bool
    pkg go/build, method (*Context) Import(string, string, ImportMode) (*Package, error)
    pkg go/build, method (*Context) ImportDir(string, ImportMode) (*Package, error)
    pkg go/build, method (*Context) SrcDirs() []string
    Created: Tue Apr 07 11:13:11 GMT 2026
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Click Count (0)
  2. docs/fr/docs/tutorial/request-forms.md

    Assurez-vous de créer un [environnement virtuel](../virtual-environments.md), de l'activer, puis installez-le, par exemple :
    
    ```console
    $ pip install python-multipart
    ```
    
    ///
    
    ## Importer `Form` { #import-form }
    
    Importez `Form` depuis `fastapi` :
    
    {* ../../docs_src/request_forms/tutorial001_an_py310.py hl[3] *}
    
    ## Définir les paramètres `Form` { #define-form-parameters }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  3. docs/pt/docs/advanced/websockets.md

    <img src="/img/tutorial/websockets/image04.png">
    
    E todas elas usarão a mesma conexão WebSocket.
    
    ## Usando `Depends` e outros { #using-depends-and-others }
    
    Nos endpoints WebSocket você pode importar do `fastapi` e usar:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    Eles funcionam da mesma forma que para outros endpoints FastAPI/*operações de rota*:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  4. docs/zh-hant/docs/tutorial/debugging.md

    那麼在你的檔案中,由 Python 自動建立的內部變數 `__name__`,其值會是字串 `"__main__"`。
    
    因此,這段:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    會被執行。
    
    ---
    
    如果你是匯入該模組(檔案),就不會發生這件事。
    
    所以,如果你有另一個檔案 `importer.py`,內容如下:
    
    ```Python
    from myapp import app
    
    # 其他程式碼
    ```
    
    在那種情況下,`myapp.py` 中自動建立的變數 `__name__` 就不會是 `"__main__"`。
    
    因此,這一行:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  5. docs/ja/docs/tutorial/debugging.md

    なので、以下:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    は実行されます。
    
    ---
    
    そのモジュール (ファイル) をインポートした場合は、こうはなりません。
    
    したがって、次のようなもう一つのファイル `importer.py` がある場合:
    
    ```Python
    from myapp import app
    
    # その他のコード
    ```
    
    その場合、`myapp.py` 内の自動的に作成された変数 `__name__` は、値として `"__main__"` を持ちません。
    
    したがって、以下の行:
    
    ```Python
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  6. docs/fr/docs/fastapi-cli.md

    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    Cet `entrypoint` indiquera à la commande `fastapi` qu’elle doit importer l’application comme ceci :
    
    ```python
    from main import app
    ```
    
    Si votre code était structuré comme ceci :
    
    ```
    .
    ├── backend
    │   ├── main.py
    │   ├── __init__.py
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:37:13 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  7. docs/es/docs/advanced/websockets.md

    <img src="/img/tutorial/websockets/image04.png">
    
    Y todos usarán la misma conexión WebSocket.
    
    ## Usando `Depends` y otros { #using-depends-and-others }
    
    En endpoints de WebSocket puedes importar desde `fastapi` y usar:
    
    * `Depends`
    * `Security`
    * `Cookie`
    * `Header`
    * `Path`
    * `Query`
    
    Funcionan de la misma manera que para otros endpoints de FastAPI/*path operations*:
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 5.5K bytes
    - Click Count (0)
  8. docs/pt/docs/fastapi-cli.md

    Você pode configurar onde sua aplicação está localizada em um arquivo `pyproject.toml`, assim:
    
    ```toml
    [tool.fastapi]
    entrypoint = "main:app"
    ```
    
    Esse `entrypoint` dirá ao comando `fastapi` que ele deve importar a aplicação assim:
    
    ```python
    from main import app
    ```
    
    Se o seu código estivesse estruturado assim:
    
    ```
    .
    ├── backend
    │   ├── main.py
    │   ├── __init__.py
    ```
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  9. docs/es/docs/tutorial/background-tasks.md

    La clase `BackgroundTasks` proviene directamente de [`starlette.background`](https://www.starlette.dev/background/).
    
    Se importa/incluye directamente en FastAPI para que puedas importarla desde `fastapi` y evitar importar accidentalmente la alternativa `BackgroundTask` (sin la `s` al final) de `starlette.background`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 5K bytes
    - Click Count (0)
  10. docs/es/docs/python-types.md

    * `int`
    * `float`
    * `bool`
    * `bytes`
    
    {* ../../docs_src/python_types/tutorial005_py310.py hl[1] *}
    
    ### Módulo `typing` { #typing-module }
    
    Para algunos casos adicionales, podrías necesitar importar algunas cosas del módulo `typing` de la standard library, por ejemplo cuando quieres declarar que algo tiene "cualquier tipo", puedes usar `Any` de `typing`:
    
    ```python
    from typing import Any
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 11.6K bytes
    - Click Count (1)
Back to Top