- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 139 for file_path (0.14 seconds)
-
tests/test_tutorial/test_custom_response/test_tutorial008.py
from docs_src.custom_response.tutorial008_py39 import app client = TestClient(app) def test_get(tmp_path: Path): file_path: Path = tmp_path / "large-video-file.mp4" tutorial008_py39.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content) response = client.get("/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 502 bytes - Click Count (0) -
docs_src/path_params/tutorial004_py39.py
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 156 bytes - Click Count (0) -
tests/test_tutorial/test_path_params/test_tutorial004.py
assert response.status_code == 200, response.text assert response.json() == {"file_path": "home/johndoe/myfile.txt"} def test_root_file_path(): response = client.get("/files//home/johndoe/myfile.txt") print(response.content) assert response.status_code == 200, response.text assert response.json() == {"file_path": "/home/johndoe/myfile.txt"} def test_openapi_schema():Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 3.3K bytes - Click Count (0) -
tests/test_tutorial/test_custom_response/test_tutorial009.py
from docs_src.custom_response.tutorial009_py39 import app client = TestClient(app) def test_get(tmp_path: Path): file_path: Path = tmp_path / "large-video-file.mp4" tutorial009_py39.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content) response = client.get("/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 502 bytes - Click Count (0) -
docs_src/generate_clients/tutorial004_py39.py
import json from pathlib import Path file_path = Path("./openapi.json") openapi_content = json.loads(file_path.read_text()) for path_data in openapi_content["paths"].values(): for operation in path_data.values(): tag = operation["tags"][0] operation_id = operation["operationId"] to_remove = f"{tag}-" new_operation_id = operation_id[len(to_remove) :] operation["operationId"] = new_operation_id
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 493 bytes - Click Count (0) -
tests/test_tutorial/test_custom_response/test_tutorial009b.py
from docs_src.custom_response.tutorial009b_py39 import app client = TestClient(app) def test_get(tmp_path: Path): file_path: Path = tmp_path / "large-video-file.mp4" tutorial009b_py39.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content) response = client.get("/")
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 505 bytes - Click Count (0) -
ci/official/utilities/extract_resultstore_links.py
testsuite.attrib = suite_attrib indent_xml(testsuites) tree = ElemTree.ElementTree(testsuites) file_path = os.path.join(output_path) with open(file_path, 'wb') as f: f.write(b'<?xml version="1.0"?>\n') tree.write(f) if verbose: print(f'\nWrote XML with Bazel invocation results to {file_path}') def print_invocation_results(result_store_dict: ResultDictType):Created: Tue Dec 30 12:39:10 GMT 2025 - Last Modified: Wed Nov 08 17:50:27 GMT 2023 - 10.9K bytes - Click Count (0) -
docs/de/docs/tutorial/path-params.md
"message": "Deep Learning FTW!" } ``` ## Pfad-Parameter, die Pfade enthalten { #path-parameters-containing-paths } Angenommen, Sie haben eine *Pfadoperation* mit einem Pfad `/files/{file_path}`. Aber `file_path` soll selbst einen *Pfad* enthalten, etwa `home/johndoe/myfile.txt`. Sprich, die URL für diese Datei wäre etwas wie: `/files/home/johndoe/myfile.txt`. ### OpenAPI-Unterstützung { #openapi-support }
Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Dec 17 20:41:43 GMT 2025 - 10.5K bytes - Click Count (0) -
docs/tr/docs/tutorial/path-params.md
```JSON { "model_name": "alexnet", "message": "Deep Learning FTW!" } ``` ## Yol İçeren Yol Parametreleri Farz edelim ki elinizde `/files/{file_path}` isminde bir *yol operasyonu* var. Fakat `file_path` değerinin `home/johndoe/myfile.txt` gibi bir *yol* barındırmasını istiyorsunuz. Sonuç olarak, oluşturmak istediğin URL `/files/home/johndoe/myfile.txt` gibi bir şey olacaktır.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:29:01 GMT 2025 - 10.5K bytes - Click Count (0) -
docs/uk/docs/tutorial/path-params.md
```JSON { "model_name": "alexnet", "message": "Deep Learning FTW!" } ``` ## Path-параметри, що містять шляхи Припустимо, у вас є *операція шляху* з маршрутом `/files/{file_path}`. Але вам потрібно, щоб `file_path` містив *шлях*, наприклад `home/johndoe/myfile.txt`. Отже, URL для цього файлу виглядатиме так: `/files/home/johndoe/myfile.txt`. ### Підтримка OpenAPICreated: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sun Aug 31 10:29:01 GMT 2025 - 14.1K bytes - Click Count (0)