Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0x676e67/wreq-python
/ file_to_bytes_stream
Function
file_to_bytes_stream
python/examples/multipart.py:8–11 ·
view source on GitHub ↗
(file_path)
Source
from the content-addressed store, hash-verified
6
7
8
async
def
file_to_bytes_stream(file_path):
9
async
with
aiofiles.open(file_path,
"rb"
)
as
f:
10
while
chunk := await f.read(1024):
11
yield
chunk
12
13
14
async
def
main():
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected