Skip to main content

aranova-tracking

Typed Python client for the Aranova tracking API — record sales, read the ledger and customer roster, manage calendar bookings, and fetch a business's tracking config from your own backend.

pip install aranova-tracking

Quick start

import os
from aranova_tracking import AranovaTracking
from aranova_tracking.models import SaleCreateSchema

with AranovaTracking(os.environ["ARANOVA_TRACKING_SECRET_KEY"]) as aranova:
    sale = aranova.tracking_sales.record_sale(
        SaleCreateSchema(
            external_id="order-1042",      # your id — makes this call idempotent
            currency="CAD",
            amount_total_cents=12_000,     # minor units: $120.00
            occurred_at="2026-09-09T14:03:00Z",
            customer_phone="+14165550123",
        )
    )
    print(sale.id)

Async is the same surface:

from aranova_tracking import AsyncAranovaTracking

async with AsyncAranovaTracking(secret_key) as aranova:
    page = await aranova.tracking_sales.query_sales(...)

Your API key

Use a secret key (aranv_sk_…), issued per business in the Aranova dashboard, and keep it in server-side env only. A public key (aranv_pk_…) authenticates but may only create sales — every read returns 403. Never ship either key in a browser bundle.

Idempotency

external_id is your dedup handle. Send the same one twice and the second call returns the existing sale with HTTP 200 instead of creating a duplicate (a fresh create is 201). Omit it and there is no dedup at all — a retried request writes a second sale.

Errors

Every failure raises a subclass of AranovaAPIError carrying a stable code, the request_id to quote when reporting a problem, and any extra context:

from aranova_tracking import AranovaAPIError, RateLimitError, ValidationError

try:
    aranova.tracking_sales.record_sale(payload)
except ValidationError as exc:
    print(exc.errors)          # per-field failures
except RateLimitError as exc:
    print(exc.retry_after)     # seconds, from the server
except AranovaAPIError as exc:
    print(exc.code, exc.request_id)

Branch on exc.code, never on the message text — prose is free to change, codes are contract. Transport failures, 429s and 5xx are retried automatically with exponential backoff; 4xx you must fix are raised immediately.

Models are real Pydantic

aranova_tracking.models is generated from the API's own schemas, so the models are genuine pydantic.BaseModel classes — usable directly as a FastAPI response_model, and they validate. They also tolerate unknown fields, so a client pinned to an older release keeps working when the API adds one.

Versioning

Semantic versioning on the wire contract: a new optional field is a patch, a new endpoint a minor, and anything removed or retyped a major. Pin a major (aranova-tracking = "^1.0") and upgrade on your own schedule.


Generated from apps/api/openapi.json; models.py and _endpoints.py are build artifacts — see docs/runbooks/python-sdk.md in the monorepo.

Metadata

Release files for aranova-tracking 0.8.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 aranova-tracking 0.8.0
File Size Uploaded
aranova_tracking-0.8.0.tar.gz 50.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aranova-tracking 0.8.0
File Interpreter ABI Platform
aranova_tracking-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 101.0 kB

Release files / aranova_tracking-0.8.0.tar.gz

Download URL aranova_tracking-0.8.0.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b45f910f0894da1ae931f0b999889f268a7d0a9009246fb49316704b5299dd80
BLAKE2b-256 checksum
How to use checksums
874d597473fe26e014265d82925fff5480618de7a00524e723f79f4eaa15dbb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / aranova_tracking-0.8.0-py3-none-any.whl

Download URL aranova_tracking-0.8.0-py3-none-any.whl
Size 50.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
427b900debb4074909eb6fbe20502559ead975f06c566472762baf8be42b09a5
BLAKE2b-256 checksum
How to use checksums
a941901274586d25c6c4a8831e602b8b3ef587a7e48fb0de56512279732a2813
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release history Release notifications | RSS feed

0.12.0

2 release files

0.9.0

2 release files

This release

0.8.0 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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