Numbername
Convert integers, decimals, and fractions into English words.
Installation
pip install number-name
Usage
from Numbername import nameOf
from fractions import Fraction
from decimal import Decimal
print(nameOf(123))
print(nameOf(12.5))
print(nameOf("3/4"))
print(nameOf(Fraction(1, 2)))
print(nameOf(Decimal("0.003")))
Examples
| Input | Output |
|---|---|
123 |
one hundred twenty three |
12.5 |
twelve point five |
"3/4" |
three quarters |
"7/3" |
seven thirds |
"1/100" |
one hundredth |
10**6 |
one million |
10**9 |
one billion |
10**303 |
one centillion |
Features
- Supports integers of arbitrary size.
- Supports decimal numbers.
- Supports fractions without automatically simplifying fraction strings.
- Supports Python's
FractionandDecimalobjects. - Uses the English Short Scale naming system.
Import
from Numbername import nameOf
Metadata
Release files for shortscale-name 1.0.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 |
|---|---|---|---|---|
| shortscale_name-1.0.2.tar.gz | 3.1 kB | Without provenance | Details for shortscale_name-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| shortscale_name-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for shortscale_name-1.0.2-py3-none-any.whl |
Total release size: 6.6 kB
Release files / shortscale_name-1.0.2.tar.gz
| Download URL | shortscale_name-1.0.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a98be0d7b87a66e741126c76e4c962bf78dabdb7dee11166d6a7954978df6d31
|
|
BLAKE2b-256 checksum How to use checksums |
e4cf5a302bb555f1f06ec85c4e3c1dee6bc18ef39614a39eabbd5ce9aa9a118a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / shortscale_name-1.0.2-py3-none-any.whl
| Download URL | shortscale_name-1.0.2-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0312fddcfda0075fe5c7698a762e4c741d320b78847d7fc85636365f7ae80cf
|
|
BLAKE2b-256 checksum How to use checksums |
e699ee98ee17ec69c04c3509c5553dcb8a082c9efad2f8db7f5a688883651e01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for shortscale-name 1.0.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.