LLM fragment loader for Python symbols
Project description
llm-fragments-symbex
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
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11ed39f5700cb1a8d42934062deecdfafb8231929b2d4832b47a248240dbe084
|
|
| MD5 |
d9659db81ad1597a1eebd5d8b41d26c6
|
|
| BLAKE2b-256 |
f361675bd80af9cea4e7e42b710506edff1b8f4f805640862dd19920d65e5ffe
|
Provenance
The following attestation bundles were made for llm_fragments_symbex-0.1.tar.gz:
Publisher:
publish.yml on simonw/llm-fragments-symbex
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_fragments_symbex-0.1.tar.gz -
Subject digest:
11ed39f5700cb1a8d42934062deecdfafb8231929b2d4832b47a248240dbe084 - Sigstore transparency entry: 201211454
- Sigstore integration time:
-
Permalink:
simonw/llm-fragments-symbex@0716f82b210794d24ac4db51ec41c101ba74685f -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0716f82b210794d24ac4db51ec41c101ba74685f -
Trigger Event:
release
-
Statement type:
File details
Details for the file llm_fragments_symbex-0.1-py3-none-any.whl.
File metadata
- Download URL: llm_fragments_symbex-0.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8e0d67c4e704684b14d1d725e252eec7c558fb3e01b674dda2c7233f8065007
|
|
| MD5 |
60fe49ed41d09d0207fccd424f500d29
|
|
| BLAKE2b-256 |
6d86a0d9216e7dc4334c88ef3a59a9fed20f77fa4d5017b4f61c0325019d59cc
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_fragments_symbex-0.1-py3-none-any.whl -
Subject digest:
d8e0d67c4e704684b14d1d725e252eec7c558fb3e01b674dda2c7233f8065007 - Sigstore transparency entry: 201211459
- Sigstore integration time:
-
Permalink:
simonw/llm-fragments-symbex@0716f82b210794d24ac4db51ec41c101ba74685f -
Branch / Tag:
refs/tags/0.1 - Owner: https://github.com/simonw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0716f82b210794d24ac4db51ec41c101ba74685f -
Trigger Event:
release
-
Statement type: