A Python library for Roman numeral manipulation romanutils
Description:
romanutils is a Python module designed to facilitate the manipulation and conversion between integers and Roman numerals. This utility provides an easy-to-use interface for developers and enthusiasts looking to work with Roman numeral representations in their applications.
Features Integer to Roman Conversion: Convert integers (1-3999) to their equivalent Roman numeral representation. Roman to Integer Conversion: Convert valid Roman numerals back to their integer form. Validation: Check the validity of Roman numerals to ensure correct formatting. Customizable Output: Options to format the output for different use cases. Installation You can install romanutils via pip:
Copy pip install romanutils Usage Here’s a quick example of how to use the module:
Copy from romanutils import roman_to_int, int_to_roman
Convert integer to Roman numeral
roman_numeral = itor(2023) print(roman_numeral) # Output: MMXXIII
Convert Roman numeral to integer
integer_value = rtoi('MMXXIII') print(integer_value) # Output: 2023
Contribution
Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.
Feel free to contribute as much as possible! Whether it's reporting bugs, suggesting features, or submitting pull requests, your input is valuable.
Open Issues: Check the issues page for current tasks and bugs. Feature Requests: Have an idea? Let us know on the feature request page. Pull Requests: We welcome contributions!
Metadata
Release files for romanutils 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| romanutils-0.1.0.tar.gz | 2.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| romanutils-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / romanutils-0.1.0.tar.gz
| Download URL | romanutils-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec00d3585dac869ca05feb3b934ba67f1404c236781f01092b7f463d9630f593
|
|
BLAKE2b-256 checksum How to use checksums |
525ed6a59c95d189a85396ec8cd3a449665f0436c629a4f703a844ccd842d7ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|
Release files / romanutils-0.1.0-py3-none-any.whl
| Download URL | romanutils-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bfedc252d81c9a9e35d784f9c9d8cefd370c54b5130335855b289fcc573ea23
|
|
BLAKE2b-256 checksum How to use checksums |
9dfbddd752bdf4fcfb09922b3b89ccf62ee4c9830ca183694bf0f5d186d0fc86
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.6
|