Skip to main content

Convert numbers across numeral systems — Roman, Chinese, Greek, Egyptian, Arabic-Indic and more.

Project description

numly logo

numly

PyPI version Python versions License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

numly-0.1.0.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

numly-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

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

Hashes for numly-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2772791c8e7361b6d3fd536dca2114bc4214ecda1517d63126bb339eb8e0d13f
MD5 d220012f3e79988e0db590a62cddde99
BLAKE2b-256 44ea33963d48ed128a9b1753e96e070894303dfaa31f97c48aad163e002cc9b0

See more details on using hashes here.

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

Hashes for numly-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8b65c0df1e6a6ed026acedadfe5a571bba360fc0ef3f29e287f73d606f57721
MD5 8218a142dea09b915ff309346d6c64ae
BLAKE2b-256 034a568f32b997e4932d9bcf8ec87e7854e8d538cccbd8b3ffc0826aca1d8977

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page