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.

61
/ 100
Established

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.

Maintenance 10 / 25
Adoption 10 / 25
Maturity 25 / 25
Community 16 / 25

How are scores calculated?

Stars

198

Forks

24

Language

Python

License

MIT

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.