Skip to main content

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.

Linting

MacOS_Tests Ubuntu_Tests Win_Tests

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:

  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:

    tox
    

    Now, the test harness is added to the repo-loader 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.

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

repo-loader-0.1.2.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

repo_loader-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for repo-loader-0.1.2.tar.gz
Algorithm Hash digest
SHA256 92fbf6cd5cd2004a47309a8941f26dc86060c1567ae2b6b691e004a646ca6089
MD5 428227eaf747ca56f31f57b45f76c939
BLAKE2b-256 d666f339a5e274e67097d3631c55bec686272e00eb55793396a5674458cb8773

See more details on using hashes here.

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

Hashes for repo_loader-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 568d0bc38910f7b09ab92c75adaf9740ffb8872dfe09f2eead8397926c126783
MD5 fd7a1147a83a89bb018b879cc562a0ca
BLAKE2b-256 000949f2f24056b283cea1344f5f6e0eae3719bbf46dce7340060f26de3c3d12

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page