$npx skillfedfor your agent

Lifetimes

Measure customer lifetime value in Python

With conditionsPyPI Scientific/EngineeringReleased Jul 2020255.2K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — Lifetimes-0.11.3-py3-none-any.whl
v0.11.3 · released 2020-07-06 · 5 runtime deps: numpy, scipy, pandas, autograd, dill

Yes, if you need CLV modeling and can accept an unmaintained package. The library is stable for its core use case (BG/NBD and Pareto/NBD models) and has no known vulnerabilities. However, verify dependency compatibility with your Python version first, and consider whether a maintained fork or alternative exists for your specific use case, given the project's archived status since 2024.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires numpy, scipy, pandas, autograd, and dill; no Python version constraint specified in package metadata.
  • Low install friction; pure Python wheel.
  • Repository is archived and last release was 2020-07-06, over 4 years old.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; you must retain the license notice in distributions.

last release 2020-07-06 (2230 days) · last repo commit 2024-06-28 · 1,477 stars · archived

0 known vulnerabilities (OSV.dev, 2026-08-14) · 255,230 downloads/mo, #8,482 on PyPI

Verify before relying

pip install lifetimes

from lifetimes import BetaGeoFitter
import pandas as pd

bgf = BetaGeoFitter()
bgf.fit(data)  # data: DataFrame with frequency, recency, T columns
  • Whether the package works reliably with modern Python versions (3.10+) given its last release predates widespread adoption.
  • Current compatibility of dependencies (numpy, scipy, pandas, autograd, dill) with the pinned or unpinned versions Lifetimes expects.
  • Whether community forks or maintained alternatives have superseded this archived project.
Same gist for agents: .md · .json

What it is and what it does

Lifetimes is a Python library for modeling and predicting customer lifetime value (CLV) and churn using probabilistic methods grounded in survival analysis. It implements models like BG/NBD and Pareto/NBD that estimate how often a customer will return and their long-term value based on historical transaction data (frequency, recency, and age). The library treats customer engagement as a "birth-death" process: users are alive while active and may die (churn) after inactivity.

The package depends on numpy, scipy, pandas, autograd, and dill for numerical computation and serialization. It is designed for business analytics workflows where you have transaction histories and want to segment customers by predicted value or identify likely churners. The library was last released in 2020 and its repository is now archived, meaning no active maintenance or updates are occurring.

Use it for

  • Predict which customers are likely to churn based on their purchase history and engagement patterns.
  • Estimate the lifetime value of customers to prioritize retention and marketing spend.
  • Forecast repeat purchase frequency and timing for subscription or e-commerce businesses.
  • Segment customers into cohorts by predicted value for targeted retention campaigns.
  • Analyze user engagement on websites or apps to identify inactive or at-risk users.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need CLV modeling and can accept an unmaintained package.

The library is stable for its core use case (BG/NBD and Pareto/NBD models) and has no known vulnerabilities. However, verify dependency compatibility with your Python version first, and consider whether a maintained fork or alternative exists for your specific use case, given the project's archived status since 2024.

Install

lifetimes on PyPI

Before you install

Low install friction; pure Python wheel. Repository is archived and last release was 2020-07-06, over 4 years old. Maintenance is abandoned, so no active bug fixes or dependency updates.

Requires numpy, scipy, pandas, autograd, and dill; no Python version constraint specified in package metadata.

License in practice

MIT license permits commercial and private use with minimal restrictions; you must retain the license notice in distributions.

Quickstart

pip install lifetimes

from lifetimes import BetaGeoFitter
import pandas as pd

bgf = BetaGeoFitter()
bgf.fit(data)  # data: DataFrame with frequency, recency, T columns

Verify before relying

  • Whether the package works reliably with modern Python versions (3.10+) given its last release predates widespread adoption.
  • Current compatibility of dependencies (numpy, scipy, pandas, autograd, dill) with the pinned or unpinned versions Lifetimes expects.
  • Whether community forks or maintained alternatives have superseded this archived project.

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
numpyscipypandasautograddill
MaintenanceAbandoned 2,230 days since the last release
Last repo commit repository archived
First released
Downloads255,230 / month, #8,482 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5Topic :: Scientific/Engineering

Evidence: Lifetimes-0.11.3-py3-none-any.whl

Tags

Capabilities
customer lifetime value predictionchurn prediction from user historyrepeat purchase forecastingBG/NBD model implementationcustomer behavior analysissurvival analysis for businessCLV calculation library
Topics
customer-analyticssurvival-analysischurn-prediction
PyPI keywords
customer lifetime valueclvltvBG/NBDpareto/NBDfrequencyrecency

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 › “customer lifetime value prediction”

  • LifetimesLifetimes models customer behavior and predicts lifetime value,…
  • pymc-marketingPyMC-Marketing provides Bayesian statistical models for marketing…
  • scikit-survivalscikit-survival provides survival analysis models that handle…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also lifelines · pymc-marketing · scikit-survival · carelytics · reliability · darts · business-duration · matrice-analytics · statsforecast · zope.processlifetime