reconify-python is a server-side client for Python 3.10 or newer. It needs a write or
admin key, which Authentication covers.
Install
The distribution installs from PyPI:pip
reconify-python, and the import name is reconify.
Configure a client
A client holds the key and the base URL:RECONIFY_API_KEY and RECONIFY_API_URL when you omit
api_key and base_url. The default base URL is
https://api.reconifyhq.com/v2, and the client appends /v2 when your value omits it.
Both clients hold an HTTP connection pool, so they work as context managers. Outside a
context manager, Reconify needs close() and AsyncReconify needs await aclose().
Send one event
Request fields use the wire format, andamount is a decimal string such as "150.00"
rather than a float:
Each result is
accepted, duplicate, or rejected, and its index matches
the position of the event you sent. accepted means Reconify stored the event.
It does not mean the monitored operation is complete.Field names
Model fields use the wire format, not Python casing conventions applied to something else: sendoccurred_at, entity_id, and type.
amount is a decimal string, such as "150.00". Passing a float fails
model validation. Format money from Decimal, never from float arithmetic.
One name differs between request and response: you send type, and an event
read returns event_type.
Request models reject unknown fields before sending. That turns a typo into an
immediate ReconifyValidationError instead of a rejected event.
Use the async client
AsyncReconify exposes the same modules and method names.