Skip to navigation

Python SDK

Official Python SDK for the Ziptax API
View as Markdown
Available onAll plans

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.

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

Project resources

Implementation example

1

Install

pip install ziptax-sdk
2

Import

from ziptax import ZiptaxClient
3

Configure the client

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

response = client.request.GetSalesTaxByAddress(
"200 Spectrum Center Drive, Irvine, CA 92618"
)

Full documentation

Full reference documentation, including async usage, all request options, response types, and helper functions, is available in the GitHub repository and on PyPI.