Skip to main content

A Python library for Roman numeral manipulation

Project description

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!

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

romanutils-0.1.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

romanutils-0.1.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file romanutils-0.1.0.tar.gz.

File metadata

  • Download URL: romanutils-0.1.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for romanutils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ec00d3585dac869ca05feb3b934ba67f1404c236781f01092b7f463d9630f593
MD5 68f631fe5b72f7a22dc75a2096dd4d92
BLAKE2b-256 525ed6a59c95d189a85396ec8cd3a449665f0436c629a4f703a844ccd842d7ac

See more details on using hashes here.

File details

Details for the file romanutils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: romanutils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for romanutils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8bfedc252d81c9a9e35d784f9c9d8cefd370c54b5130335855b289fcc573ea23
MD5 94d0c3a795000e5d6bb9d6a1b858b775
BLAKE2b-256 9dfbddd752bdf4fcfb09922b3b89ccf62ee4c9830ca183694bf0f5d186d0fc86

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