Giter VIP home page Giter VIP logo

rk-baku / roman_converter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aznironman/roman_converter

0.0 0.0 0.0 5 KB

roman_converter is a Python package for converting between Roman numerals and integers. It provides functionality to convert integers to Roman numerals and vice versa. Additionally, it can parse numbers written in words and convert them to Roman numerals.

Home Page: https://pypi.org/project/roman-converter/

License: MIT License

Python 100.00%

roman_converter's Introduction

Roman Converter

Overview

roman_converter is a Python package for converting between Roman numerals and integers. It provides functionality to convert integers to Roman numerals and vice versa. Additionally, it can parse numbers written in words and convert them to Roman numerals.

Installation

pip install roman_converter

Usage

You can use roman_converter in your Python code or as a command-line tool.

In Python

Import the convert_number function from the package and use it as follows:

from roman_converter import convert_number

# Convert an integer to Roman numeral
print(convert_number(31))  # Output: XXXI

# Convert a Roman numeral to an integer
print(convert_number('XXXI', to_roman=False, to_int=True))  # Output: 31

# Convert a number in words to Roman numeral
print(convert_number('thirty-one'))  # Output: XXXI

Command-Line Interface

After installation, you can use roman_converter directly from the command line:

roman-converter 31
roman-converter --to_int XXXI

License

This project is licensed under the MIT License.

Author

Name: Geoff Clark Company: ClarkTribeGames, LLC Email: [email protected] GitHub: https://github.com/AznIronMan

Contributions

Contributions are welcome! Please feel free to submit a pull request.

roman_converter's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.