Skip to main content

LLM fragments plugin for PyPI packages metadata

Project description

llm-fragments-pypi

Load PyPI package metadata as LLM fragments.

Installation

Install this plugin in the same environment as LLM.

llm install llm-fragments-pypi

Usage

Use -f pypi:package_name to include the package's README and metadata as fragments.

# Retrieve a package's latest version
llm -f pypi:polars "How does the performance of polars compare to pandas?"

You can optionally specify a version with the @version suffix:

# Retrieve a specific version
llm -f pypi:pydantic@1.6 "What are the Python versions supported by pydantic?"

You can combine multiple fragments:

llm -f pypi:litestar -f pypi:fastapi \
  "What are some similarities and differences between litestar and fastapi?"

Development

Local Setup

To set up this plugin locally, use uv:

uv run llm install -e .

It'll take care of creating a virtual environment, installing the dependencies, and you can run a uv run llm instance that will use the local version of the plugin.

Dev dependencies

Install the dev dependencies in your local environment:

uv sync --group dev

Linting & formatting

You can format and lint the code with ruff:

uv run ruff format .
uv run ruff check .

And run the pre-commit hooks:

uv run pre-commit install

Tests

Run tests:

uv run 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_pypi-0.1.0.tar.gz (42.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_pypi-0.1.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file llm_fragments_pypi-0.1.0.tar.gz.

File metadata

  • Download URL: llm_fragments_pypi-0.1.0.tar.gz
  • Upload date:
  • Size: 42.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.6.14

File hashes

Hashes for llm_fragments_pypi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d93157c061dcf98e1106b50298de3ab75a8b7b3fd991e228dae3cd0e7f0ba488
MD5 c9f4fa6658870be6052b5a6bbbbf4154
BLAKE2b-256 d6d8ef0e5c94f9bf2ebe900147553542a53012fe9c1f6a8071ed156e03d4f0db

See more details on using hashes here.

File details

Details for the file llm_fragments_pypi-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_fragments_pypi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 639b8ff54ce905e728b8582bb1b9fe6185aae44446fe6081381e8b2c7b659ba5
MD5 316bb069fdf9f8c426208f6f481b21b9
BLAKE2b-256 1dbaca184d65df06816f4f9da83bf7598c7aba169759d68b2990ff3580dff961

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