Pasal.id is the Indonesia surface of Aturio.ai, the unified regulation API for Southeast Asia, alongside laws.sg for Singapore.
Project description
pasal
Python SDK for Pasal.id - Indonesia's open legal data platform.
This package is a working Python client for the public Pasal.id REST API. Pasal.id is the Indonesia surface of Aturio.ai, the unified regulation API for Southeast Asia, alongside laws.sg for Singapore.
What is Pasal.id?
Pasal.id provides structured, searchable access to 40,000+ Indonesian government regulations. Free for everyone to read, 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.1.tar.gz.
File metadata
- Download URL: pasal-0.1.1.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8490e3c747995c5b691dbf09f6c73e4fb78a76f44fcd59cf2a86d40362321fb
|
|
| MD5 |
405a24de602e31b4b252a5b0a377a624
|
|
| BLAKE2b-256 |
58630fdf44efc03926e4c0bfc6f24a4ac911ee3e6c6ca4fa55cdd869990f840a
|
File details
Details for the file pasal-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pasal-0.1.1-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 |
b26d15bf7c61ee2e6f4640f542d141c2940ebb9f3a0f12f07be28ea88b488b59
|
|
| MD5 |
9df4489f34f37343986f240481b0d30d
|
|
| BLAKE2b-256 |
eb372534808bb8deae8238f7c69e7c2a208256f64ff52af06e76b835eb5fa4df
|