Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for read_text (0.04 sec)

  1. scripts/translate.py

        lang_prompt_content = lang_prompt_path.read_text(encoding="utf-8")
    
        en_docs_path = Path("docs/en/docs")
        assert str(en_path).startswith(str(en_docs_path)), (
            f"Path must be inside {en_docs_path}"
        )
        out_path = generate_lang_path(lang=language, path=en_path)
        out_path.parent.mkdir(parents=True, exist_ok=True)
        original_content = en_path.read_text(encoding="utf-8")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:05:53 UTC 2025
    - 34.1K bytes
    - Viewed (0)
  2. fastapi/exceptions.py

            await websocket.accept()
            while True:
                data = await websocket.receive_text()
                await websocket.send_text(f"Session cookie is: {session}")
                await websocket.send_text(f"Message text was: {data}, for item ID: {item_id}")
        ```
        """
    
        def __init__(
            self,
            code: Annotated[
                int,
                Doc(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. fastapi/routing.py

            async def websocket_endpoint(websocket: WebSocket):
                await websocket.accept()
                while True:
                    data = await websocket.receive_text()
                    await websocket.send_text(f"Message text was: {data}")
    
            app.include_router(router)
            ```
            """
    
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
                self.add_api_websocket_route(
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 12:54:56 UTC 2025
    - 174.6K bytes
    - Viewed (0)
Back to top