Load GitHub repository contents as LLM fragments
Project description
llm-fragments-github
Load GitHub repository contents as fragments
Installation
Install this plugin in the same environment as LLM.
llm install llm-fragments-github
Usage
Use -f github:user/repo to include every text file from the specified GitHub repo as a fragment. For example:
llm -f github:simonw/files-to-prompt 'suggest new features for this tool'
Ue -f issue:user/repo/number to include the combined Markdown text of a specific issue. For example:
llm -f https://raw.githubusercontent.com/simonw/llm-fragments-github/refs/tags/0.1/llm_fragments_github.py \
-f issue:simonw/llm-fragments-github/3 \
'Propose an implementation for this issue'
The issue: prefix can also accept a URL to a GitHub issue, for example:
llm -f issue:https://github.com/simonw/llm-fragments-github/issues/3 \
'muse on this a bit'
Set an API token in the environment variable GITHUB_TOKEN to access private repositories or increase your rate limit.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-fragments-github
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
python -m pytest
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_fragments_github-0.2.tar.gz.
File metadata
- Download URL: llm_fragments_github-0.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ea3a82a42e1507e1ba9a23b2263d1e90dfea1a31ceec05288ab8d8643d863ba
|
|
| MD5 |
2849567975666c177c96a662b6d2ad19
|
|
| BLAKE2b-256 |
2425095793cf0046a4dbbb197bec82b4503ae1e0ff612d5e5b64a19d030bf150
|
Provenance
The following attestation bundles were made for llm_fragments_github-0.2.tar.gz:
Publisher:
publish.yml on simonw/llm-fragments-github
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_fragments_github-0.2.tar.gz -
Subject digest:
3ea3a82a42e1507e1ba9a23b2263d1e90dfea1a31ceec05288ab8d8643d863ba - Sigstore transparency entry: 199816791
- Sigstore integration time:
-
Permalink:
simonw/llm-fragments-github@e56610f24693a2a6075c9397c4334ce5ce4cc37c -
Branch / Tag:
refs/tags/0.2 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e56610f24693a2a6075c9397c4334ce5ce4cc37c -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_fragments_github-0.2-py3-none-any.whl.
File metadata
- Download URL: llm_fragments_github-0.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2017aa1abbd21293641c8ec0c73faa8d9f0ef357950a3d28966d4ec9776bbe9
|
|
| MD5 |
9a049b7bc1b006b3edb2794169e6d6ee
|
|
| BLAKE2b-256 |
9e31772bc2d1c4c21166bdacadb9cd02d09737059730154230c5db543b86d353
|
Provenance
The following attestation bundles were made for llm_fragments_github-0.2-py3-none-any.whl:
Publisher:
publish.yml on simonw/llm-fragments-github
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_fragments_github-0.2-py3-none-any.whl -
Subject digest:
f2017aa1abbd21293641c8ec0c73faa8d9f0ef357950a3d28966d4ec9776bbe9 - Sigstore transparency entry: 199816792
- Sigstore integration time:
-
Permalink:
simonw/llm-fragments-github@e56610f24693a2a6075c9397c4334ce5ce4cc37c -
Branch / Tag:
refs/tags/0.2 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e56610f24693a2a6075c9397c4334ce5ce4cc37c -
Trigger Event:
release
-
Statement type: