{"id":27737,"library":"fathom-python","title":"Fathom Python SDK","description":"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.","status":"active","version":"0.0.37","language":"python","source_language":"en","source_url":"https://github.com/usefathom/fathom-python","tags":["analytics","fathom","sdk"],"install":[{"cmd":"pip install fathom-python","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"HTTP client for API calls","package":"requests","optional":false}],"imports":[{"wrong":"from fathom import FathomClient","symbol":"Fathom","correct":"from fathom_python import Fathom"}],"quickstart":{"code":"from fathom import FathomClient\n\nclient = FathomClient(\n    api_token=os.environ.get('FATHOM_API_TOKEN', ''),\n    site_id=os.environ.get('FATHOM_SITE_ID', '')\n)\n\n# Record a page view\nresponse = client.pageview(\n    url='https://example.com/page',\n    referrer='https://example.com/other'\n)\nprint(response)","lang":"python","description":"Initialize the client with your API token and site ID, then record a page view."},"warnings":[{"fix":"Always provide the full URL (e.g., 'https://example.com/page').","message":"In version 0.0.30 the 'pageview' method signature changed: 'hostname' parameter was removed and 'url' is now required to be a full URL including protocol. Older versions expected just a path.","severity":"breaking","affected_versions":">=0.0.30"},{"fix":"Replace client.event(name=..., url=...) with client.goal(goal_id=..., url=...).","message":"The 'event' method is deprecated since 0.0.35. Use 'goal' instead for recording custom goals.","severity":"deprecated","affected_versions":">=0.0.35"},{"fix":"Use requests.Session with retries or a library like tenacity.","message":"The library does not automatically retry on rate limits or network errors. You must wrap calls in your own retry logic.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.0.37':27 'activ':28 'analyt':9,33 'api':24 'current':25 'event':18 'fathom':1,8,23,34 'goal':20 'interfac':13 'irregular':31 'maintain':29 'offici':4 'page':16 'provid':10 'python':2,5 'record':15 'releas':32 'sdk':3,6,35 'simpl':12 'version':26 'via':21 'view':17","created_at":"2026-05-09T05:51:49.594177+00:00","updated_at":"2026-05-09T05:51:49.594177+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":"https://fathomhq.com","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/fathom-python/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}