Metadata-Version: 2.1
Name: singstat
Version: 1.1.0
Summary: Python package for interacting with APIs available at SingStat.gov.sg
Home-page: https://github.com/yuhui/singstat
Author: Yuhui
Author-email: yuhuibc@gmail.com
License: GNU General Public License v3
Project-URL: Source, https://github.com/yuhui/singstat
Project-URL: Bug Tracker, https://github.com/yuhui/singstat/issues
Keywords: singstat,singapore statistics,department of statistics singapore,python,singapore,wrapper
Platform: MacOS X
Platform: POSIX
Platform: Windows
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet
Requires-Python: >=3,<4
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: backoff <2.0,>=1.8
Requires-Dist: cachetools <4.0,>=3
Requires-Dist: pytz <2025,>=2022
Requires-Dist: requests <3.0,>=2

singstat
========

|pyversions| |pypi| |status| |license| |readthedocs|

.. |pyversions| image:: https://img.shields.io/pypi/pyversions/singstat
   :alt: Python 3
.. |pypi| image:: https://img.shields.io/pypi/v/singstat
   :alt: PyPi
   :target: https://pypi.org/project/singstat
.. |status| image:: https://img.shields.io/pypi/status/singstat
   :alt: PyPi status
.. |license| image:: https://img.shields.io/github/license/yuhui/singstat
   :alt: GNU General Public License v3.0
   :target: https://www.gnu.org/licenses/gpl-3.0.html
.. |readthedocs| image:: https://readthedocs.org/projects/singstat/badge/?version=latest
   :alt: Documentation Status
   :target: https://singstat.readthedocs.io/en/latest/?badge=latest

This is an unofficial Python package for interacting with APIs available at
`SingStat.gov.sg`_.

.. _SingStat.gov.sg: https://www.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`_.

.. _refer to the documentation: http://singstat.readthedocs.io/

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`_

.. _SingStat.gov.sg's Developer Guide: https://tablebuilder.singstat.gov.sg/view-api/for-developers
