Skip to main content

datastream

Read and write binary files by integer, floats, strings with fixed size.

Installing

pip install python-datastream

Usage

Reading:

from datastream import DataInputStream

with open("test.bin", "rb") as f:
    ds = DataInputStream(f)
    print(ds.read_int())
    print(ds.read_strz())

Writing:

from datastream import DataOutputStream

with open("test.bin", "wb") as f:
    ds = DataOutputStream(f)
    ds.write_int(42)
    ds.write_strz("Hello world")

License

MIT License. See LICENSE file.

Metadata

Release files for python-datastream 0.1.0

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

Source distribution (sdist)

Source distribution for python-datastream 0.1.0
File Size Uploaded
python-datastream-0.1.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-datastream 0.1.0
File Interpreter ABI Platform
python_datastream-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / python-datastream-0.1.0.tar.gz

Download URL python-datastream-0.1.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
69313fb6a8be514eb99ad28e39a29518c869544a8889830645ad30b4bc686788
BLAKE2b-256 checksum
How to use checksums
27aa402cc46b3af6f81e6696a63a8700d1b37abcb8ede16e80e6c1f0a5bf8be7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Release files / python_datastream-0.1.0-py3-none-any.whl

Download URL python_datastream-0.1.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
637865dba6345f9dd34afae9dc0cb0ec7cfec9890657121f061a8d4c950159b6
BLAKE2b-256 checksum
How to use checksums
b7cf71b79a5c47664789d1068b32477aa292e7aade554f9d19e370dc27417b57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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