Skip to content

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.

License

Notifications You must be signed in to change notification settings

pmutua/CodeCraftGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeCraftGPT

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

CodeCraftGPT 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.  
  2. OpenAI API Key:
    • To access certain features and functionalities, you'll need a valid OpenAI API key.
    • If you don't have an API key, you can obtain one by following the instructions on the OpenAI platform.  
  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.  
  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. Installation requirements  
  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.

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:

    #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
  2. OpenAI
  3. LangChain
  4. StreamLit

Members

Core Team

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages