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

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.1.tar.gz (7.2 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for llm_fragments_sourcehut-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1e2eda53cd3ce6297772134c5593b1e51fa435711b1bb0becc6aed787a943b67
MD5 01b33e9d536eca72015a3dfc98c1bb28
BLAKE2b-256 2150436dceac83cf4c0e92e0470270f0e614c3396b0506189c75d298be364c31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for llm_fragments_sourcehut-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c16729d69e95215489d4bbce0e8cfaa583623d77281a3fd803fa20a3f9f6025b
MD5 153f863d1511bf9c5a764bb13dd25650
BLAKE2b-256 2ba081032bea680f9cb641c817305978fae8cad3752025ba19457ebb649003b2

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