Kiwi.com entry task - currency converter CLI and web API application.
(Python 3 needed)
pip install -r requirements.txt
./currency_converter.py [--help] --amount <amount> --input_currency <currency_symbol> [--output_currency <currency_symbol>]
./currency_converter.py --amount 5.0 --input_currency USD --output_currency Kč
docker-compose build
docker-compose up
Server listens on port 5000
http://localhost:5000/currency_converter?amount=<amount>&input_currency=<symbol>&output_currency=<symbol>
http://localhost:5000/currency_converter?amount=5.0&input_currency=USD&output_currency=CZK
Try out the API in this intuitive GUI:
http://localhost:5000/ui
python -m pytest tests/