Roman
Integer to Roman numerals converter
Install / Use
/learn @zopefoundation/RomanREADME
.. image:: https://github.com/zopefoundation/roman/actions/workflows/tests.yml/badge.svg :target: https://github.com/zopefoundation/roman/actions/workflows/tests.yml
.. image:: https://coveralls.io/repos/github/zopefoundation/roman/badge.svg?branch=master :target: https://coveralls.io/github/zopefoundation/roman?branch=master
.. image:: https://img.shields.io/pypi/v/roman.svg :target: https://pypi.org/project/roman/ :alt: Current version on PyPI
.. image:: https://img.shields.io/pypi/pyversions/roman.svg :target: https://pypi.org/project/roman/ :alt: Supported Python versions
roman
Small helper library to convert arabic to roman numerals.
There are two ways to use this library.
- Importing it into your application
.. code-block:: python
import roman
# to roman
number = int(input('> ')) # 10
print(roman.toRoman(number))
# from roman
number = input('> ') # X
print(roman.fromRoman(number))
2. roman CLI command
.. code-block:: bash
~$ roman 972
CMLXXII
# use the -r/--reverse to convert Roman numerals
~$ roman -r CMLXXII
972
# case insensitive
~$ roman -r cMlxxii
972
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
