Skip to content

rlapar/currency_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Currency Converter task for kiwi.com

Build Status

Assignment: https://gist.github.com/MichalCab/c1dce3149d5131d89c5bbddbc602777c

Installation

python3 setup.py install

Tests

python3 setup.py test

CLI Usage

Installation will create executable bin curreny_converter.

Usage: currency_converter [OPTIONS]

Options:
  -a, --amount FLOAT          amount to convert  [required]
  -i, --input_currency TEXT   input currency - 3 letters name or currency
                              symbol  [required]
  -o, --output_currency TEXT  requested/output currency - 3 letters name or
                              currency symbol
  --help                      Show this message and exit.

Web API

Start uWSGI server:

cd currency_converter
uwsgi --ini wsgi_config.ini

Config available at currency_converter/wsgi_config.ini. By default wsgi communicate with web server via socket app.sock.

NGINX config example:

server {
        listen 80;
        server_name SERVER_NAME;

        location / {
                include uwsgi_params;
                uwsgi_pass unix:PATH_TO_APP_SOCK;
        }
}

Author: Radovan Lapár

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages