Skip to main content

Reconify Python SDK

Typed synchronous and asynchronous clients for the public Reconify v1 API.

Installation and quickstart

pip install reconify-python
from reconify import Reconify

with Reconify(api_key="rk_...") as client:
    events = client.events.list_events(limit=25)
    for event in events.events:
        print(event.id, event.status)

The API key may also come from RECONIFY_API_KEY. The default endpoint is https://api.reconifyhq.com/v1. RECONIFY_API_URL or base_url can select a staging or self-hosted endpoint, and URLs with or without /v1 are accepted.

Public resources

The client exposes metadata, events, ingestion, issues, and organization. The current public contract contains exactly 13 operations. Python methods use snake_case names and typed Pydantic v2 models from reconify.models.

Sync and async clients provide cursor iterators:

from reconify import AsyncReconify

async with AsyncReconify() as client:
    async for event in client.iter_events(limit=100):
        print(event.id)

Every operation supports raw=True for RawResponse and per-request timeout through the timeout keyword. API errors expose status, detail, code, validation details, response headers, and request ID without including keys or request bodies. Safe methods retry bounded 429, 503, and transport failures by default; unsafe retries require RetryConfig(retry_unsafe_methods=True).

Contract synchronization

python scripts/fetch_contract.py
python scripts/fetch_contract.py --latest
pytest -q tests/test_openapi_coverage.py

The default source is the public manifest at https://docs.reconifyhq.com/openapi/manifest.json. For local SaaS changes, set RECONIFY_OPENAPI_SPEC to an explicit OpenAPI JSON file. The SDK never depends on another checkout or an absolute workspace path.

Migration to 1.0.0

Version 1.0.0 targets the current monitoring and issue-investigation API. The former ledger, wallet, setup, search, alert, and reconciliation methods are removed because they are not part of the public contract. See UPGRADING.md.

Build and release

ruff check .
mypy src
pytest -q
python -m build

The release workflow publishes the built wheel to PyPI after a GitHub release. Additive contract changes require a minor SDK release; SDK fixes require a patch release; breaking public API changes require a new API version and SDK major release.

Release files for reconify-python 1.0.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 reconify-python 1.0.0
File Size Uploaded
reconify_python-1.0.0.tar.gz 58.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reconify-python 1.0.0
File Interpreter ABI Platform
reconify_python-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 74.8 kB

Release files / reconify_python-1.0.0.tar.gz

Download URL reconify_python-1.0.0.tar.gz
Size 58.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6caaeb31a72360a823ee50fcaedc748d51737d5d91ddb1943c1ba64b16c5a7ce
BLAKE2b-256 checksum
How to use checksums
f4f63f6e0747fb7e510f16218d75d84b1499caba779212c0b691c95a28638a78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / reconify_python-1.0.0-py3-none-any.whl

Download URL reconify_python-1.0.0-py3-none-any.whl
Size 15.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
311aef0cb6e5cf320ccedf9a5a7e4fb76569b936f3d94aff6ff717d1194f2b73
BLAKE2b-256 checksum
How to use checksums
cafe4ec3c735eec0dfbb7ece1a0dc1c82ce137f8ab0e75fdc2c91ab0aaabae2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

This release

1.0.0 This release

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