Skip to main content
# django-bnr-exchangerate
A django application that handles the updating and supplying of an exchange rate.
## Instalation
```
pip install django-bnr-exchangerate
```
Add to settings.py
```
'bnr_exchangerate',
```
## Example usage
Get an exchange rate for a value for a certain day.
If the day is on saturday or on sunday it will automatically get the friday exchange rate
```
from bnr_exchangerate.models import ExchangeRate
value = ExchangeRate.get_rate('EUR', '2015-10-10')
```
To import the history from 2005 to current year into the database execute the following command
```
./manage.py get_history
```
To update daily exchange rate run the following command
```
./manage.py get_daily
```

Download files

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

Source Distribution

django-bnr-exchangerate-0.1.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

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

django_bnr_exchangerate-0.1.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file django-bnr-exchangerate-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-bnr-exchangerate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a91db3a5b7c4e3d0e33eee1838bb0306d6daa1a61c95d975e24289dd42819bb7
MD5 8b5410ac61ddc53b439948337b9aea94
BLAKE2b-256 3f1e3c547aa24ae960de2920ad0dee5d0fe1d8839b2f6a42cf03c98635ec72a9

See more details on using hashes here.

File details

Details for the file django_bnr_exchangerate-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_bnr_exchangerate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 051377219c1746c3418776271ad67a9a807fa75274e6fbb3d2a030ecb5c00f16
MD5 bd913621f9975062ec661dd9caecef6c
BLAKE2b-256 60e15ba53b6711d8bf812e3cc3b83fd547be855f90333970f955b7af20f3089e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

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