Skip to main content

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

  1. Install::
   pip install django-usd2currency
  1. 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'
  1. Start to use it in code
   from django_usd2currency.utils import usd2currency

   print(usd2currency(12, currency='CNY'))
  1. Use redis as cache backend to lock in the multiprocess env.

TODO:

  • write test

Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-usd2currency-0.1.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

django_usd2currency-0.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page