World Bank Financial Indicators is a Flask web application that retrieves financial health indicator, GDP per capita (USD), for countries based on World Bank database, utilizing the wbdata library of Python.
The following Python packages must be installed to use this project:
- wbdata: use "pip install wbdata"
- flask: use "pip install Flask"
Edit main.py and coutnrypage.html to replace API keys with your own Mapbox user API key.
Run main.py in your terminal.
Enter resulting local host address generated by Flask into your web browser.
Follow directions on the homepage; enter country codes to either the Search bar on the navigation panel, or the host route (e.g. for United States of America: /USA.html, /USA.json, or /USA.csv) to access information about a country. If you enter the wrong country code, an error page will appear instead.
The following two public APIs are used to create this website's content:
- World Bank, via wbdata python interface: https://wbdata.readthedocs.io/en/stable/
- Country Flags: https://www.countryflags.io/
- Mapbox API: https://www.mapbox.com/