klaviyo
Deprecated Klaviyo SDK
What it is and what it does
Klaviyo is a deprecated Python client for Klaviyo's email marketing and customer data platform. It provides methods to track customer events and profile properties, manage email lists and subscribers, query metrics and campaign data, and retrieve profile information—all via Klaviyo's older v1/v2 REST APIs. The package wraps HTTP requests and simplejson for JSON parsing.
The package is no longer maintained. Klaviyo officially deprecated it on 2024-06-30 and recommends migrating to their newer SDK (klaviyo-api-python). The repository is archived, the last commit was in August 2023, and no further updates will be released. Installing this package for new projects is not recommended; it should only be used to maintain legacy integrations already in production.
Use it for:
- Maintain legacy Python applications already integrated with Klaviyo's v1/v2 APIs that cannot be immediately refactored.
- Track customer events and profile updates from a backend application to Klaviyo's platform.
- Query and manage email lists, subscribers, and segments in existing Klaviyo integrations.
- Retrieve campaign and metrics data for reporting in older codebases that depend on this SDK.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A deprecated client library for integrating with Klaviyo's email marketing and customer data platform via its v1/v2 APIs, supporting event tracking, profile management, list operations, and campaign retrieval.
No—do not install for new projects. The package is officially deprecated, abandoned, and will receive no updates. Install only if you are maintaining an existing legacy application already using this SDK and cannot immediately migrate to Klaviyo's newer Python SDK. For any new integration, use the recommended replacement (klaviyo-api-python) instead.
Install
klaviyo on PyPI
pip
pip install klaviyouv
uv add klaviyopoetry
poetry add klaviyoInstalling klaviyo
Before you install
Installation is straightforward with low friction—only two runtime dependencies (requests and simplejson)—but the package is abandoned as of 2023-08-18 and officially deprecated as of 2024-06-30. No further updates will be released.
License in practice
Licensed under MIT License (permissive), so commercial and private use are permitted, but the package's abandoned status means no security patches or compatibility fixes will be applied.
Quickstart
pip install klaviyo
import klaviyo
client = klaviyo.Klaviyo(public_token=PUBLIC_TOKEN, private_token=PRIVATE_TOKEN)
client.Public.track('Filled out profile', email='someone@mailinator.com', properties={'Added social accounts': False})
Requires valid Klaviyo public and private API tokens; the package is deprecated and will not receive updates.
Verify before relying
- Whether the v1/v2 Klaviyo APIs this SDK targets are still operational or have been sunset.
- Compatibility with modern Python versions (requires_python is unspecified in the fact sheet).
- Whether the newer SDK (klaviyo-api-python) is a drop-in replacement or requires significant refactoring.
Package facts
| License | MIT License (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — requests, simplejson |
| Maintenance | abandoned — 1,213 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 76,356/month — #14,632 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: klaviyo-3.1.7-py2.py3-none-any.whl
Keywords: klaviyo
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
klaviyo-apiPython client library for the Klaviyo marketing…
permissive · top 15,000 on PyPI
customerioPython client library for the Customer.io API,…
permissive · top 5,000 on PyPI
mailchimp3A Python client for MailChimp API v3 that wraps…
permissive · top 15,000 on PyPI
sib-api-v3-sdkPython SDK for the SendinBlue REST API,…
unclear · top 15,000 on PyPI
delightedPython client for the Delighted API that…
permissive · top 15,000 on PyPI
mandrillMandrill is a deprecated Python API client and…
permissive · top 15,000 on PyPI
nextdnsAsync Python wrapper for the NextDNS API that…
permissive · top 15,000 on PyPI
facebook-businessProvides Python bindings to Facebook's Business…
unclear · top 5,000 on PyPI
linkedin-apiProvides direct HTTP access to LinkedIn's…
permissive · top 15,000 on PyPI
pinterest-api-sdkPython client library for the Pinterest API…
permissive · top 15,000 on PyPI