Skip to main content

Library for zip-tax.com API service

Project description

Python Module for Integrating into the Zip-Tax.com API

Install

PIP

pip install python-ziptax

Python

git clone https://github.com:xstudios/zip-tax.git
cd zip-tax
python setup.py install

Configuration

The module will attempt to load a settings module and will look for the following settings.

  • ZIPTAX_API_KEY - Your Zip-Tax.com API Key
  • ZIPTAX_API_URL - URL Location to call for API

Usage

Tax rates are returned based on area codes.

# Getting tax rate for zipcode
from ziptax import get_tax_rate
print get_tax_rate(32725)
# 0.064999997615814

Errors

On error a Ziptax_Failure Exception will be raised.

# Catch Errors
from ziptax import get_tax_rate, Ziptax_Failure
try:
    tax_rate = get_tax_rate(23452)
except Ziptax_Failure, e:
    print "FAILUED DUE TO %s" % e

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-ziptax, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size python-ziptax-1.0.2.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

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