Skip to main content

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

Metadata

Release files for birth-teller 0.2.1

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

Source distribution (sdist)

Source distribution for birth-teller 0.2.1
File Size Uploaded
birth_teller-0.2.1.tar.gz 16.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for birth-teller 0.2.1
File Interpreter ABI Platform
birth_teller-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / birth_teller-0.2.1.tar.gz

Download URL birth_teller-0.2.1.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
913b50c98ffd957a1e706e692773ff1cf0708b28ef76875ea00ceb0560d2126e
BLAKE2b-256 checksum
How to use checksums
840b5277616c4f0584884f50c16cad59fbf7c998b8417ebc29afded3054749d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / birth_teller-0.2.1-py3-none-any.whl

Download URL birth_teller-0.2.1-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fddbd501b77ac69db97fae6537f240e1e185e8043b1636623b0f887d1f524d66
BLAKE2b-256 checksum
How to use checksums
f5b249ef5873b012715c65d327652f4c6ffed3645aa798d25d62915a4a389692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release 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