from dataclasses import dataclass
from typing import Tuple
class Meta(type):
def __new__(cls, name, bases, attrs):
new_cls = super().__new__(cls, name, bases, attrs)
return dataclass(unsafe_hash=True, frozen=True)(new_cls)
class Bio(metaclass=Meta):
name : str = "Pemba Tamang"
designation : str = "Django Developer"
company : str = "Pemba T. Tech"
base : str = "Kathmandu, Nepal"
website : str = "https://www.pembatamang.com.np"
class Stack(metaclass=Meta):
languages : Tuple[str, ...] = ("Python", "HTML", "CSS", "JavaScript")
databases : Tuple[str, ...] = ("MySQL", "PostgreSQL")
misc : Tuple[str, ...] = ("Docker", "Celery")
ongoing : Tuple[str, ...] = ("Python", "Django")
Fun fact: I once solved the world's oldest question with a single line of Python
# Which came first: the chicken or the egg?
print(sorted(['🥚', '🐣', '🐥', '🐔']))
>>> [ '🐔', '🐣', '🐥', '🥚' ]
📊 Stats