Skip to main content

Load files from a local directory as fragments

Project description

llm-fragments-github

PyPI Changelog Tests License

Load GitHub repository contents as fragments

Installation

Install this plugin in the same environment as LLM.

llm install llm-fragments-dir

Usage

Use -f dir:path/to/directory to recursively include every text file from the specified directory as a fragment. For example:

llm -f dir:/home/user/src/repo "Suggest new features for this tool"

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-fragments-dir
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest .

Project details


Release history Release notifications | RSS feed

This version

0.1

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_dir-0.1.tar.gz (7.3 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_dir-0.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file llm_fragments_dir-0.1.tar.gz.

File metadata

  • Download URL: llm_fragments_dir-0.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for llm_fragments_dir-0.1.tar.gz
Algorithm Hash digest
SHA256 73d792ad98e60df053fcea641d9e7f7d829415aaaa9029ce22bed74590a4edb3
MD5 196851d04bcb8b78c1056d1ac4f85bea
BLAKE2b-256 491ecc4597e371d9a32c42ba132c48847051da1a16120f9cce07c1ebc64f4ee1

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_fragments_dir-0.1.tar.gz:

Publisher: publish.yml on RKeelan/llm-fragments-dir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file llm_fragments_dir-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_fragments_dir-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95fe24487553b6fcd5ab1c6c438d9437dc0e958ddcb3a08d9e8c2c78ffa7149f
MD5 ea41b5cd7d33e002f4a435728619f968
BLAKE2b-256 d19a60907fddc4ed5efe5e65f956e76d3e1e02daddd90228fbb026d3d08dce05

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_fragments_dir-0.1-py3-none-any.whl:

Publisher: publish.yml on RKeelan/llm-fragments-dir

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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