Chain I/O streams together
Project description
chainstream
Chainstream provides the class ChainStream, a subclass of io.RawIOBase,
to chain I/O streams together into a single stream. See below for example
usage, and the module help for more information.
Chainstream is distributed under the CC-BY-SA version 4.0; see https://creativecommons.org/licenses/by-sa/4.0/
Example
from chainstream import ChainStream
def generate_open_file_streams():
for file in filenames:
yield open(file, 'rb')
f = io.BufferedReader(ChainStream(generate_open_file_streams()))
f.read()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chainstream-1.0.2.tar.gz.
File metadata
- Download URL: chainstream-1.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b32975d3b3d1c030a507ac298044c28fa3ca30d527abdfae281edd53276617b3
|
|
| MD5 |
324b34a288b81cf94edeee68ba203db8
|
|
| BLAKE2b-256 |
a5cc93357fd1f53c61fdc6111a6d9ea2cc565b2c1be9227c15bb036a0db0396b
|
File details
Details for the file chainstream-1.0.2-py3-none-any.whl.
File metadata
- Download URL: chainstream-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a726807fd5eae4a66c262b2c68006de9fe9d8874f1ce6c8a73cde0ac8c2b4a3b
|
|
| MD5 |
3f151df79400a9f6b540e113025f50de
|
|
| BLAKE2b-256 |
e89c104eab2970734f8c35d5e6d64757c336b0d5c6c710c681c5e8c5eccb3e67
|