Application take rates from European Central Bank. Rates are updated every day around 16:00 CET.
Clone repository
git clone https://github.com/mato0036/CurrencyConverter.gitTo run CLI application, firstly install requirements for application
pip install -r requirements.txtThen run application
python -m CurrencyConverter --amount <amount> --input_currency <3 letter name> [--output_currency <3 letter name or symbol>]For API application is provided Docker image for easier use.
To run API application build Docker image
docker build -t currency-converter-docker .Then run image
docker run -p 8080:8080 currency-converter-dockerYou can access application by opening in your browser
localhost:8080/currency_converter?amount=<amount>&input_currency=<3 letter name>&output_currency=<3letter name or symbol>
Parameter input_currency is not supporting symbols of currencies, because symbols are not exclusive for currencies.
However when is symbol used for output_currency application return all currencies, that have that symbol.
When output_currency is not provided, application converts to all supported currencies.