{ "info": { "author": "Martijn Faassen, Startifact", "author_email": "faassen@startifact.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "hurry.filesize\n==============\n\nhurry.filesize a simple Python library that can take a number of bytes and\nreturns a human-readable string with the size in it, in kilobytes (K),\nmegabytes (M), etc.\n\nThe default system it uses is \"traditional\", where multipliers of 1024\nincrease the unit size::\n\n >>> from hurry.filesize import size\n >>> size(1024)\n '1K'\n\nAn alternative, slightly more verbose system::\n\n >>> from hurry.filesize import alternative\n >>> size(1, system=alternative)\n '1 byte'\n >>> size(10, system=alternative)\n '10 bytes'\n >>> size(1024, system=alternative)\n '1 KB'\n\nA verbose system::\n\n >>> from hurry.filesize import verbose\n >>> size(10, system=verbose)\n '10 bytes'\n >>> size(1024, system=verbose)\n '1 kilobyte'\n >>> size(2000, system=verbose)\n '1 kilobyte'\n >>> size(3000, system=verbose)\n '2 kilobytes'\n >>> size(1024 * 1024, system=verbose)\n '1 megabyte'\n >>> size(1024 * 1024 * 3, system=verbose)\n '3 megabytes'\n\nYou can also use the SI system, where multipliers of 1000 increase the unit\nsize::\n\n >>> from hurry.filesize import si\n >>> size(1000, system=si)\n '1K'\n\n\nChanges\n=======\n\n0.9 (2009-03-11)\n----------------\n\n* Initial public release.\n\nDownload\n========", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "file size bytes", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "hurry.filesize", "package_url": "https://pypi.org/project/hurry.filesize/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hurry.filesize/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/hurry.filesize/0.9/", "requires_dist": null, "requires_python": null, "summary": "A simple Python library for human readable file sizes (or anything sized in bytes).", "version": "0.9" }, "last_serial": 793118, "releases": { "0.9": [ { "comment_text": "", "digests": { "md5": "8549ccd09bb31b5ff1e8e8c1eacc7794", "sha256": "f5368329adbef86accd3bc9490522340bb79260455ae89b1a42c10f63801b9a6" }, "downloads": -1, "filename": "hurry.filesize-0.9.tar.gz", "has_sig": false, "md5_digest": "8549ccd09bb31b5ff1e8e8c1eacc7794", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2810, "upload_time": "2009-03-11T23:15:40", "url": "https://files.pythonhosted.org/packages/ee/5e/16e17bedcf54d5b618dc0771690deda77178e5c310402881c3d2d6c5f27c/hurry.filesize-0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8549ccd09bb31b5ff1e8e8c1eacc7794", "sha256": "f5368329adbef86accd3bc9490522340bb79260455ae89b1a42c10f63801b9a6" }, "downloads": -1, "filename": "hurry.filesize-0.9.tar.gz", "has_sig": false, "md5_digest": "8549ccd09bb31b5ff1e8e8c1eacc7794", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2810, "upload_time": "2009-03-11T23:15:40", "url": "https://files.pythonhosted.org/packages/ee/5e/16e17bedcf54d5b618dc0771690deda77178e5c310402881c3d2d6c5f27c/hurry.filesize-0.9.tar.gz" } ] }