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.1.tar.gz (16.3 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.1-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: birth_teller-0.2.1.tar.gz
  • Upload date:
  • Size: 16.3 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.1.tar.gz
Algorithm Hash digest
SHA256 913b50c98ffd957a1e706e692773ff1cf0708b28ef76875ea00ceb0560d2126e
MD5 1e653c63137b25317615ec5b6e755f1b
BLAKE2b-256 840b5277616c4f0584884f50c16cad59fbf7c998b8417ebc29afded3054749d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: birth_teller-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fddbd501b77ac69db97fae6537f240e1e185e8043b1636623b0f887d1f524d66
MD5 5ab12f1fad8ffbdbc31bf53a0cd548cb
BLAKE2b-256 f5b249ef5873b012715c65d327652f4c6ffed3645aa798d25d62915a4a389692

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