Skip to main content

CELINE SDK

Shared SDK for the CELINE platform. Provides OIDC authentication, MQTT broker abstraction, Pydantic settings, and OpenAPI spec management with generated typed clients

Modules

Module Description
celine.sdk.auth OIDC token provider, JWKS-based JWT parsing, token refresh
celine.sdk.broker MQTT client with auto-reconnect and JWT authentication
celine.sdk.settings Shared Pydantic settings: OIDC, MQTT, policies
celine.sdk.openapi.* Generated typed clients for CELINE services
celine.sdk.dt Digital Twin domain client helpers
celine.sdk.nudging Nudging service client
celine.sdk.onboarding Onboarding: a member's own data-sharing decisions (OnboardingClient), and, on OnboardingAdminClient, a service sending a registry member an invitation or password reset for a manager, and a platform administrator's (realm role platform-admin) registry sync of a community's areas (registry_sync)
celine.sdk.policies OPA policy evaluation over a service's own *.rego bundle
celine.sdk.rec_registry REC registry client helpers (RecRegistryUserClient, RecRegistryAdminClient): the batch lookups; a member's meter (put_asset, delete_asset) and role and area (patch_member_profile); a community's areas and topology (read_community, put_area, delete_area, rename_area, put_topology_node, delete_topology_node). A refusal raises RecRegistryApiError with the registry's code (sensor_held, unknown_area, not_a_member, …) beside status_code and detail
celine.sdk.flexibility Flexibility service client helpers
celine.sdk.ai_assistant AI assistant client helpers
celine.sdk.posture The deployment posture: only CELINE_ENV=dev relaxes; PostureGuard refuses development settings elsewhere; docs_urls turns the API documentation off outside dev
celine.sdk.audit Access audit on the celine.audit logger: audit_access, audit_denied (Starlette or Flask request), and the per-route FastAPI dependency audit_route

celine.sdk.clients, celine.sdk.utils and celine.sdk.cli are internal: they support the modules above and the spec-management CLI, and are not part of the public surface.

Installation

pip install celine-sdk

Client generation needs the code generators from this repository's dev dependency group (Python ≥ 3.11) — uv sync in a checkout. It is a maintainer task performed here, not something a consuming service does.

CLI Quick Reference

# Fetch and version OpenAPI specs (writes to ./openapi/)
celine-sdk spec fetch services.yaml

# List discovered spec versions
celine-sdk spec list

# Generate typed Python clients (needs the dev dependency group)
celine-sdk generate services.yaml

# Both steps, in a checkout
task gen

services.yaml Format

services:
  digital-twin:
    package: dt
    openapi: http://dt:8000/openapi.json
  policies:
    openapi: http://policies:8000/openapi.json

Documentation

Document Description
Auth OIDC token provider, JWT parsing, AccessToken model
Broker MQTT client, auto-reconnect, JWT auth, subscription handling
Settings OidcSettings, MqttSettings, PoliciesSettings, env var config
Spec Management services.yaml format, spec fetch, versioning, client generation
Specifications What the SDK must do, as numbered requirements each named by a test

License

Apache 2.0 — Copyright © 2025 Spindox Labs

Metadata

Release files for celine-sdk 2.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for celine-sdk 2.2.2
File Size Uploaded Provenance Actions
celine_sdk-2.2.2.tar.gz 425.9 kB With provenance Details for celine_sdk-2.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for celine-sdk 2.2.2
File Interpreter ABI Platform Actions
celine_sdk-2.2.2-py3-none-any.whl Python 3 none any Details for celine_sdk-2.2.2-py3-none-any.whl

Total release size: 1.3 MB

Release files / celine_sdk-2.2.2.tar.gz

Download URL celine_sdk-2.2.2.tar.gz
Size 425.9 kB
Tags Source
SHA-256 checksum
How to use checksums
285211c80481a5b145e6536bd209b8b52694ee3d60348465d31820e8aa309632
BLAKE2b-256 checksum
How to use checksums
1ccbdff355e7d65e5615653963b07dfd3db4bacaf6b8aa835952209edf95a592
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / celine_sdk-2.2.2-py3-none-any.whl

Download URL celine_sdk-2.2.2-py3-none-any.whl
Size 860.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
14dfb9d38c44a712e5829453a738c970b4c1858c2ae9c0abe793108a18e73abe
BLAKE2b-256 checksum
How to use checksums
a34c2cddfee00fcfdab9e1ac4fbf520f8798257fa63ac8a750dfe52b2408cfef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for celine-sdk 2.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for celine_sdk-2.2.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.2.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page