Load SourceHut repository contents as LLM fragments
Project description
llm-fragments-sourcehut
Load SourceHut repository contents as fragments
Installation
Install this plugin in the same environment as LLM.
llm install llm-fragments-sourcehut
Usage
Use -f srht:~user/repo to include every text file from the specified SourceHut repository as a fragment.
The prefix accepts the standard ~user/repo shorthand format. For example:
llm -f srht:~amolith/adresilo-server 'suggest new features for this tool'
There's also a fallback to allow srht:user/repo.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-fragments-sourcehut
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
Contributions are welcome
This repo is on SourceHut (repo) and Radicle (web,
rad:z4RLodmmoj1APnZxC1onrYBuzuHtC, what is Radicle?).
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_sourcehut-0.1.2.tar.gz.
File metadata
- Download URL: llm_fragments_sourcehut-0.1.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b0e586c50a3591d5d9467ccfcf6bce87160b3601dbe2724f8a1bc435fd64aec
|
|
| MD5 |
dfa09c3ad13af0333697474852bbb971
|
|
| BLAKE2b-256 |
82aa073535868961c54a1686ac6320e7f542041dd688a8c68f911201d5139038
|
File details
Details for the file llm_fragments_sourcehut-0.1.2-py3-none-any.whl.
File metadata
- Download URL: llm_fragments_sourcehut-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76da037d792ccb0ed25e4e4ff5108fff0c21d891bffc96a35d2565de38eb59b2
|
|
| MD5 |
cd852b3e60776849de5dc70a8cf5d2fd
|
|
| BLAKE2b-256 |
7e8d5f89322e62d6ed37a0857ee5252a040d2315ff1e0aabb8cc0f8243d4a6da
|