Ravenports generated: 10 Feb 2024 22:55
[ravenports.git] / bucket_D4 / python-humanize
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-humanize
4 VERSION=                4.9.0
5 KEYWORDS=               python
6 VARIANTS=               v11 v12
7 SDESC[v11]=             Python humanize utilities (3.11)
8 SDESC[v12]=             Python humanize utilities (3.12)
9 HOMEPAGE=               https://github.com/python-humanize/humanize
10 CONTACT=                Python_Automaton[python@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPIWHL/aa/2b/2ae0c789fd08d5b44e745726d08a17e6d3d7d09071d05473105edc7615f2
14 DISTFILE[1]=            humanize-4.9.0-py3-none-any.whl:main
15 DF_INDEX=               1
16 SPKGS[v11]=             single
17 SPKGS[v12]=             single
18
19 OPTIONS_AVAILABLE=      PY311 PY312
20 OPTIONS_STANDARD=       none
21 VOPTS[v11]=             PY311=ON PY312=OFF
22 VOPTS[v12]=             PY311=OFF PY312=ON
23
24 DISTNAME=               humanize-4.9.0.dist-info
25
26 GENERATED=              yes
27
28 [PY311].USES_ON=                        python:v11,wheel
29
30 [PY312].USES_ON=                        python:v12,wheel
31
32 [FILE:1550:descriptions/desc.single]
33 # humanize
34
35 [PyPI version]
36 [Supported Python versions]
37 [Documentation Status]
38 [PyPI downloads]
39 [GitHub Actions status]
40 [codecov]
41 [MIT License]
42 [Tidelift]
43
44 This modest package contains various common humanization utilities, like
45 turning a
46 number into a fuzzy human-readable duration ("3 minutes ago") or into a
47 human-readable
48 size or throughput. It is localized to:
49
50 - Arabic
51 - Basque
52 - Bengali
53 - Brazilian Portuguese
54 - Catalan
55 - Danish
56 - Dutch
57 - Esperanto
58 - European Portuguese
59 - Finnish
60 - French
61 - German
62 - Greek
63 - Hebrew
64 - Indonesian
65 - Italian
66 - Japanese
67 - Klingon
68 - Korean
69 - Norwegian
70 - Persian
71 - Polish
72 - Russian
73 - Simplified Chinese
74 - Slovak
75 - Slovenian
76 - Spanish
77 - Swedish
78 - Turkish
79 - Ukrainian
80 - Vietnamese
81
82 ## API reference
83
84 [https://humanize.readthedocs.io]
85
86 <!-- usage-start -->
87
88 ## Installation
89
90 ### From PyPI
91
92 ```bash
93 python3 -m pip install --upgrade humanize
94 ```
95
96 ### From source
97
98 ```bash
99 git clone https://github.com/python-humanize/humanize
100 cd humanize
101 python3 -m pip install -e .
102 ```
103
104 ## Usage
105
106 ### Integer humanization
107
108 ```pycon
109 >>> import humanize
110 >>> humanize.intcomma(12345)
111 '12,345'
112 >>> humanize.intword(123455913)
113 '123.5 million'
114 >>> humanize.intword(12345591313)
115 '12.3 billion'
116 >>> humanize.apnumber(4)
117 'four'
118 >>> humanize.apnumber(41)
119 '41'
120 ```
121
122 ### Date & time humanization
123
124 ```pycon
125 >>> import humanize
126 >>> import datetime as dt
127 >>> humanize.naturalday(dt.datetime.now())
128 'today'
129 >>> humanize.naturaldelta(dt.timedelta(seconds=1001))
130 '16 minutes'
131 >>> humanize.naturalday(dt.datetime.now() - dt.timedelta(days=1))
132 'yesterday'
133
134
135 [FILE:110:distinfo]
136 ce284a76d5b1377fd8836733b983bfb0b76f1aa1c090de2566fcf008d7f6ab16       126820 humanize-4.9.0-py3-none-any.whl
137