- Added
capture_error(exception, context=None, anonymous_id=None, timestamp=None)for sending exceptions as$errorevents. Extracts message, type, and stack from the exception viatraceback.format_exception. Server adds a stable fingerprint at ingest so the same bug groups across occurrences. - Context properties (extra primitive key-value pairs) are passed through; the reserved key
handledis ignored to keeperror.handledhonest.
Initial release.
init(project_id, api_key, endpoint=None): configure the SDK once at process start.track(name, properties=None, anonymous_id=None, timestamp=None): send a server event. ReturnsTrue; raisesClampHTTPErroron non-2xx,ClampNotInitializedErrorwhen called before init.Money(amount, currency): typed monetary value for revenue, refunds, taxes.- Property values:
str,int,float,bool,Money. Arrays and nested dicts (other than Money) rejected at call time. - Single dependency:
httpx. - Tested on Python 3.9 through 3.13.