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 / graph-book Goto Github PK
View Code? Open in Web Editor NEWThis project forked from datastax/graph-book
The Code Examples and Notebooks for The Practitioners Guide to Graph Data
Home Page: http://shop.oreilly.com/product/0636920205746.do