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

https://github.com/kludex/simplecrud

CRUD Factory - Created by and for FastAPI users! :tada: Support for MySQL, PostgreSQL and SQLite! :sunglasses:
https://github.com/kludex/simplecrud

Last synced: 5 days ago
JSON representation

CRUD Factory - Created by and for FastAPI users! :tada: Support for MySQL, PostgreSQL and SQLite! :sunglasses:

Awesome Lists containing this project

README

          


Simple CRUD - Created by and for FastAPI users





Coverage


Package version



---


Package based on the FastAPI cookiecutter full-stack-fastapi-postgresql

---

## Installation

```bash
pip install simplecrud
```

## Usage

The simplest example is as follow:

```python
from simplecrud.sync_sqlalchemy import CRUDBase

from app.models import User
from app.schemas import UserInDB, UserUpdate

crud_user = CRUDBase[User, UserInDB, UserUpdate](User)
```

If you want to see a full example, you can check the `examples/simple_api`.

Alternately, you can run the app on a `uvicorn` server:

```bash
uvicorn examples.simple_api.main:app --reload
```

## License

This project is licensed under the terms of the MIT license.