DEV Community

Cover image for Generate Python Apps with GenAI
Thomas Pollet
Thomas Pollet

Posted on

Generate Python Apps with GenAI

We created a container that allows you to create an API-driven python application by describing the application requirements in a prompt.

Image description

In less than a minute this will generate a data model and a python Flask API for which we made a generic react-admin frontend.

Image description

The project can be downloaded and edited in your IDE. Or, you can edit (and run) it in github codespaces using the github repository where the project is pushed (and a login token is set in the environment)
Image description

The generator creates python SQLAlchemy ORM classes which you can edit

Image description

For simple tasks, you can also refine the project using natural language by specifying your requirements in the "Iterate" popup in the project window

Image description

This will extend the application according to your input
Image description

The application comes with an OpenAPI so you can develop your own frontend integrations, or extend the default react-admin code.
Image description

In case you don't want to deploy and configure the container or you don't want to use your OpenAI key, we deployed a demo version on our site were you can generate these applications for free.

Top comments (0)