Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 101 for imported2 (0.06 sec)

  1. docs/pt/docs/tutorial/request-files.md

    ```console
    $ pip install python-multipart
    ```
    
    Isso é necessário, visto que os arquivos enviados são enviados como "dados de formulário".
    
    ///
    
    ## Importe `File`
    
    Importe `File` e `UploadFile` de `fastapi`:
    
    {* ../../docs_src/request_files/tutorial001_an_py39.py hl[3] *}
    
    ## Definir Parâmetros `File`
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sat Nov 09 16:39:20 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/debugging.md

    , 📄:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    🔜 🏃.
    
    ---
    
    👉 🏆 🚫 🔨 🚥 👆 🗄 👈 🕹 (📁).
    
    , 🚥 👆 ✔️ ➕1️⃣ 📁 `importer.py` ⏮️:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    👈 💼, 🏧 🔢 🔘 `myapp.py` 🔜 🚫 ✔️ 🔢 `__name__` ⏮️ 💲 `"__main__"`.
    
    , ⏸:
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. lib/wasm/wasm_exec.js

    					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
    					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
    					// This changes the SP, thus we have to update the SP used by the imported function.
    
    					// func wasmExit(code int32)
    					"runtime.wasmExit": (sp) => {
    						sp >>>= 0;
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Sun Dec 08 15:34:47 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. docs/pt/docs/tutorial/path-params-numeric-validations.md

    Do mesmo modo que você pode declarar mais validações e metadados para parâmetros de consulta com `Query`, você pode declarar os mesmos tipos de validações e metadados para parâmetros de rota com `Path`.
    
    ## Importe `Path`
    
    Primeiro, importe `Path` de `fastapi`:
    
    {* ../../docs_src/path_params_numeric_validations/tutorial001_py310.py hl[1] *}
    
    ## Declare metadados
    
    Você pode declarar todos os parâmetros da mesma maneira que na `Query`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  5. docs/ko/docs/tutorial/debugging.md

    따라서 섹션
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    이 실행됩니다.
    
    ---
    
    해당 모듈(파일)을 가져오면 이런 일이 발생하지 않습니다
    
    그래서 다음과 같은 다른 파일 `importer.py`가 있는 경우:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    이 경우 `myapp.py` 내부의 자동 변수에는 값이 `"__main__"`인 변수 `__name__`이 없습니다.
    
    따라서 다음 행
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. docs/pt/docs/tutorial/request-forms-and-files.md

    Por exemplo: `pip install python-multipart`.
    
    ///
    
    ## Importe `File` e `Form`
    
    {* ../../docs_src/request_forms_and_files/tutorial001.py hl[1] *}
    
    ## Defina parâmetros de `File` e `Form`
    
    Crie parâmetros de arquivo e formulário da mesma forma que você faria para `Body` ou `Query`:
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. docs/pt/docs/tutorial/static-files.md

    # Arquivos Estáticos
    
    Você pode servir arquivos estáticos automaticamente de um diretório usando `StaticFiles`.
    
    ## Use `StaticFiles`
    
    * Importe `StaticFiles`.
    * "Monte" uma instância de `StaticFiles()` em um caminho específico.
    
    {* ../../docs_src/static_files/tutorial001.py hl[2,6] *}
    
    /// note | Detalhes técnicos
    
    Você também pode usar `from starlette.staticfiles import StaticFiles`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/additional-status-codes.md

    Mas você também deseja aceitar novos itens. E quando os itens não existiam, ele os cria, e retorna o código de status HTTP 201 "Created.
    
    Para conseguir isso, importe `JSONResponse` e retorne o seu conteúdo diretamente, definindo o `status_code` que você deseja:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning | Aviso
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/debugging.md

    So, the section:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    will run.
    
    ---
    
    This won't happen if you import that module (file).
    
    So, if you have another file `importer.py` with:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    in that case, the automatically created variable inside of `myapp.py` will not have the variable `__name__` with a value of `"__main__"`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/query-params-str-validations.md

    ///
    
    ## Validação adicional
    
    Nós iremos forçar que mesmo o parâmetro `q` seja opcional, sempre que informado, **seu tamanho não exceda 50 caracteres**.
    
    ### Importe `Query`
    
    Para isso, primeiro importe `Query` de `fastapi`:
    
    {* ../../docs_src/query_params_str_validations/tutorial002.py hl[3] *}
    
    ## Use `Query` como o valor padrão
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top