This is an unofficial Python package for interacting with APIs available at SingStat.gov.sg.
Installing the package
Install the package using pip:
pip install singstat
Using the package
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.
Usage overview
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.
Reference
Other Packages Built by Me
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.
Metadata
Release files for singstat 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| singstat-2.1.0.tar.gz | 26.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| singstat-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.0 kB
Release files / singstat-2.1.0.tar.gz
| Download URL | singstat-2.1.0.tar.gz |
|---|---|
| Size | 26.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ce3878f83f1b80d7e2827bbe416858362f243c9df22c4bfa8df3928aabd946c
|
|
BLAKE2b-256 checksum How to use checksums |
dbfb437812069f428cd80263b52c60673ea027174a713654f471ed09171e2147
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / singstat-2.1.0-py3-none-any.whl
| Download URL | singstat-2.1.0-py3-none-any.whl |
|---|---|
| Size | 32.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d2cbcfdbba909844c44e748bf92618cc378027b003eb723d779fe75659e34b1
|
|
BLAKE2b-256 checksum How to use checksums |
2fa785ee2b3879fde7bd69d52464061e530cce11a969b35abdad1cdecc469422
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|