- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 94 for Popen (0.03 sec)
-
tests/test_dependency_yield_scope_websockets.py
await websocket.send_json( {"func_is_open": function_session.open, "req_is_open": request_session.open} ) @app.websocket("/sub") async def get_sub(websocket: WebSocket, sessions: NamedSessionsDep) -> Any: await websocket.accept() await websocket.send_json( {"named_session_open": sessions[0].open, "session_open": sessions[1].open} ) @app.websocket("/named-function-scope")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 6K bytes - Viewed (0) -
tests/test_dependency_after_yield_websockets.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2K bytes - Viewed (0) -
tests/test_dependency_yield_scope.py
yield json.dumps( {"func_is_open": function_session.open, "req_is_open": request_session.open} ) return StreamingResponse(iter_data()) @app.get("/sub") def get_sub(sessions: NamedSessionsDep) -> Any: def iter_data(): yield json.dumps( {"named_session_open": sessions[0].open, "session_open": sessions[1].open} ) return StreamingResponse(iter_data())
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 6.7K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial003.py
path = tmp_path / "test.txt" path.write_bytes(b"<file content>") path2 = tmp_path / "test2.txt" path2.write_bytes(b"<file content2>") client = TestClient(app) with path.open("rb") as file, path2.open("rb") as file2: response = client.post( "/files/", files=( ("files", ("test.txt", file)), ("files", ("test2.txt", file2)), ),
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.5K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial001.py
"input": None, } ] } def test_post_file(tmp_path, client: TestClient): path = tmp_path / "test.txt" path.write_bytes(b"<file content>") with path.open("rb") as file: response = client.post("/files/", files={"file": file}) assert response.status_code == 200, response.text assert response.json() == {"file_size": 14}
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 7.1K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
{* ../../docs_src/events/tutorial003_py39.py hl[1,13] *} A **context manager** in Python is something that you can use in a `with` statement, for example, `open()` can be used as a context manager: ```Python with open("file.txt") as file: file.read() ``` In recent versions of Python, there's also an **async context manager**. You would use it with `async with`: ```PythonRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 7.9K bytes - Viewed (0) -
docs/pt/docs/advanced/events.md
{* ../../docs_src/events/tutorial003_py39.py hl[1,13] *} Um **gerenciador de contexto** em Python é algo que você pode usar em uma declaração `with`, por exemplo, `open()` pode ser usado como um gerenciador de contexto: ```Python with open("file.txt") as file: file.read() ``` Em versões mais recentes do Python, há também um **gerenciador de contexto assíncrono**. Você o usaria com `async with`: ```PythonRegistered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 8.8K bytes - Viewed (0) -
tests/test_dependency_after_yield_streaming.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 3.2K bytes - Viewed (0) -
tests/test_tutorial/test_request_files/test_tutorial002.py
path = tmp_path / "test.txt" path.write_bytes(b"<file content>") path2 = tmp_path / "test2.txt" path2.write_bytes(b"<file content2>") client = TestClient(app) with path.open("rb") as file, path2.open("rb") as file2: response = client.post( "/files/", files=( ("files", ("test.txt", file)), ("files", ("test2.txt", file2)), ),
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 8.2K bytes - Viewed (0) -
docs/pt/docs/deployment/fastapicloud.md
* Replicação, com dimensionamento automático baseado em requests * etc. O FastAPI Cloud é o patrocinador principal e provedor de financiamento dos projetos open source do ecossistema *FastAPI and friends*. ✨ ## Implantar em outros provedores de nuvem { #deploy-to-other-cloud-providers } FastAPI é open source e baseado em padrões. Você pode implantar aplicações FastAPI em qualquer provedor de nuvem que escolher.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 19:59:04 UTC 2025 - 2.3K bytes - Viewed (0)