For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
SupportLog InSign Up
GuidesAPI Reference
GuidesAPI Reference
    • Welcome to Ziptax
      • Quickstart
      • How to create an API key
      • How to find a TIC
      • Overview
      • Go SDK
      • Python SDK
      • Node SDK
Logo
SupportLog InSign Up
On this page
  • Project resources
  • Implementation example
  • Full documentation
SDKs

Python SDK

Official Python SDK for the Ziptax API
Was this page helpful?
Previous

Node SDK

Official Node.js SDK for the Ziptax API
Next
Built with

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

GitHub Repository
PyPI Package

Implementation example

1

Install

$pip install ziptax-sdk
2

Import

1from ziptax import ZiptaxClient
3

Configure the client

1client = ZiptaxClient.api_key(
2 "your-api-key-here",
3 timeout=60, # Request timeout in seconds
4 max_retries=5, # Maximum retry attempts
5 retry_delay=2.0, # Base delay between retries
6)
4

Get sales tax by address

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

Print the result

1print(f"Address: {response.address_detail.normalized_address}")
2if response.tax_summaries:
3 for summary in response.tax_summaries:
4 print(f"{summary.summary_name}: {summary.rate * 100:.2f}%")
5
6# Always close the client when done
7client.close()

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.