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
chainstream-1.0.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for chainstream-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b10f895167bb7a28291653d7b62a69882aa083c0371f4e32f3baed04804adcda |
|
MD5 | 560b3f2a206543c407990e9d8274beab |
|
BLAKE2b-256 | a307895550f77587c679ff6fd5a9d841d1c19c49b0a3049392f59156dd600edb |