File: PKG-INFO

package info (click to toggle)
python-hurry.filesize 0.9-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 132 kB
  • sloc: python: 100; makefile: 18
file content (71 lines) | stat: -rw-r--r-- 2,055 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Metadata-Version: 1.0
Name: hurry.filesize
Version: 0.9
Summary: A simple Python library for human readable file sizes (or anything sized in bytes).
Home-page: UNKNOWN
Author: Martijn Faassen, Startifact
Author-email: faassen@startifact.com
License: ZPL 2.1
Description: 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
        ========
        
Keywords: file size bytes
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules