Theme switcher

Python SDK

The Python SDK offers a simple, intuitive interface for interacting with the ZipTax API from scripts, data pipelines, and applications. It supports both synchronous and asynchronous usage, includes built-in error handling, and integrates naturally with common Python workflows for data engineering, ETL, and backend services. This SDK is a great fit for teams working in Databricks, AWS Lambda, FastAPI, Django, or other Python-driven environments. Use the code samples here to get started.


The Python SDK is currently offered as a Beta product. Please send your comments and suggestions to support@zip.tax.



Implementation Example

1

Install

Bash
pip install ziptax-sdk

2

Import

Python
from ziptax import ZipTaxClient

3

Configure Client

Python
# With custom configuration client = ZiptaxClient.api_key( "your-api-key-here", timeout=60, # Request timeout in seconds max_retries=5, # Maximum retry attempts retry_delay=2.0, # Base delay between retries )

4

Get Sales Tax by Address

Python
# Get sales tax by address response = client.request.GetSalesTaxByAddress( "200 Spectrum Center Drive, Irvine, CA 92618" )

5

Print the Result

Python
print(f"Address: {response.addressDetail.normalizedAddress}") if response.tax_summaries: for summary in response.tax_summaries: print(f"{summary.summary_name}: {summary.rate * 100:.2f}%") # Always close the client when done client.close()

Full documentation available via our GitHub Project at https://github.com/ZipTax/ziptax-python

Was this section helpful?

What made this section unhelpful for you?

On this page
  • Python SDK