roman-numerals-py

This project provides utilities manipulating well-formed Roman numerals, in various programming languages. Currently, there are implementations in Python and Rust.


Licenses
0BSD/CC0-1.0
Install
conda install -c anaconda roman-numerals-py

Documentation

roman-numerals

Package on PyPI Package on Crates.io Licence: 0BSD Licence: CC0 1.0 Universal

This project provides utilities manipulating well-formed Roman numerals, in various programming languages. Currently, there are implementations in Python and Rust.

Example usage

Rust

use roman_numerals_rs::RomanNumeral;

fn main() {
   let num = RomanNumeral::new(16);
   println!("{}", num); // XVI
   assert_eq!("XVI".parse().unwrap(), num);
}

Python

from roman_numerals import RomanNumeral

num = RomanNumeral(16)
print(num)  # XVI
assert RomanNumeral.from_string("XVI") == num

Licence

This project is licenced under the terms of either the Zero-Clause BSD licence or the CC0 1.0 Universal licence. See LICENCE.rst for the full text of both licences.

Contribution

Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion in this project shall be dual licensed as above, without any additional terms or conditions.