Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rangertaha/zip-tax

A client library for Zip-Tax.com sales tax API
https://github.com/rangertaha/zip-tax

Last synced: about 1 month ago
JSON representation

A client library for Zip-Tax.com sales tax API

Awesome Lists containing this project

README

        

===========
Zip-tax
===========

A client library for `Zip-Tax.com `_. sales tax `API `_.

Typical usage::

#!/usr/bin/env python

import ziptax

ZIPTAX_API_KEY = 'XXXXXXXX'

ztax = ziptax.ZipTax(ZIPTAX_API_KEY)

# Returns data for postalcode: 12345
data = ztax.get(12345)

# Printing the the various fields
print 'Version:', data.version
print 'rCode', data.rCode
for i in data.results:
print i.geoPostalCode
print i.geoCity
print i.geoCounty
print i.geoState
print i.taxSales
print i.taxUse
print i.txbService
print i.txbFreight
print i.stateSalesTax
print i.stateUseTax
print i.citySalesTax
print i.cityUseTax
print i.cityTaxCode
print i.countySalesTax
print i.countyUseTax
print i.countyTaxCode
print i.districtSalesTax
print i.districtUseTax

Installation
============

**Automatic installation**::

pip install ziptax

Zip-tax is listed in PyPI and can be installed with pip or easy_install.

**Manual installation**: Download the latest source from `PyPI
`_.

.. parsed-literal::

tar xvzf zip-tax-$VERSION.tar.gz
cd ziptax-$VERSION
python setup.py build
sudo python setup.py install

The Zip-tax source code is `hosted on GitHub `_.

TODO
====

* Write tests
* Validate input parameters
* Handle empty results.