Skip to main content

Python API for accessing sales tax information from Zip-Tax.com

Project description

pyziptax
========

Python API for Zip-Tax.com

Installation
------------
`pip install pyziptax`

Usage Example
-------------
```python
import pyziptax

# Single Tax Rate
pyziptax.api_key = ZIPTAX_KEY
rate = pyziptax.get_rate('10001', 'New York', 'NY')
# import decimal
# rate == decimal.Decimal('8.875')

# Multiple Tax Rates
pyziptax.api_key = ZIPTAX_KEY
rate = pyziptax.get_rate('94304', multiple_rates=True)
# rate == {u'LOCKHEED': Decimal('8.250'), u'PALO ALTO': Decimal('8.750')}
```

ZipTaxClient Parameters
-----------------------
- `ZIPTAX_KEY` - API key you received when you registered on Zip-Tax.com
- `zip_code` - The only required parameter
- `city` - Optional
- `state` - Optional
- `multiple_rates` - If `True`, returns a dictionary of city names to tax rates;
If `False`, returns just the tax rate, but raises a
ZipTaxFailure if multiple rates were returned.

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

pyziptax-1.0.tar.gz (6.8 kB view details)

Uploaded Source

File details

Details for the file pyziptax-1.0.tar.gz.

File metadata

  • Download URL: pyziptax-1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyziptax-1.0.tar.gz
Algorithm Hash digest
SHA256 7f646787ed1089e06061d64660e6f035e5eebe031d7efb7cd3d01af45b49d71a
MD5 36e80ce5341303c1c84467e59b30b004
BLAKE2b-256 9138414f7bc7461ebdd23b7dad9ab89f7801331af5c67571210fff24ef6a5c47

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