roman-numerals
Manipulate well-formed Roman numerals
Decision gist · record as of 2026-08-14
Yes. The package is lightweight, actively maintained, has no dependencies, supports modern Python versions, carries permissive licensing, and solves a well-defined problem with strict classical rules. Install it if you need reliable Roman numeral conversion with validation; skip it if you only need occasional formatting and can tolerate looser rules.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low friction: pure Python wheel with no runtime dependencies.
- Active maintenance as of 2025-12-17, last commit 2026-04-02, supports current Python versions (3.10–3.15).
License · maintenance · safety
0BSD OR CC0-1.0 (permissive) — Dual-licensed under 0BSD or CC0-1.0 (permissive). Either license permits unrestricted use, modification, and distribution with minimal or no attribution requirements.
last release 2025-12-17 (240 days) · last repo commit 2026-04-02 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 12,692,071 downloads/mo, #1,310 on PyPI
Alternatives
Verify before relying
from roman_numerals import RomanNumeral
num = RomanNumeral(16)
print(str(num)) # 'XVI'
num = RomanNumeral.from_string('XVI')
print(int(num)) # 16- Whether the library handles mixed-case input or enforces uniform case throughout the string as described.
What it is and what it does
roman-numerals is a focused library for bidirectional conversion between integers and Roman numerals. It enforces the classical rules of Roman numeral formation—no character may appear more than three times consecutively—and rejects malformed input with specific exceptions. The library accepts integers from 1 to 3,999 (the range of well-formed classical numerals) and can parse both uppercase and lowercase Roman numeral strings, converting them back to their integer equivalents.
The package has no external dependencies and is designed as a lightweight utility for applications that need reliable Roman numeral handling. It supports both string representation and integer extraction, with methods for case conversion, and raises OutOfRangeError for values outside the valid range or InvalidRomanNumeralError for malformed input.
Use it for
- Format page numbers or section headers in documents using Roman numerals.
- Parse and validate user-supplied Roman numeral input in educational or historical software.
- Convert integer values to classical Roman numeral representation for display in UI or reports.
- Validate that a string conforms to classical Roman numeral rules before processing.
- Build historical or academic applications that work with Roman numeral data.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is lightweight, actively maintained, has no dependencies, supports modern Python versions, carries permissive licensing, and solves a well-defined problem with strict classical rules. Install it if you need reliable Roman numeral conversion with validation; skip it if you only need occasional formatting and can tolerate looser rules.
Install
roman-numerals on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Active maintenance as of 2025-12-17, last commit 2026-04-02, supports current Python versions (3.10–3.15).
Requires Python 3.10 or later.
License in practice
Dual-licensed under 0BSD or CC0-1.0 (permissive). Either license permits unrestricted use, modification, and distribution with minimal or no attribution requirements.
Quickstart
from roman_numerals import RomanNumeral
num = RomanNumeral(16)
print(str(num)) # 'XVI'
num = RomanNumeral.from_string('XVI')
print(int(num)) # 16
Verify before relying
- Whether the library handles mixed-case input or enforces uniform case throughout the string as described.
Package facts
| License | 0BSD OR CC0-1.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 240 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 12,692,071 / month, #1,310 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15 |
Evidence: roman_numerals-4.1.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “roman numeral conversion”
- roman-numeralsConverts between integers and Roman numerals, supporting values from…
- romanConverts between Arabic integers and Roman numerals in both…
- roman-numerals-pyConverts between integers and Roman numerals, parsing strings like…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also roman · roman-numerals-py · cn2an · base36 · inflect · reuters-style · overpunch · word2number · bangla · graycode