streamcat
Examples
Encoding a JSON iterator into a stream:
def gen_records():
yield b'{"foo": "bar"}'
yield b'{"baz": [1, 2, 3]}'
stream = streamcat.iterator_to_stream(gen_records())
# `stream` can then be used just like any other `io.RawIOBase`
with open('/tmp/jsoncat', 'wb') as destination:
shutil.copyfileobj(stream, destination)
Decoding a stream into a generator:
decoder = json.JSONDecoder()
with open('/tmp/jsoncat', 'rb') as source:
records = streamcat.stream_to_iterator(source, decoder)
for record in records:
print(record)
Metadata
Release files for streamcat 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| streamcat-0.2.1.tar.gz | 4.1 kB | Without provenance | Details for streamcat-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| streamcat-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for streamcat-0.2.1-py2.py3-none-any.whl |
Total release size: 7.8 kB
Release files / streamcat-0.2.1.tar.gz
| Download URL | streamcat-0.2.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
469dd7d54949a242cdb83012d540c9fd1e8dc50e13898c24121c0edac2f6d07a
|
|
BLAKE2b-256 checksum How to use checksums |
3f15fb8bb1e641f95a358ce3fc09c4a78efcc634078ef3df7a480c9f69d4721a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / streamcat-0.2.1-py2.py3-none-any.whl
| Download URL | streamcat-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
fcfde8809c24e490ff8414261f7475a695c0d34a6497fbc56a719a0baf1e4147
|
|
BLAKE2b-256 checksum How to use checksums |
7ace34ef9ee80186316de469f460b0ccbbc9c648bb26b8d7216ec163e4b7b7bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for streamcat 0.2.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.