Skip to main content

Minimal SDK for change algebra, trust graphs, and innovation geometry.

Project description

chronos

Chronos: Innovation Algebra & Trust SDK

A minimal, composable Python SDK for modeling change events, trust graphs, and innovation landscapes. Includes algebraic change sets, trust propagation, Riemannian geometry helpers, and a master equation integrator.

Features

  • Change Algebra: Immutable, timestamped change events and sets with union/intersection/difference, composition, inversion, and state evolution.
  • Trust Graphs: Weighted directed trust networks with path aggregation and logistic update law (requires networkx).
  • Manifold Geometry: Minimal Riemannian metric/geodesic/curvature helpers (requires numpy).
  • Navigator: Lightweight forward-Euler integrator for arbitrary vector fields.

Installation

With UV:

uv pip install chronos

Or with pip:

pip install chronos

Usage

Change Algebra

from chronos import ChangeEvent, ChangeSet, change_set

# Create events
c1 = ChangeEvent(timestamp=1.0, state_before=0, state_after=1)
c2 = ChangeEvent(timestamp=2.0, state_before=1, state_after=2)

# Create a set
cs = ChangeSet([c1, c2])

# Algebraic ops
cs2 = cs.inverse()
cs3 = cs.union(cs2)

Trust Graphs

from chronos import TrustGraph
T = TrustGraph()
T.set_trust('alice', 'bob', 0.8)
T.update_trust('alice', 'bob', delta=0.1)
trust = T.get_trust('alice', 'bob')

Manifold Geometry

from chronos import Metric, geodesic, curvature
import numpy as np
metric = Metric(lambda x: np.eye(len(x)))
path = geodesic(metric, np.array([0,0]), np.array([1,1]))
curv = curvature(metric, np.array([0,0]))

Navigator

from chronos import Navigator
import numpy as np
nav = Navigator(lambda x: -x)
traj = nav.integrate(np.array([1.0, 0.0]), steps=10)

Requirements

  • Python 3.9+
  • networkx (for trust graphs)
  • numpy (for manifold & navigator)

MIT License. See source for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chronos_innov-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file chronos_innov-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chronos_innov-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.6

File hashes

Hashes for chronos_innov-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 804ccf57519ca83f66049a3772d307ddf119e28afe25fdd5beaa63bf0cba81b3
MD5 3c03b091f38af2cdb1521633a4a764c6
BLAKE2b-256 527f96003d9d857cd5cf4bcfe8a6c24b8dcde85fb2c097b2c97a8c187a736bc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page