{"id":37064147,"url":"https://github.com/yuhui/datagovsg","last_synced_at":"2026-01-14T07:29:49.106Z","repository":{"id":62566599,"uuid":"197307378","full_name":"yuhui/datagovsg","owner":"yuhui","description":"Unofficial Python package for interacting with APIs available at Data.gov.sg","archived":false,"fork":false,"pushed_at":"2025-02-01T07:55:19.000Z","size":116,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-25T23:40:13.023Z","etag":null,"topics":["api","api-wrapper","data-gov-sg","data-gov-sg-api","datagovsg","integration","python","singapore","singapore-government"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuhui.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2019-07-17T03:21:26.000Z","updated_at":"2025-08-18T02:43:01.000Z","dependencies_parsed_at":"2022-11-03T16:30:23.734Z","dependency_job_id":null,"html_url":"https://github.com/yuhui/datagovsg","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/yuhui/datagovsg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhui%2Fdatagovsg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhui%2Fdatagovsg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhui%2Fdatagovsg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhui%2Fdatagovsg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuhui","download_url":"https://codeload.github.com/yuhui/datagovsg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhui%2Fdatagovsg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28413266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T05:26:33.345Z","status":"ssl_error","status_checked_at":"2026-01-14T05:21:57.251Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wrapper","data-gov-sg","data-gov-sg-api","datagovsg","integration","python","singapore","singapore-government"],"created_at":"2026-01-14T07:29:48.369Z","updated_at":"2026-01-14T07:29:49.096Z","avatar_url":"https://github.com/yuhui.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"datagovsg\n=========\n\n|pyversions| |pypi| |status| |codecov| |downloads| |license| |readthedocs|\n\n.. |pyversions| image:: https://img.shields.io/pypi/pyversions/datagovsg\n   :alt: Python 3\n.. |pypi| image:: https://img.shields.io/pypi/v/datagovsg\n   :alt: PyPi\n   :target: https://pypi.org/project/datagovsg\n.. |status| image:: https://img.shields.io/pypi/status/datagovsg\n   :alt: PyPi status\n.. |codecov| image:: https://codecov.io/gh/yuhui/datagovsg/graph/badge.svg?token=ahhqotTFVt\n   :target: https://codecov.io/gh/yuhui/datagovsg\n   :alt: CodeCov coverage\n.. |downloads| image:: https://img.shields.io/pypi/dm/datagovsg\n.. |license| image:: https://img.shields.io/github/license/yuhui/datagovsg\n   :alt: GNU General Public License v3.0\n   :target: https://www.gnu.org/licenses/gpl-3.0.html\n.. |readthedocs| image:: https://readthedocs.org/projects/datagovsg/badge/?version=latest\n   :alt: Documentation Status\n   :target: https://datagovsg.readthedocs.io/en/latest/?badge=latest\n\nThis is an unofficial Python package for interacting with APIs available at\n`Data.gov.sg`_.\n\n.. _Data.gov.sg: https://data.gov.sg\n\nInstalling the package\n----------------------\n\nInstall the package using ``pip``::\n\n    pip install datagovsg\n\nUsing the package\n-----------------\n\nThe main steps are:\n\n1. Import a class.\n2. Instantiate an object from the class.\n3. Call a function on that object.\n\nFor more information, `refer to the documentation`_.\n\n.. _refer to the documentation: http://datagovsg.readthedocs.io/\n\nUsage overview\n^^^^^^^^^^^^^^\n\nInteracting with `Data.gov.sg`_'s API is done through one of four clients, where\neach client corresponds with a \"set\" of endpoints. (`Data.gov.sg`_ doesn't\ncategorise its endpoints by set, but it can be assumed from the endpoints' path\ndirectories.)\n\nThe four clients are: ``Economy``, ``Environment``, ``Housing`` and\n``Transport``.\n\n    *Breaking changes from v1.x*\n\n    The ``Economy`` client used to be called ``Technology``.\n\n    The old ``Transport`` client has been separated into ``Housing`` and\n    ``Transport``.\n\n    `Data.gov.sg`_ no longer provides endpoints for CKAN, so the ``Ckan``\n    client has been deprecated.\n\nEach client contains several public functions, one function per endpoint. A\nfunction's name is the same as its corresponding endpoint's ending path.\n\nMost functions accept named arguments, where an argument corresponds with a\nparameter that the endpoint accepts.\n\n    *Why have separate clients instead of one single client?*\n\n    Without knowing how `Data.gov.sg`_'s API will evolve, and noticing that\n    Data.gov.sg uses \"Categories\" to group its endpoints, it seemed like a\n    good idea to keep each set of endpoints in its own contextual client. This\n    allows for each \"set\" of endpoints to be customised on their own, e.g. the\n    ``Environment`` endpoints allow for either a date or date-time to be\n    specified, whereas the ``Transport`` endpoints don't.\n\nReference\n---------\n\n`Data.gov.sg's Developer Guide`_\n\n.. _Data.gov.sg's Developer Guide : https://guide.data.gov.sg/developer-guide/api-overview\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhui%2Fdatagovsg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuhui%2Fdatagovsg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhui%2Fdatagovsg/lists"}