Module ImportFrom alias FunctionDef arguments args NameParam NameParam defaults Num body Expr Str Assign NameStore ListLoad TupleLoad BinOpLShift Num Num Str TupleLoad BinOpLShift Num Num Str TupleLoad BinOpLShift Num Num Str TupleLoad BinOpLShift Num Num Str TupleLoad BinOpLShift Num Num Str TupleLoad Num Str If CompareEq NameLoad Num body Return Str For TupleStore NameStore NameStore NameLoad body If CompareGtE NameLoad NameLoad body Break Return BinOpMod Str TupleLoad NameLoad BinOpDiv NameLoad NameLoad NameLoad decorator_list
N/A __future__ division humanize_bytes N/A N/A n precision N/A 2 N/A N/A Return a humanized string representation of a number of bytes.

    Assumes `from __future__ import division`.

    >>> humanize_bytes(1)
    '1 byte'
    >>> humanize_bytes(1024)
    '1.0 kB'
    >>> humanize_bytes(1024 * 123)
    '123.0 kB'
    >>> humanize_bytes(1024 * 12342)
    '12.1 MB'
    >>> humanize_bytes(1024 * 12342, 2)
    '12.05 MB'
    >>> humanize_bytes(1024 * 1234, 2)
    '1.21 MB'
    >>> humanize_bytes(1024 * 1234 * 1111, 2)
    '1.31 GB'
    >>> humanize_bytes(1024 * 1234 * 1111, 1)
    '1.3 GB'

     N/A abbrevs N/A N/A N/A 1 50 PB N/A N/A 1 40 TB N/A N/A 1 30 GB N/A N/A 1 20 MB N/A N/A 1 10 kB N/A 1 B N/A N/A n 1 N/A N/A 1 B N/A N/A factor suffix abbrevs N/A N/A N/A n factor N/A N/A N/A N/A %.*f %s N/A precision N/A n factor suffix N/A