arxiv.py — arXiv API Python Wrapper
Pythonic client for the arXiv API: search, download, and stream 2M+ preprints by query, author, or ID.
arxiv.py — arXiv API Python Wrapper
arxiv.py is a lightweight, well-maintained Python wrapper for the arXiv API, enabling agents and researchers to search, stream, and download papers from the largest open-access preprint repository with 2M+ papers.
Key features
- Rich search with filters: category, date range, author, abstract keywords
- Lazy streaming results — avoids loading full pages at once
- Auto-retry on transient API errors
- One-line PDF download
- Typed
Resultobjects with all metadata (DOI, categories, journal ref)
Quick start
pip install arxiv
import arxiv
search = arxiv.Search(
query="large language models",
max_results=5,
sort_by=arxiv.SortCriterion.SubmittedDate
)
for r in arxiv.Client().results(search):
print(r.title, r.pdf_url)
r.download_pdf(dirpath="./papers")
npx ai-supply add arxiv-py-api-wrapper
Curated mirror of the open-source arxiv.py (MIT). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/arxiv-py-api-wrapper/check). Click a policy:
Consume arxiv.py — arXiv API Python Wrapper programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/arxiv-py-api-wrapper
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/arxiv-py-api-wrapper/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add arxiv-py-api-wrapper
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/arxiv-py-api-wrapper/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "arxiv-py-api-wrapper" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.