Skip to main content

llm-arxiv

PyPI Changelog Tests License

LLM plugin for loading arXiv paper text content using the arxiv API and PyMuPDF.

Installation

Install this plugin in the same environment as LLM.

llm install llm-arxiv

This plugin requires the arxiv and PyMuPDF packages.

Usage

This plugin adds support for the arxiv: fragment prefix. You can use it to load the full text content of a paper from its arXiv ID or URL.

# Load by ID (new format)
llm fragment arxiv:2310.06825

# Load by ID (old format)
llm fragment arxiv:hep-th/0101001

# Load by URL
llm fragment arxiv:https://arxiv.org/abs/2310.06825

You can pipe the output to LLM commands:

llm -f arxiv:2310.06825 -m claude-3-haiku "Summarize this paper"

Development

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

cd llm-arxiv
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

# Install in editable mode with test dependencies
python -m pip install -e '.[test]'

To run the tests:

pytest

Metadata

Release files for llm-arxiv 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-arxiv 0.1.2
File Size Uploaded
llm_arxiv-0.1.2.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-arxiv 0.1.2
File Interpreter ABI Platform
llm_arxiv-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / llm_arxiv-0.1.2.tar.gz

Download URL llm_arxiv-0.1.2.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3983711354f23a569916f92ccf09a3a31287fa28a30f61f5a81373a0fb15f196
BLAKE2b-256 checksum
How to use checksums
a8ee0da4df0e2c16d216a8a7a63aac5f7978b7bec7f8e7e49229603b51329459
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2025.

Transparency log

Release files / llm_arxiv-0.1.2-py3-none-any.whl

Download URL llm_arxiv-0.1.2-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0278cfc68878a2e06bf82a615c6018c8ec5c3f559ebf4d0b326c5477611e6434
BLAKE2b-256 checksum
How to use checksums
c6ed04ea098f5716060149ea7582234027969fa53b581f2d376307ce0593a3a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page