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
File details
Details for the file django-usd2currency-0.1.tar.gz
.
File metadata
- Download URL: django-usd2currency-0.1.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb3ea6bcc2fd14136e41fef7255466654db0d1a9e8f622300df362c25f18b874 |
|
MD5 | c8fefa23c9b9161706745cc2b0554a9e |
|
BLAKE2b-256 | 8aefdf3ba31e47643026c827f2f7b6d2a0356993b790505835655342d79b3be5 |
Provenance
File details
Details for the file django_usd2currency-0.1-py3-none-any.whl
.
File metadata
- Download URL: django_usd2currency-0.1-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.29.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0321b29304f708bac91ca8e2b0ae1971226b6e1793deff469a0a644ae1870bd5 |
|
MD5 | cb66e46b6e30ccda4e2b1220363018c5 |
|
BLAKE2b-256 | 893c341aaea48fa40b6103af2028f0c9f2d54f6df7cd13a232e1612683eeb78d |