No description
  • Rust 61.3%
  • Python 38.7%
Find a file
Daniel Baumann 291afe41fb
Releasing fastforward version 4.1.0-1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-12-19 01:23:26 +01:00
.github Merging upstream version 4.1.0. 2025-12-19 01:23:12 +01:00
debian Releasing fastforward version 4.1.0-1~ffwd13+u1. 2025-12-19 01:23:26 +01:00
python Merging upstream version 4.1.0. 2025-12-19 01:23:12 +01:00
rust Merging upstream version 4.1.0. 2025-12-19 01:23:12 +01:00
utils Merging upstream version 4.1.0. 2025-12-19 01:23:12 +01:00
.editorconfig Adding upstream version 3.1.0. 2025-08-27 12:12:19 +02:00
.gitattributes Adding upstream version 3.1.0. 2025-08-27 12:12:19 +02:00
.gitignore Adding upstream version 3.1.0. 2025-08-27 12:12:19 +02:00
CHANGES.rst Merging upstream version 4.1.0. 2025-12-19 01:23:12 +01:00
LICENCE.rst Adding upstream version 3.1.0. 2025-08-27 12:12:19 +02:00
README.rst Merging upstream version 4.1.0. 2025-12-19 01:23:12 +01:00

===============
 roman-numerals
===============

.. image:: https://img.shields.io/pypi/v/roman-numerals.svg
   :target: https://pypi.org/project/roman-numerals/
   :alt: Package on PyPI

.. image:: https://img.shields.io/crates/v/roman-numerals-rs
   :target: https://crates.io/crates/roman-numerals-rs/
   :alt: Package on Crates.io

.. image:: https://img.shields.io/badge/Licence-0BSD-green.svg
   :target: https://opensource.org/license/0BSD
   :alt: Licence: 0BSD

.. image:: https://img.shields.io/badge/Licence-CC0%201.0%20Universal-green.svg
   :target: https://creativecommons.org/publicdomain/zero/1.0/
   :alt: 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__.

__ ./python/README.rst
__ ./rust/README.md

Example usage
=============

Rust
----

.. code-block:: rust

   use roman_numerals_rs::RomanNumeral;

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


Python
------

.. code-block:: 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.

__ ./LICENCE.rst


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.