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.
- 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.
Follow these steps to set up the project locally:
-
Clone the repository
git clone https://github.com/decodeaditya/Kapany.git -
Install dependencies
pip install -r requirements.txt -
Run the app
python main.py <YOUR_FILE_PATH> --target <TARGET_LANGUAGE>