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.1.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.1-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_api_scope-0.6.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f1acb50dfdd133b413dd6000b6ce1886502887d9526ba206bab819ba4f7f5441
MD5 85f8d26b8194063daeb7ba58f240dc3a
BLAKE2b-256 318141cecba30784ebc0d4ad81cae109f591bbaa246cd2002413c5c10d206004

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_api_scope-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 25.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 db11b5517075172d24fe11a6362e76c89e4369b1dd0760b02c16c5792d58c125
MD5 9a2008572e5050eb35c63c186aad2323
BLAKE2b-256 ea6b61e9a34e744f26deaca23d3f5bc2bacc4357d28ca9ed6eac8bee8aa4f3f1

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