Skip to main content

Django Roman

PyPI version Build status Documentation status

Django Roman is a Django template tag application to convert Arabic numerals into Roman numerals.

Original Roman numeral conversion code adapted from Dive Into Python 3 by Mark Pilgrim.

Install

$ pip install django-roman

Add to settings.py.

INSTALLED_APPS = [
    # ...
    'roman',
]

Usage

Convert Arabic numerals to Roman numerals with the roman template filter.

{% load roman_tags %}

{{ "Party like it's 1999."|roman }}

Result:

Party like it's <span class="numerals numerals-roman">MCMXCIX</span>.

Can also be imported as a standalone Python module:

>>> from roman import roman
>>> roman(1999)
'MCMXCIX'
>>> roman("1999")
'MCMXCIX'
>>> from roman import arabic
>>> arabic("MCMXCIX")
1999

Metadata

Release files for django-roman 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-roman 0.2.3
File Size Uploaded Provenance
django-roman-0.2.3.tar.gz 5.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-roman 0.2.3
File Interpreter ABI Platform
django_roman-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.0 kB

Release files / django-roman-0.2.3.tar.gz

Download URL django-roman-0.2.3.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6e75b4fe25a4daa3c7ae4771b2f2a699029b2f883e23aab5620b0e7df243fb46
BLAKE2b-256 checksum
How to use checksums
a6d7bd8bf862372f39e1a840036ac41b61c699ce7564331b877cbbee93403e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / django_roman-0.2.3-py3-none-any.whl

Download URL django_roman-0.2.3-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f2a8a713efa705685eb6172147a560e2b77031c18343fc64cfe9c122fa0d5ee
BLAKE2b-256 checksum
How to use checksums
da28bf4a1b009cd2e76427b7b6ff6fffb8bd8f8d9eed3f3686849e7857a94d09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Security for django-roman 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page