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
Metadata
Release files for pasal 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pasal-0.1.3.tar.gz | 47.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pasal-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.7 kB
Release files / pasal-0.1.3.tar.gz
| Download URL | pasal-0.1.3.tar.gz |
|---|---|
| Size | 47.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f059e8a0694ff2129de9ac36e8c83c25929325607d5cd7a5a12e57cf7c7dad1f
|
|
BLAKE2b-256 checksum How to use checksums |
3b251165770c64b035186d1122e918c964f45ead2ea333085619d3decf36e940
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Release files / pasal-0.1.3-py3-none-any.whl
| Download URL | pasal-0.1.3-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
267bcef82d741b4eb519faf5ec6e1af1eacb963fb670dfb693156718c4eb1b55
|
|
BLAKE2b-256 checksum How to use checksums |
825ef6d4e4eff62dee8c5a25aab137ab52b89294f2dafa96f757a4a2cf0b6262
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.2
|
Security for pasal 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.