Metadata-Version: 2.1
Name: currency-rate
Version: 0.1.2
Summary: 
Author: Max
Author-email: maxim.milchakov@ya.ru
Requires-Python: >=3.8,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: incremental (>=22.10.0,<23.0.0)
Requires-Dist: pydantic (>=2.6.1,<3.0.0)
Requires-Dist: requests (>=2.31.0,<3.0.0)
Requires-Dist: simplejson (>=3.19.2,<4.0.0)
Description-Content-Type: text/x-rst

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




