Object-oriented way to represent digital sizes (bits and bytes)
Project description
octet
Object-oriented way to represent digital sizes (bits and bytes)
Examples
>>> 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
octet-0.1.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
octet-0.1.0-py3-none-any.whl
(3.8 kB
view hashes)