Skip to content

An AI-powered command-line tool that generates REST APIs and admin interfaces based on one line requirement

License

Notifications You must be signed in to change notification settings

jowilf/qwikcrud

Repository files navigation

qwikcrud

PyPI - Version PyPI - Python Version


qwikcrud is a powerful command-line tool designed to enhance your backend development experience by automating the generation of comprehensive RESTful APIs and admin interfaces. Say goodbye to the tedious task of writing repetitive CRUD (Create, Read, Update, Delete) endpoints when starting a new project, allowing developers to concentrate on the core business logic and functionality.

Warning

The generated application is not ready for production use. Additional steps are required to set up a secure and production-ready environment.

qwikcrud demo

Table of Contents

Installation

pip install qwikcrud

Quickstart

Environment variables

Before running the command-line tool, ensure the following environment variables are configured:

export OPENAI_API_KEY="your_openai_api_key"
export OPENAI_MODEL="your_openai_model" # Defaults to "gpt-3.5-turbo-1106"

Usage

To generate your application, open your terminal, run the following command and follow the instructions:

qwikcrud -o output_dir

Generated Application stack

Examples

Roadmap

qwikcrud is designed to support various frameworks and AI providers. Here's an overview of what has been accomplished and what is planned for the future:

Frameworks

  • FastAPI + SQLAlchemy
    • Restful APIs
    • Admin interfaces
    • Authentication
  • FastAPI + Beanie
  • Spring Boot

AI providers

  • OpenAI
  • Anthropic
  • Ollama (self-hosted LLMs)

Pricing

qwikcrud makes one API call per prompt and add a system prompt of around 900 tokens to your prompt. For example, with the OpenAI GPT-3.5-turbo-1106 model, it will cost around $0.003 to generate your application. The cost may vary depending on the output length.

Contributing

Contributions are welcome and greatly appreciated! If you have ideas for improvements or encounter issues, please feel free to submit a pull request or open an issue.

Acknowledgments

License

qwikcrud is distributed under the terms of the Apache-2.0 license.