Skip to main content

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 materials
  • list_laws(...) -> list laws with filters and pagination
  • get_law(frbr_uri) -> fetch a law and its article content
  • create_client(...) -> create a reusable client instance

Links

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

pasal-0.1.2.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

pasal-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

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

Hashes for pasal-0.1.2.tar.gz
Algorithm Hash digest
SHA256 7a500bf09f30095c852cc60da442db8df74cf089ee1215aedb201290656eb1e2
MD5 c227a8bd1a2a2561753d757472f9e238
BLAKE2b-256 154ac0c71f6eb7c5a0f4d92fa1bb72895ae1bc62599982dd8224477edbc42041

See more details on using hashes here.

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

Hashes for pasal-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 32f489cc3ada3072c6fdbdef22841da7677e83f33e42078d7b70baeb6259ff93
MD5 8387d9bf38987b1e10382fc511357299
BLAKE2b-256 5740035532caf9ce020acab5de2b69f388ccda16598f7895a1aa81155e1b4b88

See more details on using hashes here.

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