Free usd/{currency} utils by caching api from apilayer.com
Project description
Convert value from usd to currency
Simple and free usd2currency convert utils, by caching free-limited-api from apilayer.com
Quick start
- Install::
pip install django-usd2currency
- Add "django_usd2currency" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'django_usd2currency',
]
# Get free api from https://currencylayer.com/signup/free
APILAYER_ACCESS_KEY = 'xxxxxxxxxxx'
- Start to use it in code
from django_usd2currency.utils import usd2currency
print(usd2currency(12, currency='CNY'))
- Use redis as cache backend to lock in the multiprocess env.
TODO:
- write test
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_usd2currency-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0321b29304f708bac91ca8e2b0ae1971226b6e1793deff469a0a644ae1870bd5 |
|
MD5 | cb66e46b6e30ccda4e2b1220363018c5 |
|
BLAKE2b-256 | 893c341aaea48fa40b6103af2028f0c9f2d54f6df7cd13a232e1612683eeb78d |