Skip to main content
# pyStream
Python implementation of [stream library](https://github.com/vgteam/stream)
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:

```python
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

```python
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:

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

Or

```python
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

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
File Size Uploaded Provenance Actions
pystream-protobuf-0.9.tar.gz 8.6 kB Without provenance Details for pystream-protobuf-0.9.tar.gz

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

Download URL pystream-protobuf-0.9.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a1f11d181c6e8776f512e176e404eb336c4220e881b57a38430a5c43ce6c4673
BLAKE2b-256 checksum
How to use checksums
f6e2e62ea8b6e6c90fd44887847bc296b15e2804774037610bbda8aa89ba2881
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pystream-protobuf 0.9

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