india-gst-kit
Small, dependency-free Python tools for Indian GST:
- GSTIN validation: format, state code, check digit, and a match against the customer's state
- Tax split: CGST + SGST (same state) or IGST (other state), for GST-inclusive or exclusive amounts
- Sales register: one row per invoice per GST rate (the GSTR-1 shape), B2B/B2C split, HSN summary
- Checks for your CA: missing HSN codes, GSTIN/state mismatches, unpaid invoices, advances before invoice
- Excel workbook (optional) your CA can open straight away
Works with plain dicts, so it fits any database or framework (Django, FastAPI, Flask, scripts).
Install
pip install india-gst-kit # core, no dependencies
pip install "india-gst-kit[excel]" # + Excel export
30-second example
from india_gst import validate, split, build_register
from india_gst.excel import to_xlsx
validate("27AAAAA0000A1Z2", state="Maharashtra") # -> "27AAAAA0000A1Z2"
split(1180, 18, seller_state="Gujarat", place_of_supply="Gujarat")
# TaxSplit(taxable=1000.0, cgst=90.0, sgst=90.0, igst=0.0, total=1180.0)
invoices = [{
"invoice_no": "INV-1", "invoice_date": "2026-11-02",
"customer": "Sample Buyer LLP", "gstin": "27AAAAA0000A1Z2", "place_of_supply": "Maharashtra",
"lines": [{"name": "Wardrobe", "hsn": "9403", "qty": 1, "gst_pct": 18, "amount": 1180}],
}]
reg = build_register(invoices, seller_state="Gujarat", period=("2026-11-01", "2026-11-30"))
open("gst-nov.xlsx", "wb").write(to_xlsx(reg, seller_name="Your Company"))
Roadmap
- 0.2: Tally Prime XML export (sales vouchers and receipts)
- 0.3: GSTR-1 JSON for the GST portal offline tool
- Credit and debit notes
Ideas and pull requests are welcome; see CONTRIBUTING.md.
Not tax advice
This library helps prepare data. Always confirm filings with your Chartered Accountant.
Licence
MIT. Built and used in production by Hexaspace.
Metadata
Release files for india-gst-kit 0.1.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 |
|---|---|---|---|---|
| india_gst_kit-0.1.0.tar.gz | 9.3 kB | With provenance | Details for india_gst_kit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| india_gst_kit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for india_gst_kit-0.1.0-py3-none-any.whl |
Total release size: 19.4 kB
Release files / india_gst_kit-0.1.0.tar.gz
| Download URL | india_gst_kit-0.1.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3af65e33aaabc61560b7a4f29f8775628c114f8b90283023fa3500e0cce28867
|
|
BLAKE2b-256 checksum How to use checksums |
665ab1c429007d7a7aae34bd8bd755371bea834356f14f23085367a32296af23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logRelease files / india_gst_kit-0.1.0-py3-none-any.whl
| Download URL | india_gst_kit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f9f0a64fa4ad140904954657ac6a9fd7865deed081a4f058672862852d28eaf
|
|
BLAKE2b-256 checksum How to use checksums |
1617beb9b4ec63e2c41d89ef2d20db4bd607484dd446859cc6c1443873d6c50f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logSecurity for india-gst-kit 0.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for india_gst_kit-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.
Transparency logA 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.