Skip to main content

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

Project description

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.1.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.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file numly-0.1.1.tar.gz.

File metadata

  • Download URL: numly-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 75922d9c2383317ddad5891dcdffbf8f7c2f5f9360aa34820e992cb97f57a360
MD5 1733fea2720c079dc3feddeb4971a5c5
BLAKE2b-256 36a598c2717b9ae9fc42937033b3d96b20aa65bad2842df49549adac84c8f897

See more details on using hashes here.

File details

Details for the file numly-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: numly-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ba99e36db1cef863f6b743d188d09157c326da71983eb0304db54b9f01f9a2c
MD5 906eba8d2aa8b4584afeccdab570c889
BLAKE2b-256 837bb08727525efbcd62aab59ef99a96ba48260557d91f33e186365bc548a6d6

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