panini-py — Python port of Panini
Deterministic, privacy-preserving parser for Indian bank narrations.
This package is the Python port of @paniniapi/rules-engine and shares the
same grammar JSONs and conformance corpus — both runtimes are tested
against the identical fixture set, so parity is enforced, not assumed.
Quick start
from panini import parse_narration
txn = parse_narration("UPI/20261015/DR/826384910234/SWIGGY@okaxis/Cooking/")
# {
# "channel": "UPI", "type": "DEBIT", "ref_no": "826384910234",
# "merchant": "Swiggy", "vpa": "okaxis", "vpa_app": "Google Pay",
# "vpa_bank": "Axis Bank", "category": "Food & Dining", ...
# }
Where the grammars live
The grammar JSONs ship inside the wheel under panini/rules/ — a
pip install works standalone with no repo checkout. In a development
checkout the engine falls back to packages/rules-engine/rules/; the
bundled copy is kept byte-identical and drift is enforced by
tests/test_bundled_rules.py. Resolution order:
PANINI_RULES_DIRenv var orrules_dir=Path(...)argument- bundled
panini/rules/package data - repo path (
packages/rules-engine/rules/) for dev checkouts
Conformance
python3 -m unittest discover tests
runs every fixture in packages/rules-engine/rules/corpus/*.json through
the Python engine and asserts the same expect fields the TypeScript
corpus gate checks — channel, type, ref_no, counterparty, vpa,
merchant/vpa/IFSC enrichment, is_salary, date, category.
Status
Alpha scaffold: narration pipeline (tokenizer → grammar match →
normalize → enrich) is at full corpus parity (76/76) and grammar data
is bundled for PyPI distribution. SMS media routing and
normalizePayload land next.
Metadata
Release files for panini-parser 0.5.0
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 | Actions |
|---|---|---|---|---|
| panini_parser-0.5.0.tar.gz | 73.6 kB | Without provenance | Details for panini_parser-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| panini_parser-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for panini_parser-0.5.0-py3-none-any.whl |
Total release size: 156.7 kB
Release files / panini_parser-0.5.0.tar.gz
| Download URL | panini_parser-0.5.0.tar.gz |
|---|---|
| Size | 73.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e729cd3480cacf628f8eb939013eaaad01798118eec9fdce6aad5b82290b341
|
|
BLAKE2b-256 checksum How to use checksums |
54fed89f6a41d29235d8e7ca8506a9fe602ead8d030f247591ea13d9b0f35a5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / panini_parser-0.5.0-py3-none-any.whl
| Download URL | panini_parser-0.5.0-py3-none-any.whl |
|---|---|
| Size | 83.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b860bcd67608111f48cebbc1b95a843af33d22abc749bb3fb0b8ddd6e495ba54
|
|
BLAKE2b-256 checksum How to use checksums |
f430913b5b4ad88040273d0464657f472461bf5dbde2e8fb7c230820c9ffcaac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for panini-parser 0.5.0
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.