import json
from dataclasses import asdict, dataclass
@dataclass
class Stack:
languages : tuple = ("Python", "JS/TS", "Java", "C/C++")
databases : tuple = ("MySQL", "PostgreSQL", "Redis")
libraries : tuple = ("React", "Vue", "Svelte," "HTMX")
frameworks : tuple = ("FastAPI", "Django", "Next.js")
misc_tech : tuple = ("Docker", "Celery", "RabbitMQ")
def serialize(self):
return json.dumps(asdict(self), indent=4)
stack = Stack()
print(stack.serialize())
zero-sigma Goto Github PK
Name: Trevor McReynolds
Type: User
Bio: Fullstack Developer
Location: Los Angeles