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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc7f49509e6fecc4a5391d5e4e16c0ed7c2db286af2fa3fe9b66f914e80b277b
|
|
| MD5 |
fb67a59326e1d203043d01d8bcb2b388
|
|
| BLAKE2b-256 |
57692fc15910fbf7a5c067fb3bf20078c8463bcba080cbd386e1cf72898009d5
|
Provenance
The following attestation bundles were made for datagovmy_python_sdk-1.0.1.tar.gz:
Publisher:
release.yml on thekhoo/datagovmy-python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datagovmy_python_sdk-1.0.1.tar.gz -
Subject digest:
dc7f49509e6fecc4a5391d5e4e16c0ed7c2db286af2fa3fe9b66f914e80b277b - Sigstore transparency entry: 1192023008
- Sigstore integration time:
-
Permalink:
thekhoo/datagovmy-python-sdk@fd8ec638979021ab677a66b3241b7cc34d7a19eb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/thekhoo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd8ec638979021ab677a66b3241b7cc34d7a19eb -
Trigger Event:
push
-
Statement type:
File details
Details for the file datagovmy_python_sdk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: datagovmy_python_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53c44575b14d2e3cd185877323ccd50616cdb96389deee453d2be66ac750e466
|
|
| MD5 |
b7af4cfb58e699913e15230a18767eec
|
|
| BLAKE2b-256 |
f2905321b2325ff7a04d57ef77afad21a44651a20a43b5be15ea98057787c0e0
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datagovmy_python_sdk-1.0.1-py3-none-any.whl -
Subject digest:
53c44575b14d2e3cd185877323ccd50616cdb96389deee453d2be66ac750e466 - Sigstore transparency entry: 1192023011
- Sigstore integration time:
-
Permalink:
thekhoo/datagovmy-python-sdk@fd8ec638979021ab677a66b3241b7cc34d7a19eb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/thekhoo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fd8ec638979021ab677a66b3241b7cc34d7a19eb -
Trigger Event:
push
-
Statement type: