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.6.0.tar.gz (21.0 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.6.0-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_api_scope-0.6.0.tar.gz
  • Upload date:
  • Size: 21.0 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.6.0.tar.gz
Algorithm Hash digest
SHA256 40a3aa76b07e4ca4358c7e0babf782287c06e2b6da96d3769193e0d4391382dd
MD5 92c5dc1d1865bbbec8735ffd3158366e
BLAKE2b-256 279c97c9bd58ba6b9d5ab27db66e5c84e8218c28890f85699b16850e66f9fff8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_api_scope-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 25.7 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75ad1cd05f6a4246ef601cc3f497e8f0dd5f54f47a8ac4159fd83d83320386f0
MD5 019886530a2a309c550b6f462058ba56
BLAKE2b-256 b3664e8608fcfe2c0e7e4c2b34ec1ef321d8e526673e54e3074ba8bf6a8f1175

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