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.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 aranova-tracking 0.1.0
File Size Uploaded Provenance
aranova_tracking-0.1.0.tar.gz 40.0 kB With provenance Details

Built distribution (wheel)

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

Total release size: 80.5 kB

Release files / aranova_tracking-0.1.0.tar.gz

Download URL aranova_tracking-0.1.0.tar.gz
Size 40.0 kB
Tags Source
SHA-256 checksum
How to use checksums
396c3b35969f3e6e9bd257c96cf1fc3146e5963811365f7e8066d3295fe61829
BLAKE2b-256 checksum
How to use checksums
75587d482cbb64c7645469476e2e07b2b564fabaad68ca85df3fc2a2fe8df082
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 Sep 11, 2026.

Transparency log

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

Download URL aranova_tracking-0.1.0-py3-none-any.whl
Size 40.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b0207e38f9980fe265f346aacb129ec778ad55dd5b3945a6168c86047de75652
BLAKE2b-256 checksum
How to use checksums
88110a9b3e2d773faeb9c704e2a7d383b6700f86b43bcda89665906d924510e9
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 Sep 11, 2026.

Transparency log

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

Full provenance

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

Select from 2 files

Attestation for aranova_tracking-0.1.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 Sep 11, 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