Pasal.id is the Indonesia-specific regulation API in the Aturio.ai network. Aturio.ai is the Southeast Asia-wide unified regulation API.
Project description
pasal
Python SDK for Pasal.id - the Indonesia-specific regulation API in the Aturio.ai network.
This package is a working Python client for the public Pasal.id REST API. Pasal.id is the Indonesia-specific API, while Aturio.ai is the Southeast Asia-wide unified regulation API above it. laws.sg is the Singapore surface in the same network.
What is Pasal.id?
Pasal.id provides structured, searchable access to Indonesian government regulations. It is focused specifically on Indonesia, with an API and MCP server for developers.
Installation
pip install pasal
Usage
from pasal import create_client, get_law, list_laws, search
client = create_client()
results = search("upah minimum", limit=3)
laws = list_laws(type="UU", limit=5)
law = get_law("/akn/id/act/uu/2003/13")
print(results["total"])
print(laws["laws"][0]["title"])
print(len(law["articles"]))
Included Methods
search(query, ...)-> search Indonesian legal materialslist_laws(...)-> list laws with filters and paginationget_law(frbr_uri)-> fetch a law and its article contentcreate_client(...)-> create a reusable client instance
Links
- Website: https://pasal.id
- Aturio.ai: https://aturio.ai
- Singapore: https://laws.sg
- API: https://pasal.id/api
- GitHub: https://github.com/pasal-id
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
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 pasal-0.1.2.tar.gz.
File metadata
- Download URL: pasal-0.1.2.tar.gz
- Upload date:
- Size: 22.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a500bf09f30095c852cc60da442db8df74cf089ee1215aedb201290656eb1e2
|
|
| MD5 |
c227a8bd1a2a2561753d757472f9e238
|
|
| BLAKE2b-256 |
154ac0c71f6eb7c5a0f4d92fa1bb72895ae1bc62599982dd8224477edbc42041
|
File details
Details for the file pasal-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pasal-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32f489cc3ada3072c6fdbdef22841da7677e83f33e42078d7b70baeb6259ff93
|
|
| MD5 |
8387d9bf38987b1e10382fc511357299
|
|
| BLAKE2b-256 |
5740035532caf9ce020acab5de2b69f388ccda16598f7895a1aa81155e1b4b88
|