{"id":23057,"library":"customerio-cdp-analytics","title":"Customer.io CDP Analytics Python SDK","description":"Official Python SDK for Customer.io's Data Pipelines (CDP), enabling event tracking, identify calls, and real-time data ingestion. Version 0.0.2 (last updated 2025-03-17) requires Python >=3.6. Designed for server-side and backend integration.","status":"active","version":"0.0.2","language":"python","source_language":"en","source_url":"https://github.com/customerio/cdp-analytics-python","tags":["customerio","cdp","analytics","event-tracking","data-pipelines"],"install":[{"cmd":"pip install customerio-cdp-analytics","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"The correct package module is 'customerio', not the hyphenated PyPI name.","wrong":"from customerio_cdp_analytics import CustomerIOClient","symbol":"CustomerIOClient","correct":"from customerio import CustomerIOClient"}],"quickstart":{"code":"from customerio import CustomerIOClient\n\ncio = CustomerIOClient(\n    site_id=os.environ.get('CIO_SITE_ID', ''),\n    api_key=os.environ.get('CIO_API_KEY', '')\n)\ncio.identify(user_id='12345', attributes={'name': 'Jane'})\ncio.track(user_id='12345', event_name='purchase', data={'item': 'book', 'price': 9.99})","lang":"python","description":"Initialize client with site ID and API key, then call identify() and track()."},"warnings":[{"fix":"Use 'from customerio import CustomerIOClient' instead of 'from customerio_cdp_analytics import ...'.","message":"The PyPI package name is 'customerio-cdp-analytics', but the correct import uses 'customerio' (without suffix). Do not import from 'customerio_cdp_analytics'.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace 'from customerio import CIO' with 'from customerio import CustomerIOClient' and adjust method calls (e.g., 'cio.track()' instead of 'tracker.track()').","message":"This SDK replaces the legacy 'customerio' package (customerio-python). Users of the old library must migrate to this new SDK. Old code using 'from customerio import CIO' or 'tracker.track()' will not work.","severity":"deprecated","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from customerio import CustomerIOClient' instead of any import starting with 'customerio_cdp_analytics'.","cause":"Trying to import from the incorrect module name matching the PyPI package slug.","error":"ModuleNotFoundError: No module named 'customerio_cdp_analytics'"},{"fix":"Uninstall old package and install the new one: pip uninstall customerio && pip install customerio-cdp-analytics. Then use CustomerIOClient.","cause":"The installed package is the old 'customerio' library (pre-2025), not the new CDP SDK. The old library uses different class names.","error":"AttributeError: module 'customerio' has no attribute 'CustomerIOClient'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}