Skip to main content

Official Python SDK for the TaxFormatter API — parse crypto CSVs and bank statement PDFs

Reason this release was yanked:

renamed to taxformatter

Project description

taxformatter

Official Python SDK for the TaxFormatter API — parse crypto exchange CSVs and bank statement PDFs programmatically.

Install

pip install taxformatter-sdk

Quick Start

from taxformatter import TaxFormatter

tf = TaxFormatter("tf_live_xxx")

# Parse a file by path
result = tf.parse("./coinbase_2025.csv")

# Parse bytes with options
result = tf.parse(raw_bytes, filename="coinbase.csv", output_format="turbotax")

# List supported sources
sources = tf.list_sources()

# Check usage
usage = tf.get_usage()

Configuration

tf = TaxFormatter(
    "tf_live_xxx",
    base_url="https://api.taxformatter.com",  # default
    timeout=30,    # seconds, default
    max_retries=3, # auto-retry on 429, default
)

Error Handling

from taxformatter import TaxFormatter, AuthenticationError, RateLimitError, ParseError

try:
    result = tf.parse("./file.csv")
except AuthenticationError:
    # 401 — invalid or missing API key
    pass
except RateLimitError as e:
    # 429 — rate limited (auto-retried 3 times before raising)
    print(e.retry_after)
except ParseError as e:
    # 422 — file could not be parsed
    print(e.suggestion)

API

tf.parse(input, filename=None, output_format=None, exchange=None, bank=None)

Parse a crypto CSV or bank statement PDF.

  • input: File path (str/Path) or bytes
  • filename: Required when passing bytes
  • output_format: "koinly", "turbotax", "coinledger", or "zenledger"
  • exchange: Force exchange detection (e.g., "coinbase")
  • bank: Force bank detection (e.g., "chase")

tf.list_sources()

List all supported crypto exchanges and banks.

tf.get_usage()

Get current month's API usage.

tf.health()

Check API health status.

License

MIT

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

taxformatter_sdk-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taxformatter_sdk-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file taxformatter_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: taxformatter_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for taxformatter_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a2bd7dcfe7dd5e7ea3bfad0ce1c628bcb2211ad28302ef4af734f49dcb44017f
MD5 f8d116c7119a734fbf42984b7528bdb7
BLAKE2b-256 90321014fc8417a66282433c2a8405ffd63d3d560209dcebc26fd205fb537b40

See more details on using hashes here.

Provenance

The following attestation bundles were made for taxformatter_sdk-0.1.0.tar.gz:

Publisher: publish-pypi.yml on Sean-Bravo/trw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file taxformatter_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for taxformatter_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e74ed1a4a00414f4f2d4a0adb62a8ead1bf9a6d23d832fcf6bfb838db3355442
MD5 1d390b6caf3d4a36dba1bf1dce59a49b
BLAKE2b-256 ff915ac4023ad897efb0f44f058520492686961773262c9c6406ce33023dbdee

See more details on using hashes here.

Provenance

The following attestation bundles were made for taxformatter_sdk-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Sean-Bravo/trw

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page