Registry / crm-productivity / customerio-cdp-analytics

customerio-cdp-analytics

JSON →
library0.0.2pypypi✓ verified 79d ago

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.

pip install customerio-cdp-analytics
INSTALL
IMPORT
SIG · CUSTOMERIO-CDP-ANA
C
customerio-cdp-analytics
crm-productivitypythonv0.0.2
Install
2.3s avg
Import
Disk
20MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.3s · import 0.000s · 23MB
20MB installed
● package 20MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CustomerIOClient
import customerio
from customerio import CustomerIOClient

Initialize client with site ID and API key, then call identify() and track().

from customerio import CustomerIOClient cio = CustomerIOClient( site_id=os.environ.get('CIO_SITE_ID', ''), api_key=os.environ.get('CIO_API_KEY', '') ) cio.identify(user_id='12345', attributes={'name': 'Jane'}) cio.track(user_id='12345', event_name='purchase', data={'item': 'book', 'price': 9.99})
Debug
Known issues
gotchaThe PyPI package name is 'customerio-cdp-analytics', but the correct import uses 'customerio' (without suffix). Do not import from 'customerio_cdp_analytics'.
fix
Use 'from customerio import CustomerIOClient' instead of 'from customerio_cdp_analytics import ...'.
affects: all
deprecatedThis 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.
fix
Replace 'from customerio import CIO' with 'from customerio import CustomerIOClient' and adjust method calls (e.g., 'cio.track()' instead of 'tracker.track()').
affects: >=0.0.1
Upgrade
Version history
0.0.2latest on PyPI · released Aug 3, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
32
OpenAI (training)
1
Resources
customerio-cdp-analytics — pip install customerio-cdp-analytics · libregistry