CLI to automatically generate FastAPI APIs from a SQL schema.
Project description
QuickCRUD
QuickCRUD is a command-line interface (CLI) tool designed to automatically generate FastAPI APIs from a provided SQL schema. By using this tool, developers can quickly generate CRUD (Create, Read, Update, Delete) operations for each table in the database schema, saving valuable time when setting up backend APIs.
Features
- Automatically generates FastAPI CRUD operations for SQL schema tables.
- Supports PostgreSQL, MySQL, and SQLite databases.
- Generates API routes for basic operations: GET, POST, PUT, DELETE.
- Creates a ready-to-use Docker Compose setup with two containers: one for the FastAPI application and another for the database.
Current Status
As of now, QuickCRUD is in its early stages.
Installation
To install QuickCRUD:
pip install quickcrud
Usage
To generate FastAPI APIs from your SQL schema, simply run the following command:
quickcrud --schema path/to/your/schema.sql --db-type postgres
Replace postgres with mysql or sqlite depending on your database type.
Development
To contribute to QuickCRUD, clone the repository and install the dependencies:
git clone https://github.com/wendersoon/QuickCRUD
cd QuickCRUD
poetry install
You can run tests, format the code with Black, and check for linting issues using the pre-configured tools.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file quickcrud-0.1.0.tar.gz.
File metadata
- Download URL: quickcrud-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d616d8c87377bcdddb8ecb8cc94220b25941b3ecd1ce012b1a2172463a53d1d6
|
|
| MD5 |
099c05f1223fc3100470eb64251bfa27
|
|
| BLAKE2b-256 |
b6362904be7b35e0562dc393544b79e2061b420862a44cdc7045380278a419dc
|
File details
Details for the file quickcrud-0.1.0-py3-none-any.whl.
File metadata
- Download URL: quickcrud-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb34d446c34eba7f8c13414ecf4de1b6d1151ef289e19d7622a0c7fe2ebd5ae0
|
|
| MD5 |
108367ea14cd21cb3c8e4169d0777db7
|
|
| BLAKE2b-256 |
3d7590b34884c0836ed9f12731a11530b78fa6e1cca0c6a6963393e53e2024fa
|