Skip to main content

pyStream

Python implementation of stream library parsing all files encoded by stream and writing protobuf message instances into the file by the same encoding.

Here’s a sample code using the Stream class to read from a file containing a set of alignments. It yields the protobuf objects stored in the file:

alns_list = []
with Stream.open("test.gam", "rb") as stream:
    for aln_data in stream:
        aln = Alignment()
        aln.ParseFromString(aln_data)
        alns_list.append(aln)

Or

alns_list = []
stream = Stream.open("test.gam", "rb")
for aln_data in stream:
    aln = Alignment()
    aln.ParseFromString(aln_data)
    alns_list.append(aln)
stream.close()

And here is a sample code for writing multiple protobuf objects into a file:

with Stream.open("test.gam", "wb") as stream:
    stream.write(*objects_list)
    stream.write(*another_objects_list)

Or

stream = Stream.open("test.gam", "wb")
stream.write(*objects_list)
stream.write(*another_objects_list)
stream.close()

Metadata

Release files for pystream-protobuf 0.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pystream-protobuf 0.9.1
File Size Uploaded Provenance Actions
pystream-protobuf-0.9.1.tar.gz 9.1 kB Without provenance Details for pystream-protobuf-0.9.1.tar.gz

Release files / pystream-protobuf-0.9.1.tar.gz

Download URL pystream-protobuf-0.9.1.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
88d15130439b8015cc64438c3857b9227ba4189d2edee19788f03dcdab112cee
BLAKE2b-256 checksum
How to use checksums
52c5ebcd5b3e59ac01c502894c0db94d6eeaf55eed8d34ee30f9fde8acc627a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pystream-protobuf 0.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page