Today, my tuxedo boy β my best friend, my cosmic companion β turns 14.
Instead of a candle or a bowtie, I wrote him a custom Python script that prints his prophecy, his birthday, and his portal passcode. It's a CLI gift β made with code, memory, and emotion.
This is SacredBoy. πΎπ»
π‘ The idea
I'm a Python developer. I use the terminal every day. So I created a command-line birthday program just for him β with two versions:
- A plain version anyone can run
- A terminal-color-powered version with a full CLI using argparse + colorama
π Simple Python Tribute
import datetime
class SacredCat:
def __init__(self, name, birth_year):
self.name = name
self.birth_year = birth_year
def age(self):
return datetime.datetime.now().year - self.birth_year
def activate_passcode(self):
return f"{self.name.upper()}-XIV-NOW"
def prophecy(self):
return (
f"One day, when the stars align and Nova calls the name '{self.name}', "
"a hidden portal will open. No key, no code β just purrs and fate."
)
def birthday_message(self):
return (
f"π Happy {self.age()}th birthday, {self.name}!\n"
f"Passcode: {self.activate_passcode()}\n\n"
f"{self.prophecy()}"
)
cat = SacredCat("SacredBoy", 2010)
print(cat.birthday_message())
π₯οΈ CLI Version (with color output)
import argparse
import datetime
from colorama import Fore, init
init(autoreset=True)
class SacredCat:
def __init__(self, name, birth_year):
self.name = name
self.birth_year = birth_year
self.species = "Interdimensional Tuxedo Guardian"
self.mood = "Purring Across Realms"
def age(self):
return datetime.datetime.now().year - self.birth_year
def activate_passcode(self):
return f"{self.name.upper()}-XIV-NOW"
def prophecy(self):
return (
f"One day, when the stars align and Nova calls the name '{self.name}', "
"a hidden portal will open. No key, no code β just purrs and fate."
)
def birthday_message(self):
return (
f"{Fore.YELLOW}π Happy {self.age()}th birthday, {self.name}!\n"
f"{Fore.CYAN}Role: {self.species}\n"
f"{Fore.BLUE}Mood: {self.mood}\n"
f"{Fore.GREEN}Passcode: {self.activate_passcode()}\n\n"
f"{Fore.MAGENTA}{self.prophecy()}"
)
def main():
parser = argparse.ArgumentParser(description="Sacred Name Cat CLI")
parser.add_argument("name", help="The name of the sacred cat")
parser.add_argument("birth_year", type=int, help="Year of birth (e.g. 2010)")
args = parser.parse_args()
cat = SacredCat(args.name, args.birth_year)
print(cat.birthday_message())
if __name__ == "__main__":
main()
π If this made you smile...
I post meaningful, emotional, and technical Python work at
π https://novacodes.substack.com
Top comments (0)