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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyziptax-1.2.1.tar.gz | 7.8 kB | Without provenance | Details for pyziptax-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyziptax-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for pyziptax-1.2.1-py3-none-any.whl |
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 |
Security for pyziptax 1.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.