xnuinside/omymodels
O!My Models (omymodels) is a library to generate Pydantic, Dataclasses, GinoORM Models, SqlAlchemy ORM, SqlAlchemy Core Table, Models from SQL DDL. And convert one models to another.
Parses SQL DDL using a dedicated parser (simple-ddl-parser) and maps database types to framework-specific equivalents through pluggable type mappings, enabling accurate schema translation across eight different Python model formats. Supports both global and per-table schema definitions, and provides a CLI interface for batch conversion alongside programmatic Python API. Includes specialized handling for Pydantic v1/v2 syntax differences and generates OpenAPI 3 schemas alongside traditional ORM and dataclass models.
198 stars. Available on PyPI.
Stars
198
Forks
24
Language
Python
License
MIT
Category
Last pushed
Jan 18, 2026
Commits (30d)
0
Dependencies
5
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/ai-coding/xnuinside/omymodels"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Related tools
googleapis/gapic-generator-python
Generate Python API client libraries from Protocol Buffers.
omissis/go-jsonschema
A tool to generate Go data types from JSON Schema definitions.
zeromicro/go-zero
A cloud-native Go microservices framework with cli tool for productivity.
openconfig/ygot
A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
mailru/easyjson
Fast JSON serializer for golang.