Metadata-Version: 2.1
Name: bytesioex
Version: 0.1.0
Summary: A simple wrapper over io.BytesIO which allows reading and writing data types directly
Home-page: https://github.com/demberto/BytesIOEx
Author: demberto
Author-email: demberto@protonmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/demberto/BytesIOEx/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# BytesIOEx

![PyPI](https://img.shields.io/pypi/v/bytesioex)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/bytesioex)
![Code Style: Black](https://img.shields.io/badge/code%20style-black-black)

BytesIOEx is a simple wrapper over Python's `io.BytesIO` which provides additional methods for reading and writing C data types like **int8**, **uint8**, **bool** and so on. The `read_*` methods are used for reading a particular type from the stream and the `write_*` methods are used for writing Python's basic data types **int**, **bool** and **float** to the stream. Both these types of methods advance the steam position by the size of the data type. The type conversion is handled by the `struct` module. `Struct` classes are used to maximize the performance. **Native byteorder is used.**

## Installation

BytesIOEx requires Python 3.6 or newer, it may run on older version as well but I have not tested it.

```
pip install --upgrade bytesioex
```

## Documentation

Docs are available on [ReadTheDocs](https://bytesioex.rtfd.io/)

## Motivation

C# `BinaryReader` and `BinaryWriter`

## License

BytesIOEx is distributed under the **MIT License**


