Skip to main content
Release files added late

2 files were added to this release more than 14 days after its initial publication. Inspect the release files before installing.

Measuring users is hard. Lifetimes makes it easy.

PyPI version Documentation Status Build Status Coverage Status

Introduction

Lifetimes can be used to analyze your users based on a few assumption:

  1. Users interact with you when they are “alive”.

  2. Users under study may “die” after some period of time.

I’ve quoted “alive” and “die” as these are the most abstract terms: feel free to use your own definition of “alive” and “die” (they are used similarly to “birth” and “death” in survival analysis). Whenever we have individuals repeating occurrences, we can use Lifetimes to help understand user behaviour.

Applications

If this is too abstract, consider these applications:

  • Predicting how often a visitor will return to your website. (Alive = visiting. Die = decided the website wasn’t for them)

  • Understanding how frequently a patient may return to a hospital. (Alive = visiting. Die = maybe the patient moved to a new city, or became deceased.)

  • Predicting individuals who have churned from an app using only their usage history. (Alive = logins. Die = removed the app)

  • Predicting repeat purchases from a customer. (Alive = actively purchasing. Die = became disinterested with your product)

  • Predicting the lifetime values of your customers

Specific Application: Customer Lifetime Value

As emphasized by P. Fader and B. Hardie, understanding and acting on customer lifetime value (CLV) is the most important part of your business’s sales efforts. And (apparently) everyone is doing it wrong. Lifetimes is a Python library to calculate CLV for you.

Installation

pip install lifetimes

Requirements are only Numpy, Scipy, Pandas, Dill (and optionally-but-seriously matplotlib).

Documentation and tutorials

Official documentation

Questions? Comments? Requests?

Please create an issue in the lifetimes repository.

More Information

  1. Roberto Medri did a nice presentation on CLV at Etsy.

  2. Papers, lots of papers.

  3. R implementation is called BTYD (for, Buy ‘Til You Die).

Metadata

Release files for Lifetimes 0.9.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release files before installing.

Source distribution (sdist)

Source distribution for Lifetimes 0.9.0.0
File Size Uploaded Provenance Actions
Lifetimes-0.9.0.0.tar.gz 572.0 kB File added late: Without provenance Details for Lifetimes-0.9.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for Lifetimes 0.9.0.0
File Interpreter ABI Platform Actions
Lifetimes-0.9.0.0-py3-none-any.whl Python 3 none any Details for Lifetimes-0.9.0.0-py3-none-any.whl
Lifetimes-0.9.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for Lifetimes-0.9.0.0-py2.py3-none-any.whl

Total release size: 1.8 MB

Release files / Lifetimes-0.9.0.0.tar.gz

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL Lifetimes-0.9.0.0.tar.gz
Size 572.0 kB
Tags Source
SHA-256 checksum
How to use checksums
863170a91ea091d0f2b6e0725c606de10e917dc119911e14e176129ed9f45f36
BLAKE2b-256 checksum
How to use checksums
849db55295d7c494c55f2191979940d672bd493c424bd8b2301b2b24086e7102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Lifetimes-0.9.0.0-py3-none-any.whl

File added late

This file was uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.

We recommend inspecting the release file before installing.

Download URL Lifetimes-0.9.0.0-py3-none-any.whl
Size 605.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0f71b502990a2f16859e16a058af1328d292d70d3655a8bdc48172af26798c39
BLAKE2b-256 checksum
How to use checksums
055bb2eb4de1e2e225938fdcafcd25d4c7ee3659d2428ae70b1447be0e2c4e54
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Lifetimes-0.9.0.0-py2.py3-none-any.whl

Download URL Lifetimes-0.9.0.0-py2.py3-none-any.whl
Size 605.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0610bd3ac5d75fc0bf71513d5dbf455fdb036721caba38acedffeb47add4ea90
BLAKE2b-256 checksum
How to use checksums
8df980e837f60e183cdbb0a62f009eacadc332d0e843b413752dbc66dd212420
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Lifetimes 0.9.0.0

Upload timing

Release files added late

2 files were uploaded more than 14 days after the first file in this release.

While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.


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.

Release history Release notifications | RSS feed

This release

0.9.0.0 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page