pyillion
Convert integers into long-form and short form -illion notation
(million, billion, trillion, …) with high precision and simplicity.
✨ Features
- 🔢 Convert large integers to human-readable illion format
- ⚡ Lightweight, zero dependencies
- 🧮 Custom decimal precision
- 🧠 Simple and explicit API
- 📦 Clean src-layout, PyPI-ready
📦 Installation
pip install pyillion
🚀 Quick Start
from pyillion import illionify
print(illionify(1234567890))
# 1.234 billion
With custom precision:
print(illionify(1234567890, r=4))
# 1.2345 billion
With short form:
print(illionify(1234567890, short=True))
# 1.234B
🧩 API Reference
illionify(n: int, r: int = 3, short = False) -> str
Turn a number into long-form or short-form -illion notation.
illionify(9876543210)
# '9.876 billion'
il(n: int, bl: bool = False)
Return the -illion name corresponding to n.
il(7)
# 'sextillion'
il(7, bl=True)
# 1000 ** 7
il_short(n: int, bl: bool = False)
Return the short form -illion name corresponding to n.
il_short(7)
# 'Sx'
il(7, bl=True)
# 1000 ** 7
e(n: int)
Return 1000 ** n.
e(4)
# 1000000000000
d(a, b, r: int = 3)
Safe division with fixed decimal precision.
d(215, 11, 4)
# 19.5454
📁 Project Structure
pyillion/
├─ src/
│ └─ pyillion/
│ ├─ __init__.py
│ └─ illionifyer.py
├─ pyproject.toml
├─ README.md
└─ LICENSE
🧪 Supported Python Versions
- Python 3.8+
- Tested on 3.13 / 3.14
📜 License
This project is licensed under the MIT License.
See LICENSE for details.
🌐 Links
- 🧾 PyPI: https://pypi.org/project/pyillion/
- 🧑💻 GitHub: https://github.com/phannoiershit/pyillion
- 🐞 Issues: https://github.com/phannoiershit/pyillion/issues
⭐ Why pyillion?
If you need:
- deterministic formatting
- full control over -illion logic
- no hidden heuristics like
humanize
→ pyillion is for you.
Metadata
Release files for pyillion 1.2.0
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 |
|---|---|---|---|---|
| pyillion-1.2.0.tar.gz | 4.8 kB | Without provenance | Details for pyillion-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyillion-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for pyillion-1.2.0-py3-none-any.whl |
Total release size: 9.8 kB
Release files / pyillion-1.2.0.tar.gz
| Download URL | pyillion-1.2.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd61d0938f1779cb9e38e97be5b45ab8e915661cc8f120a921f9f8e87deb962c
|
|
BLAKE2b-256 checksum How to use checksums |
c1b4d22f64672afabc0ba2cab5733ef6d07ddd44f5e77ce3444180c5111e1ed3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / pyillion-1.2.0-py3-none-any.whl
| Download URL | pyillion-1.2.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fed758914f651d2e26668863f279103b7a0d952fc84bc2321938ff42114dc943
|
|
BLAKE2b-256 checksum How to use checksums |
0a057d04cfbc08b22bb6e528f2f7d552450c5dbc5c12f41bdbe2fb64c360a725
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for pyillion 1.2.0
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.