Name | currency-rate JSON |
Version |
0.1.2
JSON |
| download |
home_page | |
Summary | |
upload_time | 2024-02-17 09:00:50 |
maintainer | |
docs_url | None |
author | Max |
requires_python | >=3.8,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
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
Raw data
{
"_id": null,
"home_page": "",
"name": "currency-rate",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Max",
"author_email": "maxim.milchakov@ya.ru",
"download_url": "",
"platform": null,
"description": "currency-rate\n=============\n\nPython library for easy convert currencies\n\nFeatures:\n--------------\n\n- List of currency rates relatively base currency\n- List of currencies\n- Get history currency rate\n- Convert one currency to another with specific amount\n- Currency symbols\n- Currency description\n\nInstallation\n--------------\n\n- Install using python package\n\n\t.. code-block:: python\n\n\t\t\tpip install currency-rate\n\n\t\t\t\tOr directly cloning the repo:\n\n\t\t\tpython setup.py install\n\n\nUsage Examples:\n------------------\n\n\t.. code-block:: python\n\n\t\t\t>>> from currency_rate.converter import Converter\n\t\t\t>>> converter = Converter()\n\t\t\t>>> converter.rate('USD', 'GEL')\n\t\t\t2.683433\n\t\t\t>>> converter.rate('EUR', 'USD', 50)\n\t\t\t52.880896\n\t\t\t>>> from datetime import date\n\t\t\t>>> converter.rate('EUR', 'USD', 50, date(2022, 4, 10))\n\t\t\t54.453328\n\t\t\t>>> converter.rate('EUR', 'UNK', 50)\n\t\t\tInvalidCurrencyException: UNK\n\t\t\t>>> converter.rate('EUR', 'UNK', 50, verify=False)\n\t\t\tNone\n\n\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "",
"version": "0.1.2",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "332b1ff52d6d4d55bca33aa27885ee66907fed3607df9d00439388b1263a7b9e",
"md5": "fb5e36cac48f3f0d9ecd11ccd9ed0c43",
"sha256": "cc2bde9102670f34b7888b4e87383268bb176771ef9c25e536f345728dc4dd29"
},
"downloads": -1,
"filename": "currency_rate-0.1.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fb5e36cac48f3f0d9ecd11ccd9ed0c43",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 4013,
"upload_time": "2024-02-17T09:00:50",
"upload_time_iso_8601": "2024-02-17T09:00:50.676182Z",
"url": "https://files.pythonhosted.org/packages/33/2b/1ff52d6d4d55bca33aa27885ee66907fed3607df9d00439388b1263a7b9e/currency_rate-0.1.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-17 09:00:50",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "currency-rate"
}