API Reference
xcoreSDK exposes 49 public symbols from a single import path: xcore.sdk.
| from xcore.sdk import AutoMixin, action, ok, cached, traced, on_event, ...
|
By category
| Category |
Key exports |
| AutoMixin |
AutoMixin |
| Decorators |
action, route, schema, validate_payload, require_service, trusted, sandboxed |
| DB Adapters |
BaseAsyncRepository, BaseSyncRepository, BaseMongoRepository, BaseRedisRepository |
| Events & Hooks |
on_event, on_hook, EventMixin, HookMixin, Event, HookResult |
| Observability |
traced, counted, timed, health_check, ObservabilityMixin, get_logger |
| Scheduler |
cron, interval, ScheduledMixin |
| Cache |
cached, invalidate |
| Auth |
AuthBackend, AuthPayload, register_auth_backend, get_auth_backend |
| Manifest |
PluginManifest, ResourceConfig, RuntimeConfig |
| Responses |
ok, error |
Full export list
| # Base classes
AutoMixin
TrustedBase
BasePlugin
ExecutionMode
PluginState
# Dispatch & routing
AutoDispatchMixin
RoutedPlugin
RouterRegistry
action
route
# Payload & access
schema
validate_payload
require_service
trusted
sandboxed
# Events & hooks
EventMixin
HookMixin
Event
HookResult
on_event
on_hook
# Observability
ObservabilityMixin
get_logger
traced
counted
timed
health_check
# Scheduler
ScheduledMixin
cron
interval
# Cache
cached
invalidate
# DB adapters
BaseAsyncRepository
BaseSyncRepository
BaseMongoRepository
BaseRedisRepository
# Auth
AuthBackend
AuthPayload
register_auth_backend
unregister_auth_backend
get_auth_backend
has_auth_backend
# RBAC
RBACChecker
require_permission
require_role
PermissionDenied
# Manifest types
PluginManifest
ResourceConfig
RuntimeConfig
# Responses
ok
error
|