Skip to main content

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

Metadata

Release files for django-usd2currency 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-usd2currency 0.1
File Size Uploaded Provenance
django-usd2currency-0.1.tar.gz 2.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for django-usd2currency 0.1
File Interpreter ABI Platform
django_usd2currency-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.1 kB

Release files / django-usd2currency-0.1.tar.gz

Download URL django-usd2currency-0.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb3ea6bcc2fd14136e41fef7255466654db0d1a9e8f622300df362c25f18b874
BLAKE2b-256 checksum
How to use checksums
8aefdf3ba31e47643026c827f2f7b6d2a0356993b790505835655342d79b3be5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / django_usd2currency-0.1-py3-none-any.whl

Download URL django_usd2currency-0.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0321b29304f708bac91ca8e2b0ae1971226b6e1793deff469a0a644ae1870bd5
BLAKE2b-256 checksum
How to use checksums
893c341aaea48fa40b6103af2028f0c9f2d54f6df7cd13a232e1612683eeb78d
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for django-usd2currency 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page