Skip to main content

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("27AAPFU0939F1ZV", state="Maharashtra")   # -> "27AAPFU0939F1ZV"
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": "27AAPFU0939F1ZV", "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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for india-gst-kit 0.1.1
File Size Uploaded Provenance Actions
india_gst_kit-0.1.1.tar.gz 9.7 kB With provenance Details for india_gst_kit-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for india-gst-kit 0.1.1
File Interpreter ABI Platform Actions
india_gst_kit-0.1.1-py3-none-any.whl Python 3 none any Details for india_gst_kit-0.1.1-py3-none-any.whl

Total release size: 20.1 kB

Release files / india_gst_kit-0.1.1.tar.gz

Download URL india_gst_kit-0.1.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5573d00f75385793300dcbecfcbb4807d219b05896456dc97dc40ceec721d1ad
BLAKE2b-256 checksum
How to use checksums
fff1ef4b17af8cbdbc4897b5849b129603e1fd085e4ba61e245118311e2207d0
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 log

Release files / india_gst_kit-0.1.1-py3-none-any.whl

Download URL india_gst_kit-0.1.1-py3-none-any.whl
Size 10.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
75f45bd6258a527f837c22b792397ad6cf60e6f46736fb15f6983a6db1fdd519
BLAKE2b-256 checksum
How to use checksums
31058500856807572b444327dfa959086ab1eb406878b9cc30ebfe79dc5bd506
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 log

Security for india-gst-kit 0.1.1

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.

Select from 2 files

Attestation for india_gst_kit-0.1.1.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 log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page