Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/sinisaos/simple-piccolo
- Owner: sinisaos
- License: mit
- Created: 2023-01-01T11:38:05.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-23T13:36:56.000Z (about 2 months ago)
- Last Synced: 2024-10-18T22:30:30.575Z (about 1 month ago)
- Topics: fastapi, litestar-framework, piccolo, piccolo-admin, sqlite
- Language: Python
- Homepage:
- Size: 298 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/``.