Skip to main content

taxlocus (Python)

Thin Python client for the TaxLocus REST API.

Install

pip install taxlocus

Usage

from taxlocus import TaxLocus

client = TaxLocus(api_key="tlx_live_...")
rate = client.lookup_rate("general", lat=37.7749, lng=-122.4194)
print(rate["combined_rate"])

Methods

All methods POST to the API and return the parsed JSON response as a dict. A non-2xx response raises TaxLocusError (with .code, .message, .status_code).

  • lookup_rate(product_category, *, lat, lng, address, sale_amount, as_of) — /v1/rate/lookup
  • calculate_cart(line_items, *, lat, lng, address, as_of) — /v1/cart/calculate
  • check_nexus(state, ytd_sales, ytd_transactions, *, include_marketplace_sales) — /v1/nexus/check
  • filing_calendar(state, *, annual_revenue, registration_date) — /v1/filing/calendar
  • taxability_check(state, *, product_category, product_categories) — /v1/taxability/check

Pass either lat + lng or an address dict (line1, city, state, postal_code) to the location-based methods.

The client is also a context manager:

with TaxLocus(api_key="tlx_live_...") as client:
    result = client.check_nexus("CA", ytd_sales=600_000, ytd_transactions=320)

Metadata

Release files for taxlocus 0.1.0

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

Source distribution (sdist)

Source distribution for taxlocus 0.1.0
File Size Uploaded Provenance
taxlocus-0.1.0.tar.gz 5.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.5 kB

Release files / taxlocus-0.1.0.tar.gz

Download URL taxlocus-0.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b30b1cf1b0993aee5bed7805d87aea7636cb1e04e41ff96b0948b2eacbe7d018
BLAKE2b-256 checksum
How to use checksums
f7191201e1de4a9ca45f5371a26c53c5202c2fc26251de10e335f8c5c2732f27
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / taxlocus-0.1.0-py3-none-any.whl

Download URL taxlocus-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd0f62d41561df14f308d9bf705f7be4f2cb060bf268905b8f40f7e08b17e4a6
BLAKE2b-256 checksum
How to use checksums
412a9c902b9557d7a6e70c7cafb8bbca0fd96e0fb3af07d9ff5448c9b3c77fdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for taxlocus 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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