pyqlite - Lightweight SQLite O/R Mapper and Model Generator for Python.
pip install pyqlite
pyqlite -gm -d (db file path) [-o (output path)]
When not specified output path, model files are outputted to the current directory.
pyqlite -gm -d test.db
Model files are outputted to the specified directory.
pyqlite -gm -d test.db -o ./models
Please have a look tests in this repository.
(I am sorry, but, I have a plan I will example in the future.)
Apache-2.0 license