The devel/py-iterable-io,python3 port
py3-iterable-io-1.0.0p0 – adapt generators and other iterable to a file-like interface (cvsweb github mirror)
Description
iterable-io is a small Python library that provides an adapter so that it's possible to read from iterable objects in the same way as file-like objects. It is primarily useful as "glue" between two incompatible interfaces. As an example, in the case where one interface expects a file-like object to call .read() on, and the other only provides a generator of bytes. One way to solve this issue would be to write all the bytes in the generator to a temporary file, then provide that file instead, but if the generator produces a large amount of data then this is both slow to start, and resource-intensive. This library allows streaming data between these two incompatible interfaces so as data is requested by .read(), it's pulled from the iterable. This keeps resource usage low and removes the startup delay.WWW: https://pypi.python.org/pypi/iterable-io
Maintainer
Klemens Nanni
Categories
Build dependencies
Run dependencies
Test dependencies
Files
- /usr/local/lib/python3.11/site-packages/__pycache__/
- /usr/local/lib/python3.11/site-packages/__pycache__/iterableio.cpython-311.opt-1.pyc
- /usr/local/lib/python3.11/site-packages/__pycache__/iterableio.cpython-311.pyc
- /usr/local/lib/python3.11/site-packages/iterable_io-1.0.0.dist-info/
- /usr/local/lib/python3.11/site-packages/iterable_io-1.0.0.dist-info/METADATA
- /usr/local/lib/python3.11/site-packages/iterable_io-1.0.0.dist-info/RECORD
- /usr/local/lib/python3.11/site-packages/iterable_io-1.0.0.dist-info/WHEEL
- /usr/local/lib/python3.11/site-packages/iterable_io-1.0.0.dist-info/top_level.txt
- /usr/local/lib/python3.11/site-packages/iterableio.py