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.2.0.tar.gz (5.1 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.2.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gstaccelerator-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f44cc7e806c47e362b2c24ee8de28c22399be45e37bb411da2165a56cc70f86c
MD5 14808f3909a264e8a92496cffc65827f
BLAKE2b-256 073485427fa2e47191ce2a176689f69ace18b24a56651a198d040c03a4a1061c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gstaccelerator-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed7f9df0d6c2cc5a693a7a6d62b8ccc8304b1b72f67f91ce2cf39b0ce8367230
MD5 53abf71a3d884aac7343c0dfd72e5446
BLAKE2b-256 01d97b36192921376f8f091a11dc1ced953c500905266c961e86e5bac2be93ba

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