/simple-piccolo

Simple-piccolo is a single-file Piccolo ORM application for quickly prototyping, exploring and testing ideas without any configuration.

Primary LanguagePythonMIT LicenseMIT

Simple-piccolo is a single-file application for quickly prototyping, exploring and testing ideas without any configuration, using Sqlite. The application use FastAPI or Litestar, Piccolo ORM and Piccolo Admin for easy database interaction.

How to use:

Clone the repository in a fresh virtualenv.

Install dependencies

pip install -r requirements.txt

You can choose between two router frameworks, FastAPI or Litestar. For FastAPI you can use:

$ python fastapi_app.py

or for starting Litestar

$ python litestar_app.py

After site is running log in as admin user on http://localhost:8000/admin/ or go to http://localhost:8000/docs and use the FastAPI interactive API documentation. For Litestar go to http://localhost:8000/schema/swagger and use the Litestar interactive API documentation or log in as admin user on http://localhost:8000/admin/.