Skip to main content

A Python package to calculate birthdays and zodiac info

Project description

Birth Teller

PyPI version License

Birth Teller is a lightweight Python library and optional CLI tool that calculates your age, birthday details, and the day of the week you were born. It supports full month names, 3-letter abbreviations, and numeric month input. Perfect for Python projects, scripts, or Django apps.


Features

  • Compute age in years, months, weeks, days, hours, minutes, and seconds
  • Determine the day of the week for any birthdate
  • Supports full month names, 3-letter abbreviations, and numeric month input
  • Optional CLI for quick terminal usage
  • Fully importable as a Python library for projects like Django

Installation

pip install birth-teller

Library Usage (Python / Django / Scripts)

from birth_teller import BTM

# Create an instance
btm = BTM()

# Get birthday information
info = btm.information(8, "feb", 1999)

print(f"You were born on {info['weekDay']}")
print(f"Age in years: {info['years']}")
print(f"Age in days: {info['days']}")

Using different month formats

# Full month name
info = btm.information(8, "February", 1999)

# 3-letter abbreviation
info = btm.information(8, "feb", 1999)

# Numeric month
info = btm.information(8, 2, 1999)

[!NOTE] Works anywhere in Python, including Django views, scripts, or APIs.

CLI Usage (Optional)

birth-teller --name Emran --day 8 --month feb --year 1999 // or
birth-teller -n Emran -d 8 -m feb -y 1999

Example Output (CLI)

You were born on MONDAY
Years: 26
Days: 9690
Weeks: 1384
Zodiac Sign: Capricorn

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

birth_teller-0.2.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

birth_teller-0.2.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: birth_teller-0.2.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for birth_teller-0.2.0.tar.gz
Algorithm Hash digest
SHA256 01c4dc98da2a285e20a633035e30a856bf04fdebd5564682cfe56be6f112598f
MD5 89a6b6f5daa682b3244e32bdd81a5141
BLAKE2b-256 fdf2dd4698063e263430b4049b21f54f0208159ea33ef6a52dd61d9e1d004668

See more details on using hashes here.

File details

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

File metadata

  • Download URL: birth_teller-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for birth_teller-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d26f976fc7175027464c9bbb41b4889150734c9fd2b395e3cd0df0145e035979
MD5 29e445ccaf449ef64b374a09b9327b5b
BLAKE2b-256 3e18b79d5e0abc374acce0f10ca0382b200c3a652278a4264472a4d1dbe1e944

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