Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
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 History

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
python-ziptax-1.0.2.tar.gz (2.9 kB) Copy SHA256 Checksum SHA256 Source Mar 28, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting