django-bnr
BNR exchange rates for django apps.
Installation
To get the latest stable release from PyPi
pip install django-bnr
To get the latest commit from GitHub
pip install -e git+git://github.com/PressLabs/django-bnr.git#egg=django_bnr
Add django_bnr to your INSTALLED_APPS
INSTALLED_APPS = (
...,
'django_bnr',
)
Don’t forget to migrate your database
./manage.py migrate django_bnr
Usage
The package provides a python function for getting BNR exchange rates.
from django_bnr.utils import get_bnr_rate
get_bnr_rate(date, currency)
It also provides a management command for getting the BNR rates. Running it daily in a cron ensures you have data cached since BNR offers rates for up to 15 days.
./manage.py get_bnr_rate -c CURRENCY -d DATE
Contribute
If you want to contribute to this project, please perform the following steps
# Fork this repository
# Clone your fork
mkvirtualenv -p python2.7 django-bnr
git co -b feature_branch master
# Implement your feature and tests
git add . && git commit
git push -u origin feature_branch
# Send us a pull request for your feature branch
Metadata
Release files for django-bnr 0.4.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_bnr-0.4.2.tar.gz | 5.8 kB | Without provenance | Details for django_bnr-0.4.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_bnr-0.4.2-py3-none-any.whl | Python 3 | none | any | Details for django_bnr-0.4.2-py3-none-any.whl |
Total release size: 12.3 kB
Release files / django_bnr-0.4.2.tar.gz
| Download URL | django_bnr-0.4.2.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
baf583a9da9b6b24e766e7d06bca55a47214bbfb079d7eb1da8e7648d2f0d8e4
|
|
BLAKE2b-256 checksum How to use checksums |
1ea500062a53a714dbee4840056619a00d2df28803084ffa37c455439ef1f1bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Release files / django_bnr-0.4.2-py3-none-any.whl
| Download URL | django_bnr-0.4.2-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b83a3831a577358d4dda8e2c9fbef2e00716ae93deb2087d194b9337c6c76d9
|
|
BLAKE2b-256 checksum How to use checksums |
c1efbb76e3009d72d98546bc13759baeaa02e21258eea60db9fa8a4a95c5c343
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.13
|
Security for django-bnr 0.4.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.