apcore-toolkit
Cross-language metadata pipeline for building apcore adapters
apcore-toolkit turns framework routes, convention-based functions, or complete OpenAPI 3.x documents into canonical ScannedModule values. It then provides schema and metadata refinement, display and AI enrichment, byte-equivalent presentation contracts, binding and code generation, and direct Registry or HTTP-proxy registration. Its RFC 8628 Device Authorization Flow client adds a credential-acquisition surface — a deterministic polling state machine, TokenSet lifecycle, and pluggable TokenStore — protocol-only, with no terminal output of its own. Python, TypeScript, and Rust SDKs share the same core contracts while each adapter remains responsible for framework-specific discovery.
Features
Get Started
Python utilities for building apcore adapters (Pydantic, Django, Flask).
$ pip install apcore-toolkitfrom apcore_toolkit import OpenAPIScanner, load_spec
# Scan an OpenAPI 3.0 or 3.1 document
spec = load_spec("openapi.json")
modules = OpenAPIScanner().scan(spec)
# Export modules with YAMLWriter, or register them with a writer