Official Python SDK for Fathom Analytics, providing a simple interface to record page views, events, and goals via the Fathom API. Current version 0.0.37, actively maintained with irregular releases.
pip install fathom-pythonNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize the client with your API token and site ID, then record a page view.
Always provide the full URL (e.g., 'https://example.com/page').
Replace client.event(name=..., url=...) with client.goal(goal_id=..., url=...).
Use requests.Session with retries or a library like tenacity.