repository loader for github and chatgpt
Project description
repo-loader
This is a fork of the very excellent gptrepo by zackees, which itself is a fork of gpt-repository-loader by mpoon.
Usage
pip install repo-loader
repo-loader # now output.txt should appear in the current directory
This tool concatenates through all the files in the repo and adds ai prompts which can be used for chat gpt conversations.
Simply open up the file, copy and paste it into the chat gpt window and then ask your question about the code.
This will be particularly useful when chat gpt4-32k is released. Right now this will only work on very small repos.
repo-loader
is a command-line tool that converts the contents of a Git repository into a text format, preserving the structure of the files and file contents. The generated output can be interpreted by AI language models, allowing them to process the repository's contents for various tasks, such as code review or documentation generation.
Contributing
Some context around building this is located here. Appreciate any issues and pull requests in the spirit of having mostly GPT build out this tool. Using ChatGPT Plus is recommended for quick access to GPT-4.
Running Tests
To run the tests for repo-loader
, follow these steps:
-
Ensure you have Python 3 installed on your system.
-
Navigate to the repository's root directory in your terminal.
-
Run the tests with the following command:
tox
Now, the test harness is added to the
repo-loader
project. You can run the tests by executing the commandtox
in your terminal.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Versions
- 1.0.3: Remove media files from concatenation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file repo-loader-0.1.2.tar.gz
.
File metadata
- Download URL: repo-loader-0.1.2.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92fbf6cd5cd2004a47309a8941f26dc86060c1567ae2b6b691e004a646ca6089 |
|
MD5 | 428227eaf747ca56f31f57b45f76c939 |
|
BLAKE2b-256 | d666f339a5e274e67097d3631c55bec686272e00eb55793396a5674458cb8773 |
File details
Details for the file repo_loader-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: repo_loader-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 568d0bc38910f7b09ab92c75adaf9740ffb8872dfe09f2eead8397926c126783 |
|
MD5 | fd7a1147a83a89bb018b879cc562a0ca |
|
BLAKE2b-256 | 000949f2f24056b283cea1344f5f6e0eae3719bbf46dce7340060f26de3c3d12 |