Intro test for kiwi.com: Currency converter made into server API and CLI application
install python requirements
pip3 install -r requirements.txt
For simple convert
./currency_convert.py --amount [amount] --input_currency [currency symbol] --output_currency [currency symbol]
For example convert Euros to US dollars
./currency_convert.py --amount 100 --input_currency EUR --output_currency USD
If you didn't specify --output_currency, you'll get convertition into all currencies from European Bank API
docker build -t currencyconverter .
docker run -p 5000:5000 currencyconverter
Server is on address localhost:5000, you can try:
localhost:5000/currency_converter?amount=200&input_currency=USD&output_currency=EUR
Testing of application is provided by pytests
python3 -m pytest tests/