Skip to main content
Help us improve Python packaging – donate today!

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

Release history Release notifications

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
python-ziptax-1.0.2.tar.gz (2.9 kB) Copy SHA256 hash SHA256 Source None Mar 28, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page