Python library for currency exchange.
Project description
Project Portfolio: https://github.com/calebyhan/CalebHan
currency-ch
Python library for currency exchanges.
All rates originated from FloatRates.
Installation
Use the package manager pip to install currency-ch.
pip install currency-ch
Usage
import currency
# converts amount of money from one currency to another
currency.convert("usd", "eur", 1)
# returns rate from one currency to another
currency.rate("usd", "eur")
Documentation
currency.convert(input_currency, output_currency, amount, roundTo)
Converts input_currency of amount (default 1) to output_currency with rounded to roundTo decimal places (default 2).
currency.rate(input_currency, output_currency)
Returns rate of converting input_currency to output_currency.
Contributing
Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for currency_ch-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738cb6930d990e969f792d497fff7605a2dbdf234ae24cdcd12b155254131477 |
|
MD5 | 21ecbcfd449bba7045233999e965e044 |
|
BLAKE2b-256 | b8f4c5efb20b4db9a70544d1abd5de698e35801d0060620bb89adb90921d6102 |