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.

Source Distribution

python-ziptax-1.0.2.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page