Convert numbers across numeral systems — Roman, Chinese, Greek, Egyptian, Arabic-Indic and more.
Project description
numly
A Python library to work with numbers across formats — decimal, roman, words, binary, hex, and more.
Installation
pip install numly
Quick Start
import numly
# Convert to Roman numerals
numly.to_roman(2024) # → 'MMXXIV'
# Convert to words
numly.to_words(42) # → 'forty-two'
# Convert to binary
numly.to_binary(255) # → '11111111'
# Convert to hex
numly.to_hex(255) # → 'FF'
Features
- 🔢 Decimal → Roman numerals
- 🔤 Decimal → Words (English)
- 💻 Decimal → Binary / Octal / Hex
- 🔁 Reverse conversions (Roman → Decimal, etc.)
- 🌍 Locale-aware number formatting (coming soon)
API Reference
| Function | Input | Output |
|---|---|---|
to_roman(n) |
int |
str — e.g. 'XIV' |
from_roman(s) |
str |
int — e.g. 14 |
to_words(n) |
int |
str — e.g. 'forty-two' |
to_binary(n) |
int |
str — e.g. '1110' |
to_octal(n) |
int |
str — e.g. '16' |
to_hex(n) |
int |
str — e.g. 'E' |
Contributing
Contributions are welcome! Feel free to open an issue or submit a pull request.
git clone https://github.com/yourusername/numly.git
cd numly
pip install -e .
License
MIT License © 2026 TheMadrasTechie
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file numly-0.1.0.tar.gz.
File metadata
- Download URL: numly-0.1.0.tar.gz
- Upload date:
- Size: 10.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2772791c8e7361b6d3fd536dca2114bc4214ecda1517d63126bb339eb8e0d13f
|
|
| MD5 |
d220012f3e79988e0db590a62cddde99
|
|
| BLAKE2b-256 |
44ea33963d48ed128a9b1753e96e070894303dfaa31f97c48aad163e002cc9b0
|
File details
Details for the file numly-0.1.0-py3-none-any.whl.
File metadata
- Download URL: numly-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8b65c0df1e6a6ed026acedadfe5a571bba360fc0ef3f29e287f73d606f57721
|
|
| MD5 |
8218a142dea09b915ff309346d6c64ae
|
|
| BLAKE2b-256 |
034a568f32b997e4932d9bcf8ec87e7854e8d538cccbd8b3ffc0826aca1d8977
|