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:
- Host: GitHub
- URL: https://github.com/kludex/simplecrud
- Owner: Kludex
- License: mit
- Archived: true
- Created: 2020-11-06T11:34:40.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-12T23:02:34.000Z (over 4 years ago)
- Last Synced: 2025-01-15T22:39:52.990Z (9 months ago)
- Language: Python
- Homepage:
- Size: 114 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Simple CRUD - Created by and for FastAPI users
---
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 CRUDBasefrom app.models import User
from app.schemas import UserInDB, UserUpdatecrud_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.