This is an unofficial Python package for interacting with APIs available at SingStat.gov.sg.
Install the package using pip
:
pip install singstat
The main steps are:
- Import the Client class.
- Instantiate an object from the Client class.
- Call a function on that object.
For more information, refer to the documentation.
Interacting with SingStat.gov.sg's API is done through a client.
This client contains several public functions, one function per endpoint. A function's name is the same as its corresponding endpoint's ending path.
Most functions accept named arguments, where an argument corresponds with a parameter that the endpoint accepts.
SingStat.gov.sg's Developer Guide
If you like this package, you may be interested in these packages that I have built to work with other Government of Singapore APIs:
- datagovsg: for interacting with APIs available at Data.gov.sg.
- landtransportsg: for interacting with APIs available at LTA DataMall.