Skip to main content

birthdays

birthdays GIF demo

PyPI Version PyPI Python version PyPI downloads License Ruff

birthdays is a robust Python command-line tool designed to conveniently manage, track, and celebrate your contacts' birthdays.

Features

  • Customizable Sorting: List birthdays exactly how you want to see them (by upcoming, recent, age, name, or date)
  • CRUD Operations: Easily add, edit, and delete entries. The deletion and edit commands feature a convenient fuzzy search so you don't have to type out exact names
  • Smart Imports: Import contacts directly from .vcf vCard files or JSON databases
  • Interactive Merging: During imports, the CLI intelligently detects duplicates or data collisions and prompts you to safely merge them
  • Leapling Support: Configure how leap year birthdays (February 29th) are handled in non-leap years, choosing to celebrate either the day before or the day after
  • Festive UI: Every date is assigned a unique, deterministic emoji to keep the terminal vibe bright and colorful (includes a --no-emoji flag)

Requirements

  • Python 3.11+

Installation

Install the package from PyPI using your favorite package management tool such as pip, pipx, or uv:

pip install birthdays-cli

Or install the latest version from source:

git clone https://github.com/l1asis/birthdays.git
cd birthdays
pip install .

Usage

birthdays uses simple subcommands to organize different operations. You can append --help to any command to see its available arguments.

Listing Birthdays

[!NOTE] By default, this sorts by upcoming birthdays in descending order so the most immediate celebrations are right at your cursor.

birthdays list

Options:

  • --sort: Choose from name, date, upcoming, recent, or age.
  • --order: Choose asc or desc.
  • -f, --file: Temporarily read and display birthdays directly from a .vcf or .json file without modifying your local database.

Adding an Entry

[!NOTE] The date can be formatted as YYYY-MM-DD, or simply MM-DD if the year is unknown.

birthdays add "John Doe" 1990-05-14 --note "Loves chocolate cake"

Editing an Entry

[!NOTE] You can use either the name or UUID. You only need to pass the flags for the specific data you want to change.

birthdays edit "John Doe" --date 1991-05-14

Deleting an Entry

[!TIP] The CLI uses fuzzy matching, so typing a partial name usually works! Append -y to skip the confirmation prompt.

birthdays delete "John Doe"

Importing Contacts

[!TIP] The interactive prompt will guide you through any data collisions. Append -y to automatically skip these prompts and blindly merge safe entries.

birthdays import ./contacts.vcf

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/amazing-feature)
  3. Commit your Changes (git commit -m 'feat: ✨ add some amazing-feature')
  4. Push to the Branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Download files

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

Source Distribution

birthdays_cli-0.2.0.tar.gz (7.3 MB view details)

Uploaded Source

Built Distribution

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

birthdays_cli-0.2.0-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file birthdays_cli-0.2.0.tar.gz.

File metadata

  • Download URL: birthdays_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 7.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for birthdays_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8c03ca54eae6385a9ac39d33e0d0a3fdb99da172ad2c9ade548499b7a1ad4c14
MD5 c9d73904c789213f692770de4532b272
BLAKE2b-256 19f0901273ce89f631d1ad7f1db878de870519fd888cfb3dcaede6199e1d55e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for birthdays_cli-0.2.0.tar.gz:

Publisher: ci-cd.yml on l1asis/birthdays

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file birthdays_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: birthdays_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for birthdays_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 91f815af39cc2535814b84effa1a058e53b388b7110156a06aeb1f30190d0729
MD5 ac80d860c76505275eeb1dc2edb476d6
BLAKE2b-256 8d2df2e3d4b38cf4f5ff4098df826620f374a1af18e904fdb45307174e0812e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for birthdays_cli-0.2.0-py3-none-any.whl:

Publisher: ci-cd.yml on l1asis/birthdays

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

This release

0.2.0 This release

2 files

0.1.0

2 files

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