Metadata-Version: 2.1
Name: octet
Version: 0.1.0
Summary: Object-oriented way to represent digital sizes (bits and bytes)
Home-page: https://github.com/EnriqueSoria/octet
License: MIT
Author: Enrique Soria
Author-email: me@enriquesoria.com
Requires-Python: >=3.7,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown

# octet

Object-oriented way to represent digital sizes (bits and bytes)

## Examples

```python
>>> from octet import *
>>> GiB(1024).convert_to(TiB)
TebiByte(1)
>>> size = 1024 * KiB()
>>> size.to_minor_units()
bit(8388608)
>>> KiB(1) > 1000 * B()
True
>>> KiB(1) > 1025 * B()
False
```

