seek() — fastapi Function Reference
Architecture documentation for the seek() function in datastructures.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD c591c04f_f53b_0c31_4022_096ff9bf737b["seek()"] e7f7f9d0_3e61_b391_e95f_2212c3046b08["UploadFile"] c591c04f_f53b_0c31_4022_096ff9bf737b -->|defined in| e7f7f9d0_3e61_b391_e95f_2212c3046b08 2070de0b_f99d_ce4d_bb36_162d825290f1["test_upload_file()"] 2070de0b_f99d_ce4d_bb36_162d825290f1 -->|calls| c591c04f_f53b_0c31_4022_096ff9bf737b style c591c04f_f53b_0c31_4022_096ff9bf737b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
fastapi/datastructures.py lines 106–124
async def seek(
self,
offset: Annotated[
int,
Doc(
"""
The position in bytes to seek to in the file.
"""
),
],
) -> None:
"""
Move to a position in the file.
Any next read or write will be done from that position.
To be awaitable, compatible with async, this is run in threadpool.
"""
return await super().seek(offset)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does seek() do?
seek() is a function in the fastapi codebase, defined in fastapi/datastructures.py.
Where is seek() defined?
seek() is defined in fastapi/datastructures.py at line 106.
What calls seek()?
seek() is called by 1 function(s): test_upload_file.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free