A django application to help with exchangerates from bnr.ro
Project description
# 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
```
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
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-bnr-exchangerate-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a91db3a5b7c4e3d0e33eee1838bb0306d6daa1a61c95d975e24289dd42819bb7 |
|
MD5 | 8b5410ac61ddc53b439948337b9aea94 |
|
BLAKE2b-256 | 3f1e3c547aa24ae960de2920ad0dee5d0fe1d8839b2f6a42cf03c98635ec72a9 |
Close
Hashes for django_bnr_exchangerate-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 051377219c1746c3418776271ad67a9a807fa75274e6fbb3d2a030ecb5c00f16 |
|
MD5 | bd913621f9975062ec661dd9caecef6c |
|
BLAKE2b-256 | 60e15ba53b6711d8bf812e3cc3b83fd547be855f90333970f955b7af20f3089e |