Calculate how much money is worth in a different country. Uses data from World Bank.
Note: Works on python3.4 and above.
-
Clone the source code
git clone https://github.com/nigelbabu/pppconverter.git
-
Create a virtual environments and install the dependencies
python -m venv env source env/bin/activate pip install -r requirements.txt
-
Create the sqlite database by running the website.py file.
flask --app=manage user db_init
-
Import the CSV into the sqlite database.
flask --app=manage user importcountries -f countries.csv flask --app=manage user importcsv -f data.csv
-
Run the site.
flask --app=website --debug run
-
Download the CSV data from the world bank portal and unzip the file.
-
Run the parsecsv.py script to create a file called parsed_data.csv.
flask --app=manage user parsecsv -f /path/to/file
-
Replace data.csv file with the newly created parsed_data.csv file.
-
Import the new CSV into the sqlite database.
flask --app=manage user importcsv -f data.csv
-
PROFITT!!