{ "info": { "author": "George Brighton", "author_email": "oss@gebn.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Intended Audience :: Information Technology", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "nibble\n======\n\n.. image:: https://img.shields.io/pypi/status/nibble.svg\n :target: https://pypi.python.org/pypi/nibble\n.. image:: https://img.shields.io/pypi/v/nibble.svg\n :target: https://pypi.python.org/pypi/nibble\n.. image:: https://img.shields.io/pypi/pyversions/nibble.svg\n :target: https://pypi.python.org/pypi/nibble\n.. image:: https://travis-ci.org/gebn/nibble.svg?branch=master\n :target: https://travis-ci.org/gebn/nibble\n.. image:: https://coveralls.io/repos/github/gebn/nibble/badge.svg?branch=master\n :target: https://coveralls.io/github/gebn/nibble?branch=master\n.. image:: https://landscape.io/github/gebn/nibble/master/landscape.svg?style=flat\n :target: https://landscape.io/github/gebn/nibble/master\n\nSpeed, distance and time calculations around quantities of digital information. Coming soon.\n\nInstallation\n------------\n\n::\n\n $ pip install nibble\n\nDemo\n----\n\n.. code-block:: python\n\nfrom nibble.information import Information\nfrom nibble.duration import Duration\nfrom nibble.speed import Speed\n\n\n information = Information(1, Information.GIBIBYTES)\n print('{0}'.format(information)) # '1 GiB'\n print('{0:GB}'.format(information)) # '1.07GB'\n print('{0: GB}'.format(information)) # '1.07 GB'\n print('{0:,.2f| Mb}'.format(information)) # '8,589.93 Mb'\n\n speed = Speed(Information(20, Information.MEGABITS), Duration.SECOND)\n print('{0}'.format(speed)) # '2.38 MiB/s'\n print('{0:Mb}'.format(speed)) # '20Mb/s'\n print('{0: Gb/w}'.format(speed)) # '12,096 Gb/w'\n print(Speed.TEN_GIGABIT / 10\n == Speed.HUNDRED_MEGABIT * 10\n == Speed.GIGABIT) # True\n print('{0: dB/y}'.format(Speed.TEN_GIGABIT)) # '39.42 PB/y'\n print('{0:.2f| bB/mo}'.format(Speed.GIGABIT)) # 298.77 TiB/mo\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gebn/nibble", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nibble", "package_url": "https://pypi.org/project/nibble/", "platform": "", "project_url": "https://pypi.org/project/nibble/", "project_urls": { "Homepage": "https://github.com/gebn/nibble" }, "release_url": "https://pypi.org/project/nibble/0.1.0/", "requires_dist": [ "six (>=1.9.0)" ], "requires_python": "", "summary": "Speed, distance and time calculations around quantities of digital information.", "version": "0.1.0" }, "last_serial": 2905275, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "bc47d54e389f1229ca7d4036a1b297b2", "sha256": "1ad8732325f3a61dedba866cd60dcb6dd934d68a919f399594b8224db4882e91" }, "downloads": -1, "filename": "nibble-0.0.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "bc47d54e389f1229ca7d4036a1b297b2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3564, "upload_time": "2017-04-29T23:53:31", "url": "https://files.pythonhosted.org/packages/5e/99/832ebd4b17a7005fc70a8fb969b53de713303c2a238e41214bb5a16ccced/nibble-0.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "490985bd2dfe558be68e1b6a57c62e6a", "sha256": "396c30f682f3680f6fe14371c2ef176095a39c3247c02a40671131f23136048f" }, "downloads": -1, "filename": "nibble-0.0.0.tar.gz", "has_sig": true, "md5_digest": "490985bd2dfe558be68e1b6a57c62e6a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2728, "upload_time": "2017-04-29T23:53:40", "url": "https://files.pythonhosted.org/packages/69/2e/1f95be4885f44ff55ea80f3bb3ff2d2b8c9cfacaa7f358f8ff09939fc548/nibble-0.0.0.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "6c0866cb4832530343c0926d4489861e", "sha256": "69dd31b079732aa13f7ae5eadb4813ed553255c0541302827def57732db12254" }, "downloads": -1, "filename": "nibble-0.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "6c0866cb4832530343c0926d4489861e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18399, "upload_time": "2017-05-28T22:40:44", "url": "https://files.pythonhosted.org/packages/2f/73/f7d63978ae1a10f555239ef139c51ad3b7108ffe354a4caf4843479dde32/nibble-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ada20a12a58260155e9f6f4ca90f2ab", "sha256": "a890b31726722970c06abf2df19a860650d68815bbdedf4f76dab89971db342b" }, "downloads": -1, "filename": "nibble-0.1.0.tar.gz", "has_sig": true, "md5_digest": "0ada20a12a58260155e9f6f4ca90f2ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13054, "upload_time": "2017-05-28T22:40:53", "url": "https://files.pythonhosted.org/packages/72/a9/83d8c80e4cb412b43389b50335d4c4d637c3e27a8d5ea03e3c1953b4e7c8/nibble-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6c0866cb4832530343c0926d4489861e", "sha256": "69dd31b079732aa13f7ae5eadb4813ed553255c0541302827def57732db12254" }, "downloads": -1, "filename": "nibble-0.1.0-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "6c0866cb4832530343c0926d4489861e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 18399, "upload_time": "2017-05-28T22:40:44", "url": "https://files.pythonhosted.org/packages/2f/73/f7d63978ae1a10f555239ef139c51ad3b7108ffe354a4caf4843479dde32/nibble-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0ada20a12a58260155e9f6f4ca90f2ab", "sha256": "a890b31726722970c06abf2df19a860650d68815bbdedf4f76dab89971db342b" }, "downloads": -1, "filename": "nibble-0.1.0.tar.gz", "has_sig": true, "md5_digest": "0ada20a12a58260155e9f6f4ca90f2ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13054, "upload_time": "2017-05-28T22:40:53", "url": "https://files.pythonhosted.org/packages/72/a9/83d8c80e4cb412b43389b50335d4c4d637c3e27a8d5ea03e3c1953b4e7c8/nibble-0.1.0.tar.gz" } ] }