The `roman-numerals` library provides utilities to manipulate well-formed Roman numerals, including converting between integers and Roman numeral strings. The current version is 4.1.0, and it generally sees major releases annually with minor updates as needed.
pip install roman-numeralsVerified import paths — ran on the pinned version, not inferred.
Demonstrates converting integers to Roman numerals and vice-versa using both the `Roman` class and the utility functions `to_roman` and `from_roman`.
Update `Roman` class instantiations to use `string=` or `integer=` keyword arguments.
Review code where both `integer` and `string` might be passed to the `Roman` constructor, ensuring the desired precedence. Be aware of `Roman(string='')` behavior.
Validate input integers are within the 1-3999 range before conversion. Handle `ValueError` for invalid Roman numeral strings.
Ensure imports for `to_roman` and `from_roman` are directly from `from roman_numerals import ...`. Utilize the `Roman` class for object-oriented manipulation.
No dependency data recorded yet.