Skip to main content

Latest Version License

Codeship Status for albertyw/pyziptax Dependency Status Code Climate

Python API for Zip-Tax.com

Installation

pip install pyziptax

Usage Example

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.

Development

Pull requests welcome!

# Set up repository for development
pip install tox
python setup.py install

# Run tests
tox

To update PyPI:

pip install twine
python setup.py sdist bdist_wheel
twine upload dist/*

Metadata

Release files for pyziptax 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyziptax 1.2.1
File Size Uploaded
pyziptax-1.2.1.tar.gz 7.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyziptax 1.2.1
File Interpreter ABI Platform
pyziptax-1.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / pyziptax-1.2.1.tar.gz

Download URL pyziptax-1.2.1.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9763aee53871469461636cbb00cf906a91f42d25c6323497b60f0e6595054e17
BLAKE2b-256 checksum
How to use checksums
2d17d35370d8d27cbcd60eee68381e7cba3e640379bdd127239ac4c8f56f47fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pyziptax-1.2.1-py3-none-any.whl

Download URL pyziptax-1.2.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c44b2dbc06b0d1164a6a5738b6da434cdbfe6e90c92676dee1aac16212ab2291
BLAKE2b-256 checksum
How to use checksums
688f0c47fcbb1dd0fa0942485c6631c755416f7ae2b4a8b15a22350bf09547c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.2.1 This release

2 release files

1.2

2 release files

1.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page