Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

API sales tax service

Project description


A client library for ` <>`_. sales tax `API <>`_.

Typical usage::

#!/usr/bin/env python

import ziptax


ztax = ziptax.ZipTax(ZIPTAX_API_KEY)

# Returns data for postalcode: 12345
data = ztax.get(12345)

# Printing the the various fields
print 'Version:', data.version
print 'rCode', data.rCode
for i in data.results:
print i.geoPostalCode
print i.geoCity
print i.geoCounty
print i.geoState
print i.taxSales
print i.taxUse
print i.txbService
print i.txbFreight
print i.stateSalesTax
print i.stateUseTax
print i.citySalesTax
print i.cityUseTax
print i.cityTaxCode
print i.countySalesTax
print i.countyUseTax
print i.countyTaxCode
print i.districtSalesTax
print i.districtUseTax


**Automatic installation**::

pip install ziptax

Zip-tax is listed in PyPI and can be installed with pip or easy_install.

**Manual installation**: Download the latest source from `PyPI

.. parsed-literal::

tar xvzf ziptax-$VERSION.tar.gz
cd ziptax-$VERSION
python build
sudo python install

The Zip-tax source code is `hosted on GitHub <>`_.


* Write tests
* Validate input parameters
* Handle empty results.

Project details

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page