Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Currency Converter

Small command line tool for calculating currency exchange rates.

Usage

$ ./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

License

Licensed under GPLv3. (See LICENSE.)

About

Small command line tool for calculating currency exchange rates.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages