Skip to main content

Speed, distance and time calculations around quantities of digital information.

Project description


.. image::
.. image::
.. image::
.. image::
.. image::
.. image::

Speed, distance and time calculations around quantities of digital information. Coming soon.



$ pip install nibble


.. code-block:: python

from nibble.information import Information
from nibble.duration import Duration
from nibble.speed import Speed

information = Information(1, Information.GIBIBYTES)
print('{0}'.format(information)) # '1 GiB'
print('{0:GB}'.format(information)) # '1.07GB'
print('{0: GB}'.format(information)) # '1.07 GB'
print('{0:,.2f| Mb}'.format(information)) # '8,589.93 Mb'

speed = Speed(Information(20, Information.MEGABITS), Duration.SECOND)
print('{0}'.format(speed)) # '2.38 MiB/s'
print('{0:Mb}'.format(speed)) # '20Mb/s'
print('{0: Gb/w}'.format(speed)) # '12,096 Gb/w'
print(Speed.TEN_GIGABIT / 10
== Speed.GIGABIT) # True
print('{0: dB/y}'.format(Speed.TEN_GIGABIT)) # '39.42 PB/y'
print('{0:.2f| bB/mo}'.format(Speed.GIGABIT)) # 298.77 TiB/mo

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nibble, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size nibble-0.1.0.tar.gz (13.1 kB) File type Source Python version None Upload date Hashes View
Filename, size nibble-0.1.0-py2.py3-none-any.whl (18.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page