Skip to main content

read and cache structured documents from remote for LLM agents

Project description

LLM API Scope (apiscope)

a tool for LLM agents to read and cache structured documents from remote.

install

use pipx for isolated installation:

pipx install llm-api-scope

how it works

apiscope fetches specifications from local files or remote URLs, caches them, and outputs structured JSON that agents can consume directly. no html parsing, no keyword ranking — just faithful extraction from the source document.

commands

run apiscope --help to see all available commands.

openapi

browse OpenAPI specifications with subcommands for discovering, listing, and describing operations.

aliases let you register frequently used specs once and reference them by short name. fetching is transparent — local copies are cached for fast repeat access, and a proxy can be configured for restricted networks.

rfc

read, search, and navigate RFC documents from the IETF.

the metadata index is mirrored once via rsync. individual text files are fetched on demand and cached locally. you can browse the table of contents, jump to a section (XML) or page (TXT), filter the index by status or source, and run keyword searches against fulltext content.

repo

sync documentation directories from any git repository to a local cache.

register repositories by URL with a target subdirectory and a ref — a branch, tag, or commit. the sync command clones with shallow depth, blobless filter, and sparse checkout so only the needed tree and files come over the wire. extracted docs land in the cache under a stable hash path, and a configurable TTL avoids redundant re-fetches. provider-agnostic, zero auth.

future

  • read academic papers from arxiv
  • more formal document formats as the need arises

license

MIT

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_api_scope-0.7.0.tar.gz (23.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_api_scope-0.7.0-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file llm_api_scope-0.7.0.tar.gz.

File metadata

  • Download URL: llm_api_scope-0.7.0.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.27.0 CPython/3.14.5 Linux/6.17.0-1015-azure

File hashes

Hashes for llm_api_scope-0.7.0.tar.gz
Algorithm Hash digest
SHA256 38d218dd9abc589f1e8368ba51c9d37e2a4f2bbbaa464c5c64bc4204b91a7d0d
MD5 48536244f6b6f509697ab5d23554c4c7
BLAKE2b-256 cca972a2b387cbe1bf755112c42cbc966058afc29583d70aa6ba81b0eaae5a80

See more details on using hashes here.

File details

Details for the file llm_api_scope-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: llm_api_scope-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 29.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.27.0 CPython/3.14.5 Linux/6.17.0-1015-azure

File hashes

Hashes for llm_api_scope-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ac4442afc8b6d32c3d727bba9b245a428db2843698599ceab7a37c60072b5cb
MD5 16352af67e3bdb5007b2a39c4c1e047b
BLAKE2b-256 387e836227d573499ef6cc5d8612fde37f6280bf471935ddadf2241d30b5b869

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