Skip to main content

Load SourceHut repository contents as LLM fragments

Project description

llm-fragments-sourcehut

PyPI Changelog License

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

llm_fragments_sourcehut-0.1.2.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_fragments_sourcehut-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file llm_fragments_sourcehut-0.1.2.tar.gz.

File metadata

File hashes

Hashes for llm_fragments_sourcehut-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2b0e586c50a3591d5d9467ccfcf6bce87160b3601dbe2724f8a1bc435fd64aec
MD5 dfa09c3ad13af0333697474852bbb971
BLAKE2b-256 82aa073535868961c54a1686ac6320e7f542041dd688a8c68f911201d5139038

See more details on using hashes here.

File details

Details for the file llm_fragments_sourcehut-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_fragments_sourcehut-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 76da037d792ccb0ed25e4e4ff5108fff0c21d891bffc96a35d2565de38eb59b2
MD5 cd852b3e60776849de5dc70a8cf5d2fd
BLAKE2b-256 7e8d5f89322e62d6ed37a0857ee5252a040d2315ff1e0aabb8cc0f8243d4a6da

See more details on using hashes here.

Supported by

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