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.0.2.tar.gz (48.7 kB view details)

Uploaded Source

Built Distribution

singstat-2.0.2-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: singstat-2.0.2.tar.gz
  • Upload date:
  • Size: 48.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for singstat-2.0.2.tar.gz
Algorithm Hash digest
SHA256 4837bc1ad92fb5361b24ee8f7178e1b4e54c7a9bfd83df095c585196f52e639e
MD5 79d27011250bf979d9bb0c59141eb24c
BLAKE2b-256 364f98fe4ee34f3b18c411d660389b62ea5801ae2004d0983ba420766d2e002e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: singstat-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for singstat-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a9684bb845e7bac36a45506e0c08e173c47233c6dc9fd18e8bad68320ed57f2b
MD5 ab7e96636d7a083f777a2dde7bf4ef1c
BLAKE2b-256 3a1d5c2a72055c2863fa21f9ae83a745fd26d7e26c205fad413c12ced9bba354

See more details on using hashes here.

Supported by

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