Skip to content

CoreSDK Python SDK v0.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Mar 03:06
· 316 commits to develop since this release

CoreSDK Python SDK v0.1.0

Python SDK for CoreSDK — auth, policy, observability. One import.

Install from PyPI

pip install coresdk

Install with framework extras

pip install "coresdk[fastapi]"
pip install "coresdk[flask]"

Quickstart

from coresdk import CoreSDKClient, SDKConfig

sdk = CoreSDKClient(SDKConfig(
    sidecar_addr="[::1]:50051",
    tenant_id="my-company",
    service_name="my-api",
))

decision = sdk.validate_token("my-token", action="read", resource="reports/q4")
print(decision.allowed, decision.claims)

Requirements

  • Python 3.9+
  • CoreSDK sidecar running locally (coresdk-sidecar)

See the examples repo for full integration patterns.