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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-bnr-exchangerate-0.1.0.tar.gz.
File metadata
- Download URL: django-bnr-exchangerate-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a91db3a5b7c4e3d0e33eee1838bb0306d6daa1a61c95d975e24289dd42819bb7
|
|
| MD5 |
8b5410ac61ddc53b439948337b9aea94
|
|
| BLAKE2b-256 |
3f1e3c547aa24ae960de2920ad0dee5d0fe1d8839b2f6a42cf03c98635ec72a9
|
File details
Details for the file django_bnr_exchangerate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: django_bnr_exchangerate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
051377219c1746c3418776271ad67a9a807fa75274e6fbb3d2a030ecb5c00f16
|
|
| MD5 |
bd913621f9975062ec661dd9caecef6c
|
|
| BLAKE2b-256 |
60e15ba53b6711d8bf812e3cc3b83fd547be855f90333970f955b7af20f3089e
|