hurry.filesize


Namehurry.filesize JSON
Version 0.9 PyPI version JSON
download
home_pageUNKNOWN
SummaryA simple Python library for human readable file sizes (or anything sized in bytes).
upload_time2009-03-11 23:15:40
maintainerNone
docs_urlNone
authorMartijn Faassen, Startifact
requires_pythonNone
licenseZPL 2.1
keywords file size bytes
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            hurry.filesize
==============

hurry.filesize a simple Python library that can take a number of bytes and
returns a human-readable string with the size in it, in kilobytes (K),
megabytes (M), etc.

The default system it uses is "traditional", where multipliers of 1024
increase the unit size::

  >>> from hurry.filesize import size
  >>> size(1024)
  '1K'

An alternative, slightly more verbose system::

  >>> from hurry.filesize import alternative
  >>> size(1, system=alternative)
  '1 byte'
  >>> size(10, system=alternative)
  '10 bytes'
  >>> size(1024, system=alternative)
  '1 KB'

A verbose system::

  >>> from hurry.filesize import verbose
  >>> size(10, system=verbose)
  '10 bytes'
  >>> size(1024, system=verbose)
  '1 kilobyte'
  >>> size(2000, system=verbose)
  '1 kilobyte'
  >>> size(3000, system=verbose)
  '2 kilobytes'
  >>> size(1024 * 1024, system=verbose)
  '1 megabyte'
  >>> size(1024 * 1024 * 3, system=verbose)
  '3 megabytes'

You can also use the SI system, where multipliers of 1000 increase the unit
size::

  >>> from hurry.filesize import si
  >>> size(1000, system=si)
  '1K'


Changes
=======

0.9 (2009-03-11)
----------------

* Initial public release.

Download
========
            

Raw data

            {
    "_id": null,
    "home_page": "UNKNOWN",
    "name": "hurry.filesize",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "file size bytes",
    "author": "Martijn Faassen, Startifact",
    "author_email": "faassen@startifact.com",
    "download_url": "https://files.pythonhosted.org/packages/ee/5e/16e17bedcf54d5b618dc0771690deda77178e5c310402881c3d2d6c5f27c/hurry.filesize-0.9.tar.gz",
    "platform": "UNKNOWN",
    "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========",
    "bugtrack_url": null,
    "license": "ZPL 2.1",
    "summary": "A simple Python library for human readable file sizes (or anything sized in bytes).",
    "version": "0.9",
    "split_keywords": [
        "file",
        "size",
        "bytes"
    ],
    "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",
            "upload_time_iso_8601": "2009-03-11T23:15:40.615466Z",
            "url": "https://files.pythonhosted.org/packages/ee/5e/16e17bedcf54d5b618dc0771690deda77178e5c310402881c3d2d6c5f27c/hurry.filesize-0.9.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2009-03-11 23:15:40",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "hurry.filesize"
}
        
Elapsed time: 0.01783s