Back to Home
About
apcore-toolkit is a collection of consolidated utilities and base classes designed to simplify the creation of apcore adapters for various web frameworks and libraries. It provides a universal scanner base for endpoint discovery, powerful schema extraction logic for Pydantic and Zod models, and automated binding generation. By centralizing the heavy lifting of framework integration, the toolkit ensures cross-framework consistency and drastically reduces the boilerplate required to make any application AI-perceivable.
Features
Universal Scanner Base: Robust framework-agnostic logic for discovering endpoints and modules
Schema Extraction: High-performance extraction of JSON schemas from Pydantic and Zod models
Binding Generation: Automated creation of apcore-compatible module definitions
Cross-Framework Consistency: Shared logic ensures identical behavior across all adapters
Boilerplate Reduction: Minimizes code needed to build new framework integrations
Validation Utilities: Helper functions for runtime input/output contract verification
Pydantic V2 Support: First-class integration with modern Python type validation
Get Started
Python Implementation
Python utilities for building apcore adapters (Pydantic, Django, Flask).
Install
pip install apcore-toolkitQuick Start
from apcore_toolkit import UniversalScanner, SchemaExtractor
# Create a scanner for a new web framework
class MyFrameworkScanner(UniversalScanner):
def discover_endpoints(self):
pass
# Extract schema from a Pydantic model
extractor = SchemaExtractor()
json_schema = extractor.extract(MyPydanticModel)