{"repo":"xnuinside/omymodels","free":true,"listed":false,"github":"https://github.com/xnuinside/omymodels","clone":"git clone https://github.com/xnuinside/omymodels.git","description":"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.","language":"Python","stars":199,"topics":["ddl-parser","models","orm","gino-orm","gino","generator","code-generation","models-generation","sql","orm-model"],"license":"MIT","category":"databases-storage","readme_excerpt":"O! My Models Interactive Demo Documentation PyPI Try in Web-UI Try the online O!MyModels converter or simply use it online: https://archon-omymodels-online.hf.space/ (A big thanks for that goes to https://github.com/archongum) Examples You can find usage examples in the example/ folder on GitHub: https://github.com/xnuinside/omymodels/tree/main/example About library O! My Models (omymodels) is a library that allow you to generate different ORM & pure Python models from SQL DDL or convert one models type to another (exclude SQLAlchemy Table, it does not supported yet by py-models-parser). Supported Models: - SQLAlchemy 2.0 ORM (https://docs.sqlalchemy.org/en/20/orm/) - modern syntax with Mapped and mapped column - SQLAlchemy ORM (legacy style) - SQLAlchemy Core (Tables) (https://docs.sqlalchemy.org/en/20/core/metadata.html) - SQLModel (https://sqlmodel.tiangolo.com/) - combines SQLAlchemy and Pydantic - GinoORM (https://python-gino.org/) - Pydantic v1/v2 (https://docs.pydantic.dev/) - Python Dataclasses (https://docs.python.org/3/library/dataclasses.html) - Python Enum (https://docs.python.org/3/library/enum.html) - generated from DDL SQL Types - OpenAPI 3 (Swagger) schemas (https://swagger.io/specification/) How to install How to use From Python code Create Models from DDL By default method create models generates GinoORM models. Use the argument models type to specify output format: - 'pydantic' - Pydantic v1 models (uses Optional[X] ) - 'pydantic v2' - Pydantic v2 models (u","default_branch":null,"files":null,"tree":[],"storefront":"/r/xnuinside","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/xnuinside/omymodels/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}