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_informationget the area information based on thearea_id(usesearch_areas()to get thearea_idget_area_information_testfor testing purposes. Does not count towards your creditsget_areas_nearbysearch for areas nearby (longitude and latitude as input)get_topics_nearbyfind topics created by users nearby (longitude and latitude as input)
- Add logging
- Remember to obtain your
API_KEYby regisering - Put your
API_KEYin 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