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.3.0.tar.gz (5.7 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.3.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gstaccelerator-0.3.0.tar.gz
Algorithm Hash digest
SHA256 35fd06bd53fd62cf6b9560057b2687fa056552b3da68c7794ef8efd0d1572fc1
MD5 d2c0d568ec32a393462057b1310d8304
BLAKE2b-256 33f6ca962a6bdc7d46ebf65cf04cf25c6b2766e28074dcdaa8833f42a23e4d88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gstaccelerator-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3b3122ed6241f15150f61d4ea8a3ea09e60ad60f8946123da9e27a8256f3fdb
MD5 c662b88987d5b6eb9dfecf6fc6e41092
BLAKE2b-256 c5d2827875e7d5404b52977a653aca5ac9ee959558640c8346e60210bf4a5c0e

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