Socket
Socket
Sign inDemoInstall

currency-rate

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

currency-rate


Maintainers
1

currency-rate

Python library for easy convert currencies

Features:

  • List of currency rates relatively base currency
  • List of currencies
  • Get history currency rate
  • Convert one currency to another with specific amount
  • Currency symbols
  • Currency description

Installation

  • Install using python package

    .. code-block:: python

      	pip install currency-rate
    
      		Or directly cloning the repo:
    
      	python setup.py install
    

Usage Examples:

.. code-block:: python

		>>> from currency_rate.converter import Converter
		>>> converter = Converter()
		>>> converter.rate('USD', 'GEL')
		2.683433
		>>> converter.rate('EUR', 'USD', 50)
		52.880896
		>>> from datetime import date
		>>> converter.rate('EUR', 'USD', 50, date(2022, 4, 10))
		54.453328
		>>> converter.rate('EUR', 'UNK', 50)
		InvalidCurrencyException: UNK
		>>> converter.rate('EUR', 'UNK', 50, verify=False)
		None

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc