nightietime / pppconverter

Equivalent Salary Converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculate how much money is worth in a different country. Uses data from World Bank.

Note: Works on python3.4 and above.

Installation Instructions

  1. Clone the source code

     git clone https://github.com/nigelbabu/pppconverter.git
    
  2. Create a virtual environments and install the dependencies

     virtualenv -p python3 env
     source env/bin/activate
     pip install -r requirements.txt
    
  3. Create the sqlite database by running the website.py file.

     ./manage.py runserver
    
  4. Import the CSV into the sqlite database.

     ./manage.py importcsv -f data.csv
    
  5. Run the site.

     ./manage.py runserver
    

Updating the data

  1. Download the CSV data from the world bank portal and unzip the file.

  2. Run the parsecsv.py script to create a file called parsed_data.csv.

     ./manage.py parsecsv -f /path/to/file
    
  3. Replace data.csv file with the newly created parsed_data.csv file.

  4. Import the new CSV into the sqlite database.

     ./manage.py importcsv -f data.csv
    
  5. PROFITT!!

About

Equivalent Salary Converter

License:MIT License


Languages

Language:Python 52.4%Language:HTML 31.1%Language:JavaScript 12.5%Language:CSS 4.0%