Skip to content

decodeaditya/Kapany

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kapany - Converts your Code

A Way to Help you Convert your Code with Help of LLM, Because many times we need to Convert our Code from One Language to Other or We Just need to update it from One Version to Other. So this Might Be useful.

You can push with your Improvements and I Will Merge It.

How It works

  • Verification: Checks for Syntax Error.
  • Conversion: If Everything Goes Fine it will Convert the Code using LLM (Cloud version uses HACK club ai).
  • API key: In [transfunctions > read_and_convert_code.py] I have used Hackclub API key and google/gemini-2.5-flash. You can Customize it with your Key and Modal.

Getting Started

Follow these steps to set up the project locally:

  1. Clone the repository

    git clone https://github.com/decodeaditya/Kapany.git
    
  2. Install dependencies

    pip install -r requirements.txt
    
  3. Run the app

    python main.py <YOUR_FILE_PATH> --target <TARGET_LANGUAGE>
    

About

Made to Convert Code file (one to other) or Update the version(Suppose 2.0 to 3.14) using LLM

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors