Metadata-Version: 2.1
Name: python-datastream
Version: 0.1.0
Summary: Read and write not only bytes in python (like DataStream in java)
Author-email: NekoNekoNyan <pasha2001dpa@ya.ru>
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Project-URL: Home, https://github.com/neko-neko-nyan/datastream


# datastream

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

## Installing

```shell
pip install python-datastream
```

## Usage

Reading:
```python
from datastream import DataInputStream

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

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

