Skip to main content

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


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 details)

Uploaded Source

Built Distribution

chainstream-1.0.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file chainstream-1.0.1.tar.gz.

File metadata

  • Download URL: chainstream-1.0.1.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.6 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.14 CPython/3.10.6

File hashes

Hashes for chainstream-1.0.1.tar.gz
Algorithm Hash digest
SHA256 df4d8fd418b112690e0e6faa4cb6706962e4b6b95ff5c133890fd32157c8d3b7
MD5 360cbad19e54992f62140c6e27fd2cc3
BLAKE2b-256 44fdec0c4df1e2b00080826b3e2a9df81c912c8dc7dbab757b55d68af3a51dcf

See more details on using hashes here.

File details

Details for the file chainstream-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: chainstream-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.6 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.14 CPython/3.10.6

File hashes

Hashes for chainstream-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b10f895167bb7a28291653d7b62a69882aa083c0371f4e32f3baed04804adcda
MD5 560b3f2a206543c407990e9d8274beab
BLAKE2b-256 a307895550f77587c679ff6fd5a9d841d1c19c49b0a3049392f59156dd600edb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page