Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rangertaha/zip-tax
- Owner: rangertaha
- License: mit
- Created: 2014-09-06T03:34:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-06T04:43:59.000Z (over 10 years ago)
- Last Synced: 2023-08-24T18:37:42.434Z (over 1 year ago)
- Language: Python
- Homepage: http://www.zip-tax.com
- Size: 129 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.txt
- License: LICENSE
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.districtUseTaxInstallation
============**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 installThe Zip-tax source code is `hosted on GitHub `_.
TODO
====* Write tests
* Validate input parameters
* Handle empty results.