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.1.0.tar.gz (5.0 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.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_xchange-0.1.0.tar.gz
  • Upload date:
  • Size: 5.0 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.1.0.tar.gz
Algorithm Hash digest
SHA256 c0018497c2257ca90b496a7f815a8929ed21b0b675ee4bf90c9af40cdd234d7c
MD5 5dcdc719867ed6e67077e95f41ea552e
BLAKE2b-256 2d4c0371c1278906b2f8adc6ecedd0f13845c54ec17bae8702d881cc8a3452ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xchange-0.1.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.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_xchange-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f483f7ddb451b0fa699db69373ef3b2599840f740064243e0470ffa80d1718e
MD5 4e0750f8f89d55df7c7e831a47d73c18
BLAKE2b-256 499d50c27b3eeb12170ba275a72097ee22cd5e49e0683d292786ac9a19c48467

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_xchange-0.1.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