CodeToGPT
Welcome to CodeToGPT, a powerful tool designed to simplify the process of preparing codebases for interactions with AI models like ChatGPT. By concatenating multiple code files into well-organized documents, this application enhances the ease and efficiency of providing complex code contexts to AI, facilitating more accurate and context-aware responses.
Features
- Multi-Language Support: Handles both Python (
*.py) and Java (*.java), creating separate output files for each language to ensure clarity and organization. - Automated Concatenation: Automatically combines all code files from a specified directory into concise, single documents—ideal for large projects.
- Ease of Use: Offers a simple command-line interface that allows for straightforward operations without the need for complex GUIs.
Getting Started
Prerequisites
Before you start using CodeToGPT, make sure you have Python 3.6 or higher installed on your machine.
Installation
To install CodeToGPT, follow these steps:
pip install code-to-gpt
Usage
To run CodeToGPT, navigate to your project directory and execute:
codetogpt '/path/to/source/folder'
Usage
This command will generate:
combined_python_code.txtfor Python files.combined_java_code.txtfor Java files.
These files will be created in the specified source folder, containing all the code from files of the respective languages found within that directory and its subdirectories.
Contributing
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contact
Sameel Shahid - @sameelshahid
Abdul Jaleel Khan- @ajk
Project Link: https://github.com/sameelshahid/codetogpt
Metadata
Release files for code-to-gpt 0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| code-to-gpt-0.6.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| code_to_gpt-0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / code-to-gpt-0.6.tar.gz
| Download URL | code-to-gpt-0.6.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10366d41d41a530b07685e7175c9afb4f3146de382f829633027dacc98627511
|
|
BLAKE2b-256 checksum How to use checksums |
e2b5215bc5663b34129ac2959fd553c2825e66d6ed64068f0c5d5d588529c8c7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.6
|
Release files / code_to_gpt-0.6-py3-none-any.whl
| Download URL | code_to_gpt-0.6-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55cc954455a4606c67b13d53548b83e85a51c545f3736493db0924fd97354fa6
|
|
BLAKE2b-256 checksum How to use checksums |
2475bf1b11ef1348a96ffc61b1a38af48c126c0eec0e27303e5ea04785f827e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.9.6
|