- Sort Score
- Result 10 results
- Languages All
Results 1421 - 1430 of 1,452 for DEF (0.04 sec)
-
docs/de/docs/deployment/docker.md
* Erstellen Sie eine `main.py`-Datei mit: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 39K bytes - Viewed (0) -
docs/bucket/notifications/README.md
```py #!/usr/bin/env python3 from __future__ import print_function import paho.mqtt.client as mqtt # This is the Subscriber def on_connect(client, userdata, flags, rc): print("Connected with result code "+str(rc)) # qos level is set to 1 client.subscribe("minio", 1) def on_message(client, userdata, msg): print(msg.payload)
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Jan 18 07:03:17 UTC 2024 - 84K bytes - Viewed (0) -
cmd/object-api-putobject_test.go
4: {bucketName: bucket, inputData: []byte(""), expectedError: ObjectNameInvalid{Bucket: bucket, Object: ""}}, // Valid object and bucket names but non-existent bucket. 5: {bucketName: "abc", objName: "def", inputData: []byte(""), expectedError: BucketNotFound{Bucket: "abc"}}, // Input to replicate Md5 mismatch. 6: { bucketName: bucket, objName: object, inputData: []byte(""),
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Feb 22 06:26:06 UTC 2024 - 25.8K bytes - Viewed (0) -
docs/ja/docs/features.md
型を使用した標準的なPythonを記述します: ```Python from datetime import date from pydantic import BaseModel # Declare a variable as a str # and get editor support inside the function def main(user_id: str): return user_id # A Pydantic model class User(BaseModel): id: int name: str joined: date ``` これは以下のように用いられます: ```Python
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Tue Aug 06 04:48:30 UTC 2024 - 12.2K bytes - Viewed (0) -
docs/zh/docs/deployment/docker.md
* 创建一个 `main.py` 文件: ```Python from typing import Union from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} @app.get("/items/{item_id}") def read_item(item_id: int, q: Union[str, None] = None): return {"item_id": item_id, "q": q} ``` ### Dockerfile 现在在相同的project目录创建一个名为`Dockerfile`的文件:
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Mon Aug 12 21:47:53 UTC 2024 - 31.2K bytes - Viewed (0) -
docs/pt/docs/tutorial/bigger-applications.md
{!../../docs_src/bigger_applications/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 Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 19.6K bytes - Viewed (0) -
docs/uk/docs/alternatives.md
```Python response = requests.get("http://example.com/some/url") ``` Відповідна операція *роуту* API FastAPI може виглядати так: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World"} ``` Зверніть увагу на схожість у `requests.get(...)` і `@app.get(...)`. /// check | "Надихнуло **FastAPI** на" * Майте простий та інтуїтивно зрозумілий API.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 38.1K bytes - Viewed (0) -
docs/em/docs/alternatives.md
🌌 👆 ⚙️ ⚫️ 📶 🙅. 🖼, `GET` 📨, 👆 🔜 ✍: ```Python response = requests.get("http://example.com/some/url") ``` FastAPI 😑 🛠️ *➡ 🛠️* 💪 👀 💖: ```Python hl_lines="1" @app.get("/some/url") def read_url(): return {"message": "Hello World"} ``` 👀 🔀 `requests.get(...)` & `@app.get(...)`. /// check | "😮 **FastAPI** " * ✔️ 🙅 & 🏋️ 🛠️. * ⚙️ 🇺🇸🔍 👩🔬 📛 (🛠️) 🔗, 🎯 & 🏋️ 🌌.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 20 19:20:23 UTC 2024 - 18.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ListsTest.java
public void testCharactersOfIsView() { StringBuilder builder = new StringBuilder("abc"); List<Character> chars = charactersOf(builder); assertEquals(asList('a', 'b', 'c'), chars); builder.append("def"); assertEquals(asList('a', 'b', 'c', 'd', 'e', 'f'), chars); builder.deleteCharAt(5); assertEquals(asList('a', 'b', 'c', 'd', 'e'), chars); } public void testNewArrayListEmpty() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ListsTest.java
public void testCharactersOfIsView() { StringBuilder builder = new StringBuilder("abc"); List<Character> chars = charactersOf(builder); assertEquals(asList('a', 'b', 'c'), chars); builder.append("def"); assertEquals(asList('a', 'b', 'c', 'd', 'e', 'f'), chars); builder.deleteCharAt(5); assertEquals(asList('a', 'b', 'c', 'd', 'e'), chars); } public void testNewArrayListEmpty() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 35K bytes - Viewed (0)