Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for process_item (0.19 sec)

  1. docs_src/python_types/tutorial008b_py310.py

    def process_item(item: int | str):
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 51 bytes
    - Viewed (0)
  2. docs_src/python_types/tutorial008b.py

    from typing import Union
    
    
    def process_item(item: Union[int, str]):
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 84 bytes
    - Viewed (0)
  3. docs_src/python_types/tutorial008.py

    from typing import Dict
    
    
    def process_items(prices: Dict[str, float]):
        for item_name, item_price in prices.items():
            print(item_name)
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Jan 16 14:44:08 UTC 2022
    - 171 bytes
    - Viewed (0)
  4. docs_src/python_types/tutorial007_py39.py

    def process_items(items_t: tuple[int, int, str], items_s: set[bytes]):
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 99 bytes
    - Viewed (0)
  5. docs_src/middleware/tutorial001.py

    
    @app.middleware("http")
    async def add_process_time_header(request: Request, call_next):
        start_time = time.perf_counter()
        response = await call_next(request)
        process_time = time.perf_counter() - start_time
        response.headers["X-Process-Time"] = str(process_time)
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Tue Aug 06 13:46:39 UTC 2024
    - 365 bytes
    - Viewed (0)
  6. docs_src/python_types/tutorial006_py39.py

    def process_items(items: list[str]):
        for item in items:
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Fri Jan 07 14:11:31 UTC 2022
    - 80 bytes
    - Viewed (0)
  7. docs_src/python_types/tutorial008_py39.py

    def process_items(prices: dict[str, float]):
        for item_name, item_price in prices.items():
            print(item_name)
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Jan 16 14:44:08 UTC 2022
    - 145 bytes
    - Viewed (0)
  8. fastapi/applications.py

            async def add_process_time_header(request: Request, call_next):
                start_time = time.time()
                response = await call_next(request)
                process_time = time.time() - start_time
                response.headers["X-Process-Time"] = str(process_time)
                return response
            ```
            """
    
            def decorator(func: DecoratedCallable) -> DecoratedCallable:
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
Back to top