Skip to main content

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


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.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

octet-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file octet-0.1.1.tar.gz.

File metadata

  • Download URL: octet-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/5.19.0-29-generic

File hashes

Hashes for octet-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cb64a3548bbd3625db15c0d7f594717379a155eab52c5c79b8d4c7c28f8f769e
MD5 8d13b9d8e870659e3813043def7013ef
BLAKE2b-256 486c7dacb44f67a2b63a52a2c2f89267f8d0ead247164c8dc9bea123edaf70d3

See more details on using hashes here.

File details

Details for the file octet-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: octet-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.7 Linux/5.19.0-29-generic

File hashes

Hashes for octet-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c31a00a0a94cd57af77602e9f04a98fdd7ec37fe42f5366ad065b24111f9f47
MD5 4fd92c97521538c542fc8bc1c7b03dbd
BLAKE2b-256 334cab4e3e7a4da8d763212d9c2bae539b4943150eaa35e63be17ad8f27a2197

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page