Skip to main content

Python package for interacting with APIs available at SingStat.gov.sg

Project description

Python 3 PyPi PyPi status CodeCov coverage downloads GNU General Public License v3.0 Documentation Status

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:

  1. Import the Client class.

  2. Instantiate an object from the Client class.

  3. 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

SingStat.gov.sg’s Developer Guide

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

singstat-2.1.0.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

singstat-2.1.0-py3-none-any.whl (32.3 kB view details)

Uploaded Python 3

File details

Details for the file singstat-2.1.0.tar.gz.

File metadata

  • Download URL: singstat-2.1.0.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for singstat-2.1.0.tar.gz
Algorithm Hash digest
SHA256 4ce3878f83f1b80d7e2827bbe416858362f243c9df22c4bfa8df3928aabd946c
MD5 a1c66e0eb251566dd47d034019746bf9
BLAKE2b-256 dbfb437812069f428cd80263b52c60673ea027174a713654f471ed09171e2147

See more details on using hashes here.

File details

Details for the file singstat-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: singstat-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 32.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for singstat-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d2cbcfdbba909844c44e748bf92618cc378027b003eb723d779fe75659e34b1
MD5 aba215cab2a91a0cfceebe147802eab7
BLAKE2b-256 2fa785ee2b3879fde7bd69d52464061e530cce11a969b35abdad1cdecc469422

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page