analytics-python
The hassle-free way to integrate analytics into any python application.
Decision gist · record as of 2026-08-14
Yes, if you use Segment for analytics aggregation. The package is stable, permissively licensed, and has low install friction. However, note that the description itself directs users to the newer listing at segment-analytics-python due to a naming conflict, so verify whether you should use that package instead before installing this one.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with five straightforward runtime dependencies.
- The package is actively maintained with recent commits and has been stable since its initial 2013 release, though the latest release was in March 2023.
License · maintenance · safety
MIT License (permissive) — MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2023-03-22 (1241 days) · last repo commit 2026-08-11 · 254 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,753,077 downloads/mo, #3,591 on PyPI
Alternatives
Verify before relying
pip install analytics-python
import analytics
analytics.write_key = 'YOUR_WRITE_KEY'
analytics.track('user_id', 'event_name', {'property': 'value'})- Whether the package continues to receive updates beyond March 2023 despite active repo status
- Compatibility with Python versions beyond 3.8 given classifier list ends there
What it is and what it does
analytics-python is the official Python client for Segment's analytics platform. It wraps the Segment REST API to let you send user events and properties from your Python application to Segment, which then routes that data to your choice of downstream analytics services—Mixpanel, Google Analytics, Amplitude, or dozens of others—without requiring you to integrate each service separately.
The library handles the HTTP communication through requests, manages retries via backoff, and provides a straightforward API for tracking events, identifying users, and recording page views. It depends on six runtime packages including python-dateutil for timestamp handling and monotonic for consistent timing. The package is permissively licensed under MIT and has low installation friction.
Use it for
- Track user interactions (clicks, form submissions, purchases) in a web or mobile backend and send them to Segment for aggregation across analytics platforms
- Identify and profile users with custom properties, then sync that data to CRM or marketing automation tools via Segment's integrations
- Collect server-side events from a Python application and route them to multiple analytics destinations without maintaining separate client libraries
- Log application events for real-time dashboarding and historical analysis across tools like Mixpanel, Amplitude, or custom data warehouses
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Segment for analytics aggregation.
The package is stable, permissively licensed, and has low install friction. However, note that the description itself directs users to the newer listing at segment-analytics-python due to a naming conflict, so verify whether you should use that package instead before installing this one.
Install
analytics-python on PyPI
Before you install
Low install friction with five straightforward runtime dependencies. The package is actively maintained with recent commits and has been stable since its initial 2013 release, though the latest release was in March 2023.
License in practice
MIT License permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
Quickstart
pip install analytics-python
import analytics
analytics.write_key = 'YOUR_WRITE_KEY'
analytics.track('user_id', 'event_name', {'property': 'value'})
Verify before relying
- Whether the package continues to receive updates beyond March 2023 despite active repo status
- Compatibility with Python versions beyond 3.8 given classifier list ends there
Package facts
| License | MIT License permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesrequestssixmonotonicbackoffpython-dateutil |
| Maintenance | Actively maintained 1,241 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,753,077 / month, #3,591 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8 |
Evidence: analytics_python-1.4.post1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “event tracking api wrapper”
- analytics-pythonA Python client library that sends analytics events to the Segment…
- inotify-simpleA lightweight Python wrapper around the Linux inotify API for…
- amplitude-analyticsOfficial Amplitude backend SDK for Python that sends server-side…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also segment-analytics-python · universal-analytics-python3 · launchpadlib · posthoganalytics · rudder-sdk-python · amplitude-analytics · kanaries-track · apache-airflow-providers-segment · posthog · snowplow-tracker