$ show xnuinside/omymodels
O! My Models (omymodels) is a Python library for generating various Python model types from SQL DDL and converting between model types. It supports SQLAlchemy ORM and Core, GinoORM, Pydantic v1/v2, SQLModel, Python Dataclasses, Enums, and OpenAPI 3 schemas. The architecture follows a pipeline: SQL DDL parsing → normalization → type conversion → model generation → Jinja2 template rendering. Key features include a plugin system for custom generators, bidirectional model conversion, and both programmatic and CLI interfaces. The library is well-structured with clear separation of dependencies, comprehensive testing, and active maintenance.
The LLM identified 1 files worth highlighting for reuse:
Implements a robust plugin system for registering custom model generators without forking the repository. Provides registration, validation, entry point auto-discovery, and clean separation of concerns. Demonstrates strong plugin architecture principles with proper interface validation and extensibility patterns.