https://github.com/vst/kurrency
A Python library which provides currency data and forex utilities
https://github.com/vst/kurrency
Last synced: 11 months ago
JSON representation
A Python library which provides currency data and forex utilities
- Host: GitHub
- URL: https://github.com/vst/kurrency
- Owner: vst
- License: bsd-2-clause
- Archived: true
- Created: 2012-08-16T10:31:21.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T13:07:07.000Z (about 13 years ago)
- Last Synced: 2025-06-25T11:07:03.729Z (about 1 year ago)
- Language: Python
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=========================================================
kurrency - Currency data and FOREX Utilities for Python
=========================================================
*kurrency* is a Python library which provides currency data and forex
utilities to applications. The data used in the library is obtained
from various resources including `Wikipedia
`_, `Trading with Clancy
`_.
Installation
============
You can install the latest version of *kurrency* from the GitHub
repository::
$ pip install git+https://github.com/telosoft/kurrency.git
Example Usage
=============
Import the canonical *Currency* class::
>>> from kurrency import Currency
Retrieve a *Currency* object for a given identifier::
>>> turkish_lira = Currency.get("TRY")
The identifier can be any of ``code``, ``enum`` or ``name`` attributes
of a *Currency* object::
TRY,'949,Turkish lira,2,2,TR
>>> Currency.get("TRY") == Currency.get("949")
True
>>> Currency.get("949") == Currency.get("Turkish Lira")
True
Quick API Reference
===================
.. todo:: Provide the FULL API reference.