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.1.tar.gz (5.8 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.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gstaccelerator-0.3.1.tar.gz
  • Upload date:
  • Size: 5.8 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.1.tar.gz
Algorithm Hash digest
SHA256 7c89d4020fc9aa6119f15427c57702821fa0252a131332f575edce228ae244b3
MD5 0ee78f27bd2b99508df14b3a4a75901a
BLAKE2b-256 8e61a467c897d1bb3f3c555eec5d61330e315f21101ab67d1f8092dcdea0cffa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gstaccelerator-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 7.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2af08020404c3ba6cfa0fdb42c963783cea55ae4d38938ef91acbdc1726141f2
MD5 c8203ee764c31d631750a8ed0f62aac1
BLAKE2b-256 fbba8602a938e0ee716215569c1be2a2b5b2cede7ef5a0d7c1f5fd68f486aa30

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