Skip to main content

No project description provided

Project description

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

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

Usage Examples:

>>> 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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

currency_rate-0.1.2-py3-none-any.whl (4.0 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