Dissectica CDP Python Client
This is the official Python SDK for the Dissectica Customer Data Platform.
The client is asynchronous, thread-safe, and uses a local SQLite database for resilient event batching, ensuring no data is lost during network failures or application crashes.
Installation
pip install dissectica-cdp-client
Quick start
import time
from dissectica import CDPClient
# 1. Configuration
HOST = "[http://your-producer.example.com](http://your-producer.example.com)"
PROJECT_KEY = "YOUR_PROJECT_KEY"
SCHEMA_LIST = ["user_product_purchase_schema_updated"]
# 2. Initialize the client
# This starts the background flushing thread
client = CDPClient(
host=HOST,
project_key=PROJECT_KEY,
schema_names=SCHEMA_LIST,
flush_interval=10 # Auto-flush every 10 seconds
)
# 3. Track an event
# This is a fast, non-blocking call.
client.track({
"user_id": "user-12345",
"session_id": "session-abc",
"event_type": "PAGE_VIEW",
"page_url": "/product/test"
})
# Give the background thread time to send
time.sleep(15)
# 4. Shut down (sends any remaining events)
client.shutdown()
Metadata
Release files for dissectica-cdp-client 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dissectica_cdp_client-0.1.1.tar.gz | 7.4 kB | Without provenance | Details for dissectica_cdp_client-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dissectica_cdp_client-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for dissectica_cdp_client-0.1.1-py3-none-any.whl |
Total release size: 15.9 kB
Release files / dissectica_cdp_client-0.1.1.tar.gz
| Download URL | dissectica_cdp_client-0.1.1.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
852c18370cc50e01b6e932f79fe2bf588906d7d4184878db9897addf02c49cd7
|
|
BLAKE2b-256 checksum How to use checksums |
b1e7fcd3d450719b78b67e9feaf4f084b9ebf2b060c6d4c9568777e2c5907bf7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / dissectica_cdp_client-0.1.1-py3-none-any.whl
| Download URL | dissectica_cdp_client-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
22feb43167aa2ce8e82c5a47b3a50d8e6abe636428f15f3e10798b25a408758f
|
|
BLAKE2b-256 checksum How to use checksums |
0f1c66ab6e8e8b28a1eb0ffe44467475baccab21fa67b8e04c5e1599ea2d4b30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for dissectica-cdp-client 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.