Small command line tool for calculating currency exchange rates.
$ ./currencyconv.py file "rates.json" could not be found Try re-running the program with the `u' or `update' option
Run ./currencyconv.py u
or ./currencyconv.py update
to download a list of exchange
rates from fixer.io
(this creates a file rates.json
):
$ ./currencyconv.py u $ ./currencyconv.py Usage: ./currencyconv.py base target Available rates: AUD BGN BRL CAD CHF CNY CZK DKK GBP HKD HRK HUF IDR ILS INR ISK JPY KRW MXN MYR NOK NZD PHP PLN RON RUB SEK SGD THB TRY USD ZAR EUR
Show rates for e.g., USD:CHF
:
$ ./currencyconv.py usd chf Using rates from 2018-02-23 1.0000 USD is 0.9354 CHF
Also supports showing specific amounts:
$ ./currencyconv.py usd chf 1234 Using rates from 2018-02-23 1234.0000 USD is 1154.3353 CHF
Licensed under GPLv3. (See LICENSE
.)