Skip to content

Initial Stable Release(Python Developer Agent with crewai)

Latest

Choose a tag to compare

@ReZaiden ReZaiden released this 02 Dec 05:27

πŸ€– AI Python Developer Agent with CrewAI

Python
CrewAI
Gradio
OpenAI

An AI-powered Python development agent that generates complete Python applications based on your requirements.
Powered by CrewAI, OpenAI, Gradio, and a fully modular multi-agent architecture.

⚠️ Note: This project is built for development and testing.
For production, ensure secure API keys, HTTPS, and proper rate limiting.

πŸš€ Features

  • 🧠 Multi-Agent System with specialized roles (Engineering Lead, Backend Engineer, Frontend Engineer, Service Runner)\
  • πŸ“ Automated Design generation from high-level requirements\
  • πŸ’» Python Code Generation with clean, efficient implementation\
  • 🎨 Gradio UI Generation for instant prototypes and demos\
  • ▢️ Automatic Service Runner to launch generated applications\
  • πŸ”§ Terminal Tool Integration for command execution\
  • πŸ“š YAML-based Configuration for agents and tasks

🧠 Tech Stack

Technology Version Description
Python 3.10+ Core language
CrewAI 1.6.0 Multi-agent orchestration framework
OpenAI API GPT-4o LLM for code generation
Gradio 6.0.1+ Interactive UI framework
Hatchling Latest Build system

βš™οΈ Prerequisites

Before running the project, ensure you have:

  • 🐍 Python 3.10+\
  • πŸ“¦ pip or uv (recommended)\
  • 🌐 Git\
  • πŸ”‘ OpenAI API key

πŸ› οΈ Installation

git clone https://github.com/ReZaiden/Python-Developer-Agent-with-crewai.git
cd Python-Developer-Agent-with-crewai
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -e .

Or using uv (faster):

uv sync

πŸ—οΈ Edit .env file

  1. Rename .env.sample file to .env
  2. Add your OpenAI API key:
MODEL=gpt-4o-mini
OPENAI_API_KEY=your_openai_api_key_here

▢️ Run the Project

Using Gradio UI:

source .venv/bin/activate  # On Windows: .venv\Scripts\activate
python src/project/app.py

Then go to http://localhost:11228/

Using CLI:

python -m project

Or:

run_crew

πŸ“‘ How It Works

  1. User provides requirements β†’ Describe what Python application you need\
  2. Engineering Lead β†’ Creates detailed design with classes and methods\
  3. Backend Engineer β†’ Writes clean Python implementation code\
  4. Frontend Engineer β†’ Builds a Gradio UI to demonstrate the backend\
  5. Service Runner β†’ Launches the generated application\
  6. Output saved β†’ All files saved in output/{module_name}/

🧩 Project Structure

src/
└── project/
    β”œβ”€β”€ __init__.py
    β”œβ”€β”€ app.py              # Gradio web interface
    β”œβ”€β”€ crew.py             # CrewAI agents and crew setup
    β”œβ”€β”€ main.py             # CLI entry point
    β”œβ”€β”€ config/
    β”‚   β”œβ”€β”€ agents.yaml     # Agent configurations
    β”‚   └── tasks.yaml      # Task definitions
    └── tools/
        β”œβ”€β”€ __init__.py
        └── run_terminal.py # Terminal execution tool
output/                     # Generated applications (created during execution)
pyproject.toml              # Project configuration
.env.sample                 # Environment variables template

πŸ€– Agents

Agent Role
Engineering Lead Designs the application architecture
Backend Engineer Implements Python code
Frontend Engineer Creates Gradio UI
Service Runner Runs the generated application

πŸ”’ Security Notes

  • Keep API keys inside .env\
  • Never commit .env to version control\
  • Use safe code execution mode for untrusted inputs

πŸ’‘ Future Improvements

  • Add more specialized agents\
  • Support for multiple programming languages\
  • Database integration for project history\
  • Enhanced error handling and validation

πŸ§‘β€πŸ’» Author

Developed by: ReZaiden
πŸ’Ό GitHub: @ReZaiden
πŸ“§ Contact: rezaidensalmani@gmail.com