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.10.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.10.0
File Size Uploaded Provenance
aranova_tracking-0.10.0.tar.gz 53.8 kB With provenance Details

Built distribution (wheel)

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

Total release size: 108.3 kB

Release files / aranova_tracking-0.10.0.tar.gz

Download URL aranova_tracking-0.10.0.tar.gz
Size 53.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b1af5df1551ca7a892b82f591503d057e5c1a5ce3ef11509f50809f482252316
BLAKE2b-256 checksum
How to use checksums
4c3f7316734b603e75b7c4a38a60ea0500fca6a645ed58e96a1e68983d7901e8
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 7, 2026.

Transparency log

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

Download URL aranova_tracking-0.10.0-py3-none-any.whl
Size 54.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b9c9b4e30f6561002e262a2c7608ba35eece289aa0fc091f27e854558c7cf48
BLAKE2b-256 checksum
How to use checksums
83af30b5d4d6d5c1c55c5d4d232145d568a8c33c08ca729b7957563e60305190
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 7, 2026.

Transparency log

Security for aranova-tracking 0.10.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aranova_tracking-0.10.0.tar.gz

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 7, 2026.

Transparency log

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.

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