Skip to main content

Creates a plot showing your life in weeks

Project description

lifeweeks

Visualize your life in weeks in either R (shiny) or Python (CLI).

Input your birthday and see how many weeks you have lived and how many weeks you have left (generously assuming a 90-year lifespan). Both the Python and R implementations provide a printable PDF.

Inspired by this post from Tim Urban. "Sometimes life seems really short, and other times it seems impossibly long. But this chart helps to emphasize that it's most certainly finite. Those are your weeks and they're all you've got."

Python

Install with pip:

pip install lifeweeks
lifeweeks --help

Or run without installing using uv/uvx:

uvx lifeweeks --help
Usage: lifeweeks [OPTIONS] BIRTHDAY

  Generate a life-in-weeks chart for a given BIRTHDAY.
  Birthday should be entered as YYYY-MM-DD.

  Example: lifeweeks 1980-02-14

Options:
  -o, --output TEXT  Output filename (default: lifeweeks.pdf)
  -h, --help         Show this message and exit.

Example:

lifeweeks 1980-02-14

Result:

R/Shiny

Go to stephenturner.shinyapps.io/lifeweeks or run the app.r app yourself to launch the shiny app. Input your birthday and see how many weeks you have lived and how many weeks you have left. Hit the Download PDF button to save the plot.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lifeweeks-0.1.3.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lifeweeks-0.1.3-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file lifeweeks-0.1.3.tar.gz.

File metadata

  • Download URL: lifeweeks-0.1.3.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for lifeweeks-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a0d97d87db445036c29b47461c0d6f815d48fdb5e081ff7e575f61d772815c1c
MD5 f3ed98463de0a47831d3104d11726a9e
BLAKE2b-256 df663b6a9bbd86460af5ebb3df7c310817d31edeb5d67604c0da994a13b98ef9

See more details on using hashes here.

File details

Details for the file lifeweeks-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: lifeweeks-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.13

File hashes

Hashes for lifeweeks-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0b9125c4f2c86e6b03c34afbe49dbdfd1bc46698368c3f95dc623095913dfa38
MD5 8b9dfc0edee6ea8adfbc90ed38c799ca
BLAKE2b-256 5d99bbada61c67416c9df7db4cb31c5085c193ad8baa6caaa4ceade0c6e509e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page