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 details)

Uploaded Source

File details

Details for the file python-ziptax-1.0.2.tar.gz.

File metadata

  • Download URL: python-ziptax-1.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for python-ziptax-1.0.2.tar.gz
Algorithm Hash digest
SHA256 409778bcc1c67bbe6a06b639214bc61758e91f74b673008835746d4c77de15e3
MD5 a75926a95eb02c8727ebbcc89d167493
BLAKE2b-256 3cde71ae3cb780d767262f9bbe26447417626e27542a51ef0193433d54c74980

See more details on using hashes here.

Supported by

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