Skip to content

About

Python SDK for CE-RISE Hex Core Service, auto-generated from the official OpenAPI specification and versioned with service releases. MIRROR OF:

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

CE-RISE Python Software Development Kit for Hexagonal Core Service

PyPI - Version DOI

A Python SDK for the CE-RISE Hex Core Service: https://codeberg.org/CE-RISE-software/hex-core-service

Install

Install from PyPI:

pip install ce-rise-hex-core-sdk

Install a specific version:

pip install "ce-rise-hex-core-sdk==0.0.1"

Quickstart

1) Configure client and call public endpoints

import ce_rise_hex_core_sdk as hexsdk

config = hexsdk.Configuration(host="http://localhost:8080")

with hexsdk.ApiClient(config) as client:
    admin_api = hexsdk.AdminApi(client)
    discovery_api = hexsdk.DiscoveryApi(client)

    health = admin_api.health()
    models = discovery_api.list_models()

    print("health:", health.status)
    print("models:", models)

2) Configure bearer token for protected endpoints

import os
import ce_rise_hex_core_sdk as hexsdk

config = hexsdk.Configuration(
    host="http://localhost:8080",
    access_token=os.environ["BEARER_TOKEN"],
)

3) Validate and create records

import ce_rise_hex_core_sdk as hexsdk

config = hexsdk.Configuration(
    host="http://localhost:8080",
    access_token="<jwt-token>",
)

with hexsdk.ApiClient(config) as client:
    models_api = hexsdk.ModelsApi(client)

    report = models_api.validate_model_payload(
        model="re-indicators-specification",
        version="0.0.3",
        validate_request=hexsdk.ValidateRequest(payload={"example": "value"}),
    )

    record = models_api.create_record(
        model="re-indicators-specification",
        version="0.0.3",
        idempotency_key="my-unique-request-id-001",
        create_request=hexsdk.CreateRequest(payload={"example": "value"}),
    )

    print("validation passed:", report.passed)
    print("record id:", record.id)

API Documentation

License

Licensed under the European Union Public Licence v1.2 (EUPL-1.2).

Contributing

This repository is maintained on Codeberg as the canonical source of truth. The GitHub repository is a read-only mirror used for release archival and Zenodo integration.


EU emblem

Funded by the European Union under Grant Agreement No. 101092281 - CE-RISE.
Views and opinions expressed are those of the author(s) only and do not necessarily reflect those of the European Union or the granting authority (HADEA). Neither the European Union nor the granting authority can be held responsible for them.

(c) 2026 CE-RISE consortium.
Licensed under the European Union Public Licence v1.2 (EUPL-1.2).
Attribution: CE-RISE project (Grant Agreement No. 101092281) and the individual authors/partners as indicated.

NILU logo

Developed by NILU (Riccardo Boero - ribo@nilu.no) within the CE-RISE project.

About

Python SDK for CE-RISE Hex Core Service, auto-generated from the official OpenAPI specification and versioned with service releases. MIRROR OF:

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages