Skip to main content

django-currency-list

This library simplifies the handling of the currency field in Django projects.

Features

  • Currency — provides all ISO 4217 currency codes and names as TextChoices.
  • CurrencyField — a ready-to-use CharField subclass with currency choices and max length 3.

Installation

pip install django-currency-list

Usage

from currency_list import CurrencyField, CurrencyChoices, get_label, currency_dict

# In models.py
class Product(models.Model):
    currency = CurrencyField()

# Get all currency codes
currency_codes = Currency.currency_code_list()

# Get a label for a code
get_label("USD")  # "United States Dollar"

# Full code → name mapping
currency_dict()  # {"USD": "United States Dollar", ...}

Python / Django support

  • Python 3.10 — 3.14
  • Django 5.2 — 6.1+

Metadata

Release files for django-currency-list 0.2.0

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-currency-list 0.2.0
File Size Uploaded Provenance
django_currency_list-0.2.0.tar.gz 9.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-currency-list 0.2.0
File Interpreter ABI Platform
django_currency_list-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / django_currency_list-0.2.0.tar.gz

Download URL django_currency_list-0.2.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9225d9a667adfb0be7476c5ae3df31f6a11adaf02d2ce47d718622aee875f605
BLAKE2b-256 checksum
How to use checksums
145b98548f4bc289547150c59f835c1e6bfbc4b0246452f78ac6438b0605acec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / django_currency_list-0.2.0-py3-none-any.whl

Download URL django_currency_list-0.2.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98e766651bbb1a534a9225a59e4de7e0d0ecd079a3abb0038fded558ec480b81
BLAKE2b-256 checksum
How to use checksums
0da27368dd3c357a4bf7fffa263fe48527e83270c8754e77fdd2fbf4f4051e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for django-currency-list 0.2.0

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