Python wrapper for the EskomSePush API to get the Eskom Loadshedding schedule for your area
I am a beginner programmer and this is my first code commit. If you have better ways of coding it or find bugs in my code, please feel free to fix :)
get_status()
get the National loadshedding scheduleget_allowance()
check your creditssearch_areas()
search area using text searchget_area_information
get the area information based on thearea_id
(usesearch_areas()
to get thearea_id
get_area_information_test
for testing purposes. Does not count towards your creditsget_areas_nearby
search for areas nearby (longitude and latitude as input)get_topics_nearby
find topics created by users nearby (longitude and latitude as input)
- Add logging
- Remember to obtain your
API_KEY
by regisering - Put your
API_KEY
in a .env file - Add
BASE_URL = "https://developer.sepush.co.za/business/2.0"
in the .env file - Install all the dependencies from the requirements.txt file
- Create app.py (mine is ignored in the .gitignore file) to create an object of the class EskomSePush
EskomSePush API documentation