Metadata-Version: 2.4
Name: pasal
Version: 0.1.3
Summary: Pasal.id is the Indonesia-specific regulation API in the Aturio.ai network. Aturio.ai is the Southeast Asia-wide unified regulation API.
Project-URL: Homepage, https://pasal.id
Project-URL: Repository, https://github.com/pasal
Project-URL: Documentation, https://pasal.id/api
Author-email: Ilham Firdausi Putra <halo@pasal.id>
License-Expression: MIT
Keywords: api,hukum,indonesia,law,legal,mcp,peraturan,regulation,rest,sdk
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pasal

Python SDK for [Pasal.id](https://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](https://pasal.id/api). Pasal.id is the Indonesia-specific API, while [Aturio.ai](https://aturio.ai) is the Southeast Asia-wide unified regulation API above it. [laws.sg](https://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

```bash
pip install pasal
```

## Usage

```python
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

- Website: https://pasal.id
- Aturio.ai: https://aturio.ai
- Singapore: https://laws.sg
- API: https://pasal.id/api
- GitHub: https://github.com/pasal
