-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
The Convert Python SDK is published to PyPI as convert-python-sdk and imports
as convert_sdk.
| Requirement | Version |
|---|---|
| Python | >=3.9 |
httpx (default transport) |
>=0.28,<0.29 |
| Operating system | Any platform CPython runs on (Linux, macOS, Windows) |
The SDK has no Django, Flask, FastAPI, or JavaScript runtime dependency in its core distribution — it works in any standard Python process (script, WSGI/ASGI request handler, Lambda, Celery worker, CLI).
pip install convert-python-sdkuv add convert-python-sdkpoetry add convert-python-sdkFor reproducible builds, pin to a compatible-release range in your dependency file:
# pyproject.toml
[project]
dependencies = [
"convert-python-sdk>=0.1,<0.2",
]The SDK follows Semantic Versioning — 0.x releases may
contain breaking changes between minor versions; 1.x and beyond hold
backwards-compatibility within each major.
The public API is exposed at the top-level convert_sdk package:
from convert_sdk import (
Core,
SDKConfig,
TrackingConfig,
TransportConfig,
Context,
# result types
ExperienceResult,
FeatureResult,
FeatureStatus,
ConversionResult,
ConversionEvent,
TrackingFlushResult,
# diagnostic types
ExperienceDiagnostic,
FeatureDiagnostic,
GoalDiagnostic,
EntityDiagnostic,
# lifecycle events
LifecycleEvent,
LifecycleEventPayload,
# ports (Protocols)
Transport,
DataStore,
EventBus,
# default adapters
InMemoryDataStore,
# errors
ConvertSDKError,
InitializationError,
ConfigValidationError,
ConfigLoadError,
TrackingError,
GoalNotFoundError,
ConversionDataError,
TrackingDeliveryError,
)RefreshConfig lives at convert_sdk.config.RefreshConfig and RefresherStatus
at convert_sdk.RefresherStatus. See Type Hints for the full type
reference.
python -c "import convert_sdk; print(convert_sdk.__version__)"Or run the smoke-test example from the python-sdk repository:
python examples/direct_config.pyPre-release builds (alpha, beta, rc) are tagged on PyPI. To install the latest pre-release:
pip install --pre convert-python-sdkIf you cannot use httpx (corporate proxy, mTLS, async runtime), implement the
Transport Protocol with your own client and pass it to Core. The SDK has
no hard dependency on httpx at evaluation time — the dependency is only
used by the bundled HttpxTransport adapter. See
Extending — Substituting the transport.
- Quickstart — first experiment in 5 minutes
- Initialization — SDK key vs. direct config
- Configuration — full options reference
Copyrights © 2025 All Rights Reserved by Convert Insights, Inc.
Getting Started
Python SDK
- Quickstart
- Installation
- Initialization
- Configuration
- Code Examples
- Type Hints
- Diagnostics
- Extending
- Testing
- Async & Frameworks
Migration
Core Concepts
- Experiences & Variations
- Feature Flags
- Bucketing Algorithm
- Rule Evaluation
- Segments
- Data Management
- Event System
- API Communication
How-To Guides
- Running Experiences
- Running Features
- Tracking Conversions
- Visitor Context
- Persistent DataStore
- Troubleshooting
Edge & Integrations
Maintainers