Skip to main content

Python client for the GST Accelerator API — India GST HSN/SAC lookup, GSTIN validation, condition resolver

Project description

GST Accelerator Python Client

Python client for the GST Accelerator API — India GST HSN/SAC lookup, GSTIN validation, and condition resolver.

Installation

pip install gstaccelerator

Quickstart

from gstaccelerator import GSTAccelerator

gst = GSTAccelerator(api_key="your_api_key_here")
result = gst.hsn.get("84151010")
print(result)

Method Reference

Resource Method Description
gst.hsn get(code: str) HSN lookup
gst.sac get(code: str) SAC lookup
gst lookup(description: str, ...) Description search
gst autocomplete(query: str) Autocomplete
gst bulk(descriptions: list[str]) Bulk lookup
gst.gstin validate(gstin: str) GSTIN validation
gst.gstin state(gstin: str) Get state info for GSTIN
gst.gstin pan(gstin: str) Get PAN info for GSTIN
gst health() Health check
gst meta() Meta data

Exception Handling

from gstaccelerator import GSTAccelerator, RateLimitError, AuthenticationError

gst = GSTAccelerator(api_key="your_api_key_here")

try:
    result = gst.hsn.get("84151010")
except AuthenticationError as e:
    print(f"Auth failed: {e.message}")
except RateLimitError as e:
    print(f"Rate limited: {e.message}")

Full Documentation

For full documentation, visit: https://gstaccelerator.in/docs

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

gstaccelerator-0.1.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gstaccelerator-0.1.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file gstaccelerator-0.1.0.tar.gz.

File metadata

  • Download URL: gstaccelerator-0.1.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gstaccelerator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1391b775997d6ae8cf4332933b25f6702d29ba723a5a2bcc59c4c1cd79795f88
MD5 a4e2804cdca269b20d21c3c5c98c6697
BLAKE2b-256 5fb89cd4f122ced588e0d20709397a629e7317dafe292667144a0c72ca56e611

See more details on using hashes here.

File details

Details for the file gstaccelerator-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gstaccelerator-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for gstaccelerator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6e48f18f18db03b906388d7524fa15945ed1e57c346d797fdb7f1a7b3d133993
MD5 8c6ed643ad2096da54ec141e6c98fe0a
BLAKE2b-256 c73f7f52d51f78d12c525943ceff75e3b6f076961f5e811f165f644812a17ad5

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