taxjar
Sales tax API client for Python
What it is and what it does
TaxJar is an official Python wrapper around the TaxJar Sales Tax API Version 2. It maps API responses to Python objects and provides methods for calculating sales tax on orders, managing transaction records (orders and refunds), handling customer data, validating addresses, and retrieving tax rates by jurisdiction. The package depends on requests for HTTP communication and jsonobject for mapping JSON responses to Python objects.
You instantiate a client with your TaxJar API key and call methods like tax_for_order() to compute tax liability, list_orders() to retrieve past transactions, or rates_for_location() to look up tax rates by postal code. The library handles authentication and request formatting automatically, returning structured Python objects rather than raw JSON.
Use it for:
- Calculate sales tax due on an e-commerce order given origin and destination addresses and line items
- Retrieve and manage order and refund transaction records stored in TaxJar for compliance reporting
- Look up applicable tax rates for a given location to display at checkout or in tax estimation tools
- Validate customer addresses and VAT numbers before processing transactions
- Sync customer and transaction data with TaxJar for centralized tax compliance tracking
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for the TaxJar Sales Tax API, providing methods to calculate sales tax, manage orders and refunds, validate addresses, and retrieve tax rates and categories.
Yes, if you need to integrate with TaxJar's API and accept its aging maintenance status. The package is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, the last commit was 487 days ago—verify that it still works reliably with current TaxJar API endpoints before relying on it in production. If active maintenance is a priority, check whether TaxJar or the community have released a more recent fork.
Install
taxjar on PyPI
pip
pip install taxjaruv
uv add taxjarpoetry
poetry add taxjarInstalling taxjar
Before you install
Low install friction with only two runtime dependencies (requests and jsonobject). Maintenance status is aging—last commit was 487 days ago, though the repository remains active and unarchived.
License in practice
Licensed under MIT (permissive), meaning you can use, modify, and distribute the package freely with minimal restrictions.
Quickstart
pip install taxjar
import taxjar
client = taxjar.Client(api_key='your_api_key')
tax = client.tax_for_order({
'from_country': 'US',
'from_zip': '94025',
'to_country': 'US',
'to_zip': '94303',
'amount': 267.9
})
Requires a TaxJar API key obtained from https://app.taxjar.com/api_sign_up/plus/
Verify before relying
- Whether the package still works reliably with current TaxJar API endpoints given the aging maintenance status
- Current Python version support—classifiers list Python 2.6 and 2.7, but requires_python is unspecified
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, jsonobject |
| Maintenance | aging — 487 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 133,535/month — #11,507 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: taxjar-2.0.1-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
AvalaraPython client library for Avalara's AvaTax REST…
unclear · top 15,000 on PyPI
vat-utilsProvides Python utilities for VAT (Value Added…
unclear · top 15,000 on PyPI
python-quickbooksA Python library for querying, creating,…
permissive · top 5,000 on PyPI
chargebeeOfficial Python client library for integrating…
unclear · top 5,000 on PyPI
mollie-api-pythonPython client library for the Mollie payment…
permissive · top 15,000 on PyPI
py-moneyRepresents monetary amounts with currency-aware…
permissive · top 15,000 on PyPI
numpy-financialProvides elementary financial functions (IRR,…
permissive · top 5,000 on PyPI
WooCommerceA Python wrapper for the WooCommerce REST API…
permissive · top 15,000 on PyPI
pyobjc-framework-StoreKitProvides Python bindings to Apple's StoreKit…
permissive · top 15,000 on PyPI
easypostPython client library for the EasyPost shipping…
permissive · top 15,000 on PyPI