https://github.com/kapil7982/codeconverter
This application allows you to convert code from one programming language to another, perform code debugging, and check the quality of the code using the OpenAI GPT-3.5 Turbo model. It provides a simple API for developers to interact with these features.
https://github.com/kapil7982/codeconverter
api flask python3 react
Last synced: 2 months ago
JSON representation
This application allows you to convert code from one programming language to another, perform code debugging, and check the quality of the code using the OpenAI GPT-3.5 Turbo model. It provides a simple API for developers to interact with these features.
- Host: GitHub
- URL: https://github.com/kapil7982/codeconverter
- Owner: Kapil7982
- Created: 2023-10-25T17:02:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T10:30:55.000Z (over 2 years ago)
- Last Synced: 2025-01-26T05:44:24.684Z (over 1 year ago)
- Topics: api, flask, python3, react
- Language: Python
- Homepage: https://codeconverter-frontend.onrender.com/
- Size: 6.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Code Conversion and Quality Check Application
This application allows you to convert code from one programming language to another, perform code debugging, and check the quality of the code using the OpenAI GPT-3.5 Turbo model. It provides a simple API for developers to interact with these features.
## Getting Started
Follow the steps below to set up and run the application on your local machine.
### Prerequisites
Before you begin, make sure you have the following software installed:
- Python : [[Download and install Node.js](https://nodejs.org/](https://www.python.org/downloads/))
- flask: Install flask
### Installation
1. Clone this repository to your local machine:
```bash
git clone
```
### API Endpoints
Code Conversion
Endpoint: /api/convert
Method: POST
Request Body:
```bash
{
"code": "Your code here",
"targetLanguage": "Target language"
}
```
Response
```bash
{
"output": "Converted code"
}
```
Code Debugging
Endpoint: /api/debug
Method: POST
Request Body:
```bash
{
"code": "Your code here",
"targetLanguage": "Target language
}
```
Response
```bash
{
"debuggingOutput": "Debugged code"
}
```
Code Quality Check
Endpoint: /api/quality
Method: POST
Request Body:
```bash
{
"code": "Your code here",
"targetLanguage": "Target language"
}
```
Response
```bash
{
"qualityOutput": "Quality assessment result"
}
```
### Customization
You can customize the behavior of the code conversion, debugging, and quality check by adjusting parameters like Temperature, Maximum Length, Stop Sequences, and Top P in the app.py file.
