Search code examples
pythonmysqlpostgresqlcode-generation

tools to code generate python from existing database?


Please forgive my ignorance I am new to Python development.

Is there a tool to create Python code from an existing database (e.g. mySQL, Postgresql)

For example, if I have a database designed with sample data inside (I have tables, functions, and data established in a database) is there any code generator tools that will help me to generate some of the python code (e.g. classes/entities, etc.)


Solution

  • It sounds like you are describing Object-relational mapping (ORM). One popular ORM for Python is SQLAlchemy.