Skip to main content

Django currency exchange library

Project description

Django XChange

Pypi coverage Test Docs Django Supported Python versions

Django XChange is a library providing a Rate model containing currency exchange rates for a day.

It relies on third-party libraries to fetch historical exchange rates.

How to use

Default configuration is defined at src/django_xchange/config.py::DEFAULT_SETTINGS

A Django settings DJANGO_XCHANGE dictionary must be configured to override the default settings.

It is mandatory to configure the DJANGO_XCHANGE['BROKERS'] item with a list of brokers you intend to use.

For example:

DJANGO_XCHANGE = {
    'BROKERS': ['django_xchange.brokers.pyoxr.PyoxrBroker']
}

See specific notes for the third-party exchange providers configuration

Third-party libraries

Open Exchange Rates

Requirements:

  • extra: pyoxr (eg. pip install django-xchange[pyoxr])
  • settings: OPEN_EXCHANGE_RATES_APP_ID the app id provided by Open Exchange Rates

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_xchange-0.2.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_xchange-0.2.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file django_xchange-0.2.0.tar.gz.

File metadata

  • Download URL: django_xchange-0.2.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for django_xchange-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a328bbd7793b694d98eaa8542198ab00eab75a8f19795a04e347c79849af0914
MD5 073b2ef5d7246fe7d280e0daac8099fc
BLAKE2b-256 b92e2f020d423204e76e0f532ebe78e9a4e76d82309f309d740cc22344e50c1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xchange-0.2.0.tar.gz:

Publisher: release.yml on k-tech-italy/django-xchange

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_xchange-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: django_xchange-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for django_xchange-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bedd32936314e3e2eccd3af4f395151aff40175ca882cc2933d1ea8261d63f4
MD5 3424811cd028af017ffabd62db6d26f1
BLAKE2b-256 a19024b29a06902a1bab2cb53d7f66821be087384b2c1910059767d27aa2c101

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xchange-0.2.0-py3-none-any.whl:

Publisher: release.yml on k-tech-italy/django-xchange

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page