Skip to content

Small command line tool for calculating currency exchange rates.

License

Notifications You must be signed in to change notification settings

anderspkd/currency_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages