semvec/pypi-packages huggingface dataset:
gptrepo 1.0.3
gpt repository loader
License: BSD 3-Clause License
Requires Python: >=3.7
Keywords: template-python-cmd

# gptrepo

This is a fork of the very excellent [gpt-repository-loader](https://github.com/mpoon/gpt-repository-loader) by mpoon.


Usage
```python
pip install gptrepo
gptrepo  # 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.

[![Linting](https://github.com/zackees/gptrepo/actions/workflows/lint.yml/badge.svg)](https://github.com/zackees/gptrepo/actions/workflows/lint.yml)

[![MacOS_Tests](https://github.com/zackees/gptrepo/actions/workflows/push_macos.yml/badge.svg)](https://github.com/zackees/gptrepo/actions/workflows/push_macos.yml)
[![Ubuntu_Tests](https://github.com/zackees/gptrepo/actions/workflows/push_ubuntu.yml/badge.svg)](https://github.com/zackees/gptrepo/actions/workflows/push_ubuntu.yml)
[![Win_Tests](https://github.com/zackees/gptrepo/actions/workflows/push_win.yml/badge.svg)](https://github.com/zackees/gptrepo/actions/workflows/push_win.yml)

`gptrepo` 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](https://github.com/mpoon/gpt-repository-loader/discussions/18). Appreciate any issues and pull requests in the spirit of having mostly GPT build out this tool. Using [ChatGPT Plus](https://chat.openai.com/) is recommended for quick access to GPT-4.

## Running Tests

To run the tests for `gptrepo`, follow these steps:

1. Ensure you have Python 3 installed on your system.
2. Navigate to the repository's root directory in your terminal.
3. Run the tests with the following command:

   ```bash
   tox
   ```
Now, the test harness is added to the `gptrepo` project. You can run the tests by executing the command `tox` 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.