https://github.com/pmutua/codecraftgpt
A web app with a suite of AI-driven tools for intelligent code refactoring, style checking, test case generation, and cross-language translation, built with Python, Streamlit, and OpenAI.
https://github.com/pmutua/codecraftgpt
chatgpt chatgpt-api generative-ai langchain openai openai-api prompt-engineering python python-project python3 streamlit streamlit-application streamlit-option-menu streamlit-web streamlit-webapp
Last synced: 11 months ago
JSON representation
A web app with a suite of AI-driven tools for intelligent code refactoring, style checking, test case generation, and cross-language translation, built with Python, Streamlit, and OpenAI.
- Host: GitHub
- URL: https://github.com/pmutua/codecraftgpt
- Owner: pmutua
- License: mit
- Created: 2023-11-13T10:45:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-29T08:46:22.000Z (about 2 years ago)
- Last Synced: 2025-03-23T23:26:46.618Z (12 months ago)
- Topics: chatgpt, chatgpt-api, generative-ai, langchain, openai, openai-api, prompt-engineering, python, python-project, python3, streamlit, streamlit-application, streamlit-option-menu, streamlit-web, streamlit-webapp
- Language: Python
- Homepage: https://codecraftgpt.streamlit.app/
- Size: 2.25 MB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeCraftGPT
CodeCraft GPT is an innovative, all-in-one platform harnessing the power of advanced Language Models (OpenAI). It seamlessly integrates four key components to elevate the coding experience for developers.
## Demo

## Prerequisites
Before using this application, ensure you have the following prerequisites in place:
1. **Python:**
- This project requires **Python 3.8 >= 3.11.** Ensure you have Python installed on your system.
- You can download Python from the [official Python website](https://www.python.org/downloads/).
2. **OpenAI API Key:**
- To access certain features and functionalities, you'll need a valid [OpenAI API key](https://platform.openai.com/api-keys).
- If you don't have an API key, you can obtain one by following the instructions on the [OpenAI platform](https://platform.openai.com/signup).
3. **LangChain:**
- LangChain is a framework designed to simplify the creation of applications using large language models. As a language model integration framework, LangChain's use-cases largely overlap with those of language models in general, including document analysis and summarization, chatbots, and code analysis. Learn about [LangChain](https://python.langchain.com/).
4. **Streamlit:**
- Streamlit is a free and open-source framework to rapidly build and share beautiful machine learning and data science web apps. It is a Python-based library specifically designed for machine learning engineers. Learn about [Streamlit](https://streamlit.io/). [Installation requirements](https://docs.streamlit.io/library/get-started/installation)
5. **Streamlit-Option-Menu:**
- streamlit-option-menu is a simple Streamlit component that allows users to select a single item from a list of options in a menu. It is similar in function to st. selectbox(), except that: It uses a simple static list to display the options instead of a dropdown. Learn about [Streamlit-Option-Menu](https://github.com/victoryhb/streamlit-option-menu#:~:text=streamlit%2Doption%2Dmenu-,streamlit%2Doption%2Dmenu%20is%20a%20simple%20Streamlit%20component%20that%20allows,options%20instead%20of%20a%20dropdown).
## How to Set Up the Project Locally
Follow these steps to set up the project:
1. Navigate to your workspace
2. Create a virtual environment by running: `python -m venv env`
3. Activate your virtual environment based on your operating system:
```shell
#Windows
env/Scripts/activate
#Linux or MacOS
source env/bin/activate
```
4. Install dependencies by running the command:
`pip install -r requirements.txt`
5. Run the application using the following command:
`streamlit run main.py`
Ensure you follow these steps to successfully set up and run the project. You're ready to explore the full capabilities of our AI-powered development tools.
## Key Features
### RefactorRite (Code Refactoring Advisor) 💡
Leverage AI-driven code analysis and automated refactoring to enhance code readability, boost performance, and improve maintainability. RefactorRite suggests intelligent refinements and even automates the refactoring process, allowing developers to focus on building robust software.
### StyleSculpt (Code Style Checker) 🎨
Ensure code quality and adherence to coding standards with StyleSculpt. This AI tool provides feedback on coding style, offering suggestions for improvement. By enforcing best practices, StyleSculpt enhances code quality and consistency.
### TestGenius (Code Testing and Test Case Generation) 🧪
Empower developers to create reliable and comprehensive test suites effortlessly. TestGenius uses AI to generate test cases for code snippets, functions, or classes, fostering correctness and enhancing test coverage. This accelerates the development cycle while ensuring robust software quality.
### LangLink (Code Translation and Cross-Language Compatibility) 🌐
Overcome language barriers with LangLink, an AI-powered tool facilitating smooth code translation between programming languages. Developers can confidently migrate codebases, ensuring compatibility and seamless transitions across different languages.
## Technologies Used
1. [Python](https://www.python.org/downloads/)
2. [OpenAI](https://platform.openai.com)
3. [LangChain](https://python.langchain.com/)
4. [StreamLit](https://streamlit.io/)
## Members
### Core Team
- **[Philip Mutua](https://github.com/pmutua)**
- Role: Team Lead and Developer
- **[Tusiime Ronald](https://github.com/tron66)**
- Role: Developer
- **[Harrison Wachira](https://github.com/hnjogu)**
- Role: Developer