Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-usd2currency

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-usd2currency

Free usd/{currency} utils by caching api from apilayer.com

  • 0.1
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc