Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sinisaos/simple-piccolo

Simple-piccolo is a single-file Piccolo ORM application for quickly prototyping, exploring and testing ideas without any configuration.
https://github.com/sinisaos/simple-piccolo

fastapi litestar-framework piccolo piccolo-admin sqlite

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

``Simple-piccolo`` is a single-file application for quickly prototyping, exploring and testing ideas without any configuration, using Sqlite. The application use [FastAPI](https://fastapi.tiangolo.com/) or [Litestar](https://litestar.dev/), [Piccolo ORM](https://piccolo-orm.readthedocs.io/en/latest/piccolo/getting_started/index.html) and [Piccolo Admin](https://piccolo-admin.readthedocs.io/en/latest/) 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/``.