Skip to main content

LLM fragment loader for Python symbols

Project description

llm-fragments-symbex

PyPI Changelog Tests License

LLM fragment loader for Python symbols

Installation

Install this plugin in the same environment as LLM.

llm install llm-fragments-symbex

Usage

Use the fragment loader like this:

llm -f symbex:path/to/directory

This will load the function, class and method signatures of every Python file in that directory (and its subdirectories) along with their docstrings and concatenate them into a single fragment.

It uses the same AST parsing logic as Symbex.

Development

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

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

Now install the dependencies and test dependencies:

python -m pip install -e '.[test]'

To run the tests:

python -m 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_symbex-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_symbex-0.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_fragments_symbex-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_symbex-0.1.tar.gz
Algorithm Hash digest
SHA256 11ed39f5700cb1a8d42934062deecdfafb8231929b2d4832b47a248240dbe084
MD5 d9659db81ad1597a1eebd5d8b41d26c6
BLAKE2b-256 f361675bd80af9cea4e7e42b710506edff1b8f4f805640862dd19920d65e5ffe

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on simonw/llm-fragments-symbex

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_symbex-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_fragments_symbex-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8e0d67c4e704684b14d1d725e252eec7c558fb3e01b674dda2c7233f8065007
MD5 60fe49ed41d09d0207fccd424f500d29
BLAKE2b-256 6d86a0d9216e7dc4334c88ef3a59a9fed20f77fa4d5017b4f61c0325019d59cc

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on simonw/llm-fragments-symbex

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