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.3.tar.gz (47.7 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.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pasal-0.1.3.tar.gz.

File metadata

  • Download URL: pasal-0.1.3.tar.gz
  • Upload date:
  • Size: 47.7 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.3.tar.gz
Algorithm Hash digest
SHA256 f059e8a0694ff2129de9ac36e8c83c25929325607d5cd7a5a12e57cf7c7dad1f
MD5 1e73a1ed950f451e765ece1d11360a2b
BLAKE2b-256 3b251165770c64b035186d1122e918c964f45ead2ea333085619d3decf36e940

See more details on using hashes here.

File details

Details for the file pasal-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pasal-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 267bcef82d741b4eb519faf5ec6e1af1eacb963fb670dfb693156718c4eb1b55
MD5 9a5db40fb6de62a1592ee1348be326cc
BLAKE2b-256 825ef6d4e4eff62dee8c5a25aab137ab52b89294f2dafa96f757a4a2cf0b6262

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