Skip to main content

Add your description here

Project description

Data.gov.my Python SDK

Unofficial SDK for accessing open source data on https://data.gov.my.

Installation

pip install mydata

Quick Start

from datagovmy import DataGovMyClient

client = DataGovMyClient()

# Fetch a dataset from the national data catalogue
data = client.data_catalogue.get_dataset_as_json(id="population_malaysia")

# Fetch with filters
data = client.data_catalogue.get_dataset_as_json(
    id="population_malaysia",
    filter="Selangor@location",
    sort="-year",
    limit=10
)

# Fetch DOSM data
data = client.opendosm.get_dataset_as_json(id="cpi_2d_category")

Documentation

For detailed usage examples including all supported query filters (filtering, sorting, pagination, date ranges, column selection, and more), see the Usage Guide.

API Reference

This SDK wraps the data.gov.my Open API. Dataset IDs can be discovered at:

Rate Limits

  • Without API key: 4 requests/minute
  • With API key: 10 requests/minute
client = DataGovMyClient(api_key="your-api-key")

License

MIT

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

datagovmy_python_sdk-1.0.1.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

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

datagovmy_python_sdk-1.0.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file datagovmy_python_sdk-1.0.1.tar.gz.

File metadata

  • Download URL: datagovmy_python_sdk-1.0.1.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for datagovmy_python_sdk-1.0.1.tar.gz
Algorithm Hash digest
SHA256 dc7f49509e6fecc4a5391d5e4e16c0ed7c2db286af2fa3fe9b66f914e80b277b
MD5 fb67a59326e1d203043d01d8bcb2b388
BLAKE2b-256 57692fc15910fbf7a5c067fb3bf20078c8463bcba080cbd386e1cf72898009d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for datagovmy_python_sdk-1.0.1.tar.gz:

Publisher: release.yml on thekhoo/datagovmy-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datagovmy_python_sdk-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datagovmy_python_sdk-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53c44575b14d2e3cd185877323ccd50616cdb96389deee453d2be66ac750e466
MD5 b7af4cfb58e699913e15230a18767eec
BLAKE2b-256 f2905321b2325ff7a04d57ef77afad21a44651a20a43b5be15ea98057787c0e0

See more details on using hashes here.

Provenance

The following attestation bundles were made for datagovmy_python_sdk-1.0.1-py3-none-any.whl:

Publisher: release.yml on thekhoo/datagovmy-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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