repo_description: Spec-driven development for large codebases
repo_topics: agents ai-agents ai-agents-framework artificial-intelligence developer-tools devtools generative-ai knowledge-graph rag
code: import typing as t
  
  from sqlalchemy.ext.declarative import as_declarative, declared_attr
  
  class_registry: t.Dict = {}
  
  
  @as_declarative(class_registry=class_registry)
  class Base:
      id: t.Any
      __name__: str
  
      # Generate __tablename__ automatically
      @declared_attr
      def __tablename__(cls) -> str:
          return cls.__name__.lower()
  