Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a Django's inspectdb equivalent for SQLAlchemy?

I've used Django's inspectdb command in the past, which gives you models from an existing database.

Is there something equivalent for SQLAlchemy?

like image 746
Taras Mankovski Avatar asked Nov 25 '09 04:11

Taras Mankovski


3 Answers

Take a look at AutoCode project.

like image 93
Denis Otkidach Avatar answered Nov 17 '22 17:11

Denis Otkidach


You might be looking for sqlautocode.

like image 45
Ken Kinder Avatar answered Nov 17 '22 18:11

Ken Kinder


For a Python3 compatible tool, check out sqlacodegen or flask-sqlacodegen if you're looking for something that's actually maintained.

like image 1
dthor Avatar answered Nov 17 '22 17:11

dthor