Number Names
number_names converts numbers to their English names.
The main useful function this package provides is called name. Usage
is as follows:
>>> import number_names
>>> number_names.name(0)
'zero'
>>> number_names.name(1)
'one'
>>> number_names.name(2)
'two'
>>> number_names.name(123_456_789)
'one hundred and twenty three million four hundred and fifty six thousand seven hundred and eighty nine'
>>> number_names.name(3.1415)
'three point one four one five'
>>> number_names.name(-10 ** 15)
'minus one quadrillion'
>>> number_names.name(10 ** 100000)
'ten tretriginmilliatrecenduotrigintillion'
>>> number_names.name(3 + 2j)
'three plus two i'
>>> from fractions import Fraction
>>> number_names.name(Fraction(1, 2))
'one half'
>>> number_names.name(Fraction(3, 221))
'three two hundred and twenty firsts'
Metadata
Release files for number_names 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| number_names-0.1.2.tar.gz | 17.1 kB | Without provenance | Details for number_names-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| number_names-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for number_names-0.1.2-py3-none-any.whl |
Total release size: 32.7 kB
Release files / number_names-0.1.2.tar.gz
| Download URL | number_names-0.1.2.tar.gz |
|---|---|
| Size | 17.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
776ecb51f0eea9bc05831cb0559b45a5772655ba4dd944c1c25d14d1d1ad198e
|
|
BLAKE2b-256 checksum How to use checksums |
f481f863a2b49959ddc720551e19e80c81df5d6061f149ad17265db198fe6d7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Release files / number_names-0.1.2-py3-none-any.whl
| Download URL | number_names-0.1.2-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e13a5f1feb1512e07e36cd73156cb3040f663c87d580790dd709fb8a18b71f52
|
|
BLAKE2b-256 checksum How to use checksums |
3ccf7bc94ce8d165f8d51bd67f70551ccbe9b6c23c3f89b7031ad3eba9ad3e22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.3
|
Security for number_names 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.