- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 325 for fork (0.15 sec)
-
docs/pt/docs/tutorial/request-forms.md
Quando você precisar receber campos de formulário ao invés de JSON, você pode usar `Form`. !!! info "Informação" Para usar formulários, primeiro instale <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Ex: `pip install python-multipart`. ## Importe `Form` Importe `Form` de `fastapi`: ```Python hl_lines="1" {!../../../docs_src/request_forms/tutorial001.py!}
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 2.7K bytes - Viewed (0) -
tests/test_multipart_installation.py
def test_incorrect_multipart_installed_multi_form(monkeypatch): monkeypatch.delattr("multipart.multipart.parse_options_header", raising=False) with pytest.raises(RuntimeError, match=multipart_incorrect_install_error): app = FastAPI() @app.post("/") async def root(username: str = Form(), password: str = Form()): return username # pragma: nocover
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 3.7K bytes - Viewed (0) -
docs/ru/docs/tutorial/request-forms.md
Когда вам нужно получить поля формы вместо JSON, вы можете использовать `Form`. !!! info "Дополнительная информация" Чтобы использовать формы, сначала установите <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. Например, выполните команду `pip install python-multipart`. ## Импорт `Form` Импортируйте `Form` из `fastapi`: === "Python 3.9+" ```Python hl_lines="3"
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 5K bytes - Viewed (0) -
docs_src/request_files/tutorial002_an_py39.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 826 bytes - Viewed (0) -
docs_src/request_files/tutorial002.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri May 13 23:38:22 GMT 2022 - 811 bytes - Viewed (0) -
docs_src/request_files/tutorial003_an.py
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 18 12:29:59 GMT 2023 - 987 bytes - Viewed (0) -
docs/pt/docs/tutorial/request-forms-and-files.md
!!! warning "Aviso" Você pode declarar vários parâmetros `File` e `Form` em uma *operação de caminho*, mas não é possível declarar campos `Body` para receber como JSON, pois a requisição terá o corpo codificado usando `multipart/form-data` ao invés de `application/json`. Isso não é uma limitação do **FastAPI** , é parte do protocolo HTTP. ## Recapitulando
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 1.4K bytes - Viewed (0) -
docs/em/docs/tutorial/request-forms-and-files.md
👆 💪 🔬 📁 & 📨 🏑 🎏 🕰 ⚙️ `File` & `Form`. !!! info 📨 📂 📁 & /⚖️ 📨 📊, 🥇 ❎ <a href="https://github.com/Kludex/python-multipart" class="external-link" target="_blank">`python-multipart`</a>. 🤶 Ⓜ. `pip install python-multipart`. ## 🗄 `File` & `Form` ```Python hl_lines="1" {!../../../docs_src/request_forms_and_files/tutorial001.py!} ``` ## 🔬 `File` & `Form` 🔢
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 1.1K bytes - Viewed (0) -
docs/ja/docs/tutorial/request-forms-and-files.md
`File`と`Form`を同時に使うことでファイルとフォームフィールドを定義することができます。 !!! info "情報" アップロードされたファイルやフォームデータを受信するには、まず<a href="https://andrew-d.github.io/python-multipart/" class="external-link" target="_blank">`python-multipart`</a>をインストールします。 例えば、`pip install python-multipart`のように。 ## `File`と`Form`のインポート ```Python hl_lines="1" {!../../../docs_src/request_forms_and_files/tutorial001.py!} ``` ## `File`と`Form`のパラメータの定義
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Tue Apr 02 04:31:22 GMT 2024 - 1.8K bytes - Viewed (0) -
docs/de/docs/tutorial/request-files.md
## Was sind „Formulardaten“ HTML-Formulare (`<form></form>`) senden die Daten in einer „speziellen“ Kodierung zum Server, welche sich von JSON unterscheidet. **FastAPI** stellt sicher, dass diese Daten korrekt ausgelesen werden, statt JSON zu erwarten.
Plain Text - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Sat Mar 30 17:58:08 GMT 2024 - 11.5K bytes - Viewed (0)