Skip to content

spifory/shedding.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shedding.py

Shedding.py is a Python wrapper for the EskomSePush API. It provides a simple interface to the API, and handles all the authentication and session management for you.

Example

Here is a basic example of us getting an area's information

from shedding import get_area_information

area = get_area_information(
    authorization_token="api.token",
    id="eskde-10-fourwaysext10cityofjohannesburggauteng"
)
print(area) # returns all area information from the City of Johannesburg
print(area["schedule"]["days"]) # returns a list of schedules for each day

Installation

# Windows
$ py -m pip install shedding.py

# UNIX Systems (Linux/MacOS)
$ python3 -m pip install shedding.py

Links