Skip to content

v0.4.0 — Python Bindings & Production-Ready Execution

Latest

Choose a tag to compare

@mivertowski mivertowski released this 07 Feb 20:02

Highlights

  • Python bindingspip install rustkernels for native Python access to all 106 batch kernels via PyO3
  • Production-ready execution — all 106 kernels fully implemented with real dispatch (no stubs)
  • Deep RingKernel 0.4.2 integration — bidirectional domain conversion, enterprise re-exports
  • Enterprise modules — security, observability, resilience, runtime, memory management
  • Ecosystem service layer — Axum REST, Tower middleware, Tonic gRPC, Actix actors

Python Bindings (rustkernel-python)

import rustkernels

reg = rustkernels.KernelRegistry()
print(reg.kernel_ids)                # all 106 kernel IDs
result = reg.execute("graph/betweenness_centrality", {
    "num_nodes": 4,
    "edges": [[0,1], [1,2], [2,3], [0,3]],
    "normalized": True,
})
  • KernelRegistry class with discovery (kernel_ids, by_domain, search) and execute()
  • Module-level execute() convenience function with cached default registry
  • Catalog API: list_domains(), total_kernel_count(), enabled_domains()
  • Full exception hierarchy mapping all KernelError variants
  • GIL-releasing async bridge for concurrent kernel execution
  • Feature pass-through: --features full enables all 14 domains

Enterprise Modules

  • Security: JWT/API key auth, RBAC, multi-tenancy, secrets management
  • Observability: Prometheus metrics, OTLP tracing, structured logging, SLO alerting
  • Resilience: circuit breakers, exponential retry, timeout propagation, health probes
  • Runtime: lifecycle state machine, graceful shutdown, production config presets
  • Memory: size-stratified pools, pressure handling, inter-phase reductions

New Kernels

  • Graph: GNNInference, GraphAttention
  • ML: EmbeddingGeneration, SemanticSimilarity, SecureAggregation, DrugInteractionPrediction, ClinicalPathwayConformance, StreamingIsolationForest, AdaptiveThreshold, SHAPValues, FeatureImportance
  • Process Intelligence: DigitalTwin, NextActivityPrediction, EventLogImputation

Workspace

20 crates total (19 Rust + 1 Python), 106 kernels across 14 domains.

Full Changelog: v0.2.0...v0.4.0