DEV Community

Patrick Shouse
Patrick Shouse

Posted on

CrateD

A Useful Box

Made with Python, SQLite, and peewee-ORM

Don't let the flashy UI fool you. CrateD has some serious Python techniques under the covers. In the demo below, we dynamically create Peewee Models which create tables in a SQLite database. As the user builds the data model, the system records metadata about the models and their fields. This metadata is stored in a special table so that the models can be reconstructed on the fly when the system restarts.

You can see the code and try it yourself here:

Top comments (0)