Skip to main content

ddma: data-driven models and abstractions

Learn a guaranteed model of an unknown system from data, then synthesize controllers that are provably safe for the real system.

ddma implements the minimal simulating maps from

A. Makdesi, A. Girard, L. Fribourg. Data-Driven Models of Monotone Systems. IEEE Transactions on Automatic Control, 69, pp. 5294–5309, 2024. doi:10.1109/TAC.2023.3346793

and models of systems that are not monotone but have bounded derivatives (TAC 2024, Section III-C, and the five approaches of the PhD thesis, Chapter 3), with the symbolic abstractions and controller synthesis built on top of them (L4DC 2021, ADHS 2021), and safe envelopes computed straight from data, without a grid (IFAC World Congress 2026). An assumption monitor checks online that new data still agree with the assumptions behind all of these guarantees. More model classes are planned (see the roadmap).

Python and MATLAB. Both interfaces share one C++ core, they are tested against each other, and the experiments of the three papers and of the thesis chapter are reproduced (see docs/REPRODUCTION.md). Every feature is in both languages, and the MATLAB results are checked against Python's in CI: see docs/PARITY.md for the name of each function in each language.

Documentation: anas-makdesi.github.io/ddma. The site (Sphinx, sources in docs/) has seven tutorials that walk through the toolbox from a scalar map to the assumption monitor, executed on every build so their outputs are those of the current code, with the MATLAB version of each one; and an API reference for both languages, generated from the docstrings and the MATLAB help text. To build it locally: pip install -e ".[docs]" and sphinx-build -b html docs docs/_build/html, then open docs/_build/html/index.html.

Minimal simulating map of a scalar monotone map

The idea

Suppose part of your system's dynamics is unknown, but you know a little about its shape:

  • it is monotone: larger states and inputs lead to larger next states (true for many thermal, traffic, vehicle and chemical processes); or
  • its partial derivatives are bounded: each output changes at most so fast, in each direction, with each state and input (true for most physical systems; the bounds can also be estimated from data, with a probabilistic guarantee);
  • and the disturbance is bounded by known limits.

From a set of measured transitions, ddma computes a set-valued model that is guaranteed to contain the true system. No model class is fitted. For monotone systems the model is:

  • sound: it contains every monotone system that could have produced the data, so it contains the true one;
  • minimal: no smaller set-valued model has that guarantee (proved in the TAC paper);
  • fast to compute: on a grid with |Q| cells and |K| samples it takes O(|K| log|Q| + |Q|) time, in a compiled C++ kernel: 10 million samples take 0.2 s;
  • easy to update: new data refines the model by intersection, without revisiting the old data.

For systems with bounded derivatives, five models trade tightness against speed (below); all are sound, can be updated with new data, and the growth-cone models can be updated locally while the system runs.

The learned model gives a finite abstraction of the system. Controllers synthesized on it (safety, reach-avoid) carry over to the real system with guarantees.

Example: a safety filter for adaptive cruise control, learned from data

A follower car must keep a gap of 10–50 m to a leader whose speed varies anywhere in 13–17 m/s. The follower's speed dynamics (drag, actuator) are unknown. We only know they are monotone in speed and acceleration command.

From sampled transitions, ddma learns the speed dynamics, builds a 6,600-state abstraction and computes the maximal set of states from which safety can be guaranteed against every leader behaviour. The resulting controller is then used as a safety filter around a naive cruise controller that ignores the leader.

Certified safe region Closed loop with and without the filter

samples certified safe region (% of the specification) learn model build abstraction synthesis
2,000 26.7 % 0.001 s 0.05 s 0.003 s
20,000 37.1 % 0.001 s 0.04 s 0.003 s
200,000 38.1 % 0.007 s 0.04 s 0.003 s

Times measured in a cloud container; they vary from run to run.

Without the filter, the naive controller drops below the 10 m gap after 9 s and collides at 11.5 s. With the filter, the gap stays above 11 m for the full 200 s.

(python examples/adaptive_cruise_control.py reproduces the table and figures.)

Systems that are not monotone: bounded derivatives

Many dynamics are not monotone: a pendulum's acceleration grows with the angle up to 90° and then falls. What is usually known is how fast each output can change with each variable, i.e. bounds on the partial derivatives. From such bounds and data, BoundedDerivativeModel learns a guaranteed model on a grid of cells. It implements the five approaches of the thesis (Chapter 3), chosen with method=:

method= idea when to use it
"two_matrix" (default) subtract the steepest linear trends so that two monotone functions remain, learn both, intersect fastest; a cell stays unbounded until some data point lies on the right side of it for both transforms
"all_matrix" the same with every combination of slopes per output (2ⁿ monotone maps, one per orientation) tighter, bounds every cell
"growth" each sample bounds the function inside a cone set by the derivative bounds; the tightest bound at every grid vertex is computed exactly, in one forward and one backward sweep per axis as tight as "all_matrix", bounds every cell, can be updated locally online (update_local)
"lin_mono", "lin_growth" the same with a small linear program per cell for the final step tightest; slower on large grids (bounds certified by duality, so solver tolerances cannot make them unsound)

Models of a map that is not monotone

With 25 samples and no data near the ends of the interval, both models bound the whole interval; the growth-cone model is tighter, most of all far from the data (mean width 1.24 against 1.51). (python examples/bounded_derivative_map.py, or run examples/bounded_derivative_map in MATLAB)

In two dimensions the model is a pair of staircases, one value per cell, around the unknown function. Here the growth-cone model with the linear-programming step (approach 5) learned from 10⁷ samples of F(z) = cos z₁ + 0.5 cos z₂ + [−0.1, 0.1] on 51 × 51 cells (the example of thesis Section 3.4); the zoom shows the steps:

Staircase bounds of the growth-cone model in 2-D

Comparing the five models. On the two-dimensional example of the thesis, the ranking holds at every amount of data: the growth cones with the linear-programming step are the tightest, and all models get tighter with more data and finer grids. (python reproductions/thesis_ch3.py, details in docs/REPRODUCTION.md.)

Conservatism of the five models

Example: keeping an inverted pendulum upright. The pendulum's dynamics are learned from 10⁶ transitions on θ ∈ [−2, 2] rad, where they are not monotone, with only the derivative bounds known. On 101 × 101 state cells and 25 input cells, the certified safe region (states from which the pendulum can be kept within the box forever, with torque |u| ≤ 6) covers 16.1 % of the box with the two-matrix model and 17.8 % with the growth cones + LP; every model's controller gives 0 violations in 100 closed-loop runs on the true pendulum.

Certified safe region of the inverted pendulum

model learn model build abstraction synthesis safe region
two_matrix 0.2 s 0.1 s 0.01 s 16.1 %
all_matrix 1.1 s 0.1 s 0.01 s 17.4 %
growth 0.2 s 0.1 s 0.01 s 17.6 %
lin_mono 23 s 0.1 s 0.01 s 17.6 %
lin_growth 26 s 0.1 s 0.01 s 17.8 %

(python examples/pendulum_bounded_derivatives.py; times indicative.)

Reinforcement learning that never violates its constraints

ddma.rl.SafetyFilterWrapper puts a learned safety controller around any Gymnasium environment: each action of the agent passes unchanged if it is safe and is replaced by the nearest safe action otherwise. From a state in the controller's domain the system stays safe for ever, whatever the agent does, during training as well. In MATLAB, ddma.safe_step / ddma.safe_reset wrap the step and reset functions of an environment in the form used by the Reinforcement Learning Toolbox (rlFunctionEnv).

from ddma.rl import SafetyFilterWrapper
env = SafetyFilterWrapper(gym_env, controller)   # controller = ddma.safety(...)
model = PPO("MlpPolicy", env).learn(100_000)    # any agent, any library

On the cruise-control task (ddma.rl.CruiseControlEnv: drive close to 22 m/s behind a leader that switches between about 13 and 17 m/s; a crash or a lost leader ends the episode), PPO alone crashes or loses the leader 266–319 times while it learns (3 seeds, 100,000 steps each). Inside the filter, built from 200,000 logged transitions without the vehicle model, it has 0 violations in training and evaluation, and ends with a slightly higher return.

Constraint violations during training, with and without the safety filter

(python examples/rl_safety_filter.py, needs pip install "ddma[rl-demo]"; MATLAB: run examples/rl_safety_filter.)

Safe envelopes without a grid

ddma.invariance computes a controlled invariant set directly from the transitions, with no partition and no abstraction: every state in the envelope can be kept in it forever, for every disturbance within the bounds, with the inputs the envelope certifies. Two methods:

  • monotone_envelope (monotone systems, lower-closed specifications such as "every temperature at most 26 °C"): the envelope is a union of lower sets, stored as a few corner points, each with the largest input that keeps everything below it there.
  • embedding_envelope (any system with bounds on its Jacobian): every pair of data points spans a box; the growth cones of the two points bound where the box can go (an LP, solved here exactly in closed form), and boxes that map into themselves are kept.
from ddma import monotone_envelope
env = monotone_envelope(X, X_next, U, w_lo=0, w_hi=0.15, input_signs=[-1], x_hi=[26, 26, 26])
env.contains(x)                 # certified?
u = env.safe_input(x, u_wanted) # closest certified input (None outside)

Three rooms cooled by one input, unknown heat gains up to 0.15 °C per step, limit 26 °C: from 1,000 transitions the envelope certifies about 98 % of the safe temperature range in under a second; the grid abstraction of examples/lazy_synthesis.py certifies about 74 % from 200,000 transitions. For non-monotone systems, 400 transitions of a two-species competition model certify about 84 % of its operating range, and a ring of ten coupled nonlinear units is handled from 1,000 transitions in a fraction of a second.

Certified safe temperatures: envelope from 1,000 transitions vs grid abstraction from 200,000

(python examples/envelope_room_cooling.py, python examples/envelope_nonlinear.py; MATLAB: ddma.monotone_envelope, ddma.embedding_envelope, examples of the same names. Details: docs/INVARIANCE.md.)

What if the assumptions are wrong?

Every guarantee above holds if the system satisfies the assumptions given to the model: a monotonicity pattern, derivative bounds, disturbance bounds. ddma checks data against them before learning (check_data: every pair of the learning data) and while the system runs (AssumptionMonitor). An alarm is a proof, not a heuristic: no function satisfying the assumptions can produce the data. Each new point is checked against the model's cell bounds, and against every earlier point, in the same step or later, all at once, back at base (full="later", flush()). Exact pruning keeps this under a millisecond per step with 2 million stored points. A point that fails is quarantined, so it does not cause follow-up alarms. The monitor computes, for each assumption, the exact smallest change that alone would explain all the data, and rules out those that cannot. Then it raises an alarm, widens the assumption (the model is refit, and its guarantee now rests on bounds fitted to the data), switches to a fallback controller, or widens up to a limit and falls back beyond it.

from ddma import AssumptionMonitor, check_data
print(check_data(Z, Y, d_lo=d_lo, d_hi=d_hi, signs=signs).report())   # before learning
mon = AssumptionMonitor.for_model(sigma, Z, Y, on_violation="widen_then_fallback")
mon.check(z_new, y_new)       # every new transition; mon.observe(x, u, x_next) also works
if mon.fallback_active:
    u = backup(x)
print(mon.report())           # which level found what, which assumption, by how much

In the cruise-control example the assumptions break mid-run, and the monitor catches both problems in the step they happen. When the leader slows to 11 m/s (assumed ≥ 13), the needed change is within the limit: the monitor widens the disturbance bound and recomputes the safe set, 3 steps outside the specification instead of 54. When a trailer is hitched (30 % of the acceleration), the speed noise would have to triple, beyond the limit: the monitor switches to a backup controller, 0 steps outside the specification instead of 6.

Assumptions broken mid-run: alarm and response

(python examples/assumption_monitor.py; MATLAB: ddma.check_data, ddma.monitor, ddma.monitor_check, run examples/assumption_monitor. Details and timings: docs/MONITOR.md.)

Install

Python (3.10 or newer)

pip install ddma                # pre-built for Linux, macOS and Windows, threads included
pip install "ddma[examples]"    # + matplotlib, scipy (examples and derivative-bound estimation)
pip install "ddma[rl]"          # + gymnasium (the safety filter for reinforcement learning)

The pre-built packages contain the compiled C++ kernels with OpenMP, so there is nothing else to install, also on macOS. On other systems pip builds the kernels from source; without a C++ compiler ddma falls back to NumPy, which gives identical results, only slower. ddma.compiled_backend_available() and ddma.openmp_available() tell you what you got.

The compiled kernels learn models and build abstractions on all cores by default, with results that are bit-identical for any number of threads; ddma.set_num_threads(n) limits them. Details: docs/PERFORMANCE.md.

From a clone, to run the examples and tests or to change the code:

git clone https://github.com/anas-makdesi/ddma && cd ddma
pip install -e ".[dev]"         # + pytest and ruff; builds the C++ kernels

Building from source on macOS needs brew install libomp first, otherwise the kernels run on one thread.

MATLAB toolbox (R2023b or newer)

Download ddma-<version>.mltbx from the releases page and open it in MATLAB, or run matlab.addons.install("ddma-<version>.mltbx"). It contains the +ddma package, the examples and pre-built MEX files (with threads) for Linux, Windows and macOS on Apple silicon; elsewhere the .m code runs, with the same results.

MATLAB / Octave from a clone

cd matlab
build_mex                         % optional: compiles the same C++ kernels as MEX files (with threads)
run examples/acc_safety_filter    % the cruise-control example below, in MATLAB
run examples/pendulum_bounded_derivatives   % a non-monotone system: bounded-derivative models
run examples/online_refinement    % learning while running: the safe region grows, 0 violations
run examples/lazy_synthesis       % lazy abstraction: a few percent of the transitions evaluated
addpath tests; run_tests          % checks the MATLAB code against Python reference results

The +ddma package mirrors the Python API with functions on structs: ddma.fit, ddma.bd_fit (the five bounded-derivative models; same struct as ddma.fit, so it goes straight into ddma.abstraction), ddma.growth_map, ddma.estimate_derivative_bounds, ddma.bd_update / ddma.bd_update_local / ddma.abstraction_refresh / ddma.safety(..., known_winning) (online refinement), ddma.abstraction(..., lazy), ddma.safety, ddma.reach_avoid, ddma.controller_input (which includes the safety filter), ddma.simulate, and the partition helpers. docs/PARITY.md lists every Python name with its MATLAB counterpart.

Quick start

import numpy as np
from ddma import MinimalSimulatingMap, PartitionedSimulatingMap, RectangularPartition

# data from an unknown monotone map with disturbance in [-0.1, 0.1]
rng = np.random.default_rng(0)
Z = rng.uniform(0, 1, size=(1000, 2))
Y = Z[:, :1] ** 2 + np.tanh(Z[:, 1:]) + rng.uniform(-0.1, 0.1, size=(1000, 1))

# exact minimal simulating map, evaluated pointwise
S = MinimalSimulatingMap(Z, Y, d_lo=-0.1, d_hi=0.1)
lo, hi = S.bounds([[0.5, 0.5]])        # every consistent system maps (0.5, 0.5) into [lo, hi]

# the same on a fixed 50 x 50 grid, computed once for all cells
grid = RectangularPartition.uniform([0, 0], [1, 1], [50, 50])
sigma = PartitionedSimulatingMap.from_data(Z, Y, grid, d_lo=-0.1, d_hi=0.1)
sigma = sigma.update(Z_new, Y_new)     # refine later with new data (Z_new, Y_new)

From a model to a controller, for x⁺ ∈ f(x, u) + g(x, u) + D with f unknown and monotone, and g known:

from ddma import SymbolicAbstraction, affine_bounds, safety, transitions_to_data

Zd, Y = transitions_to_data(X, U, X_next, g)          # y = x' - g(x, u)
sigma = PartitionedSimulatingMap.from_data(Zd, Y, RectangularPartition.product(Xgrid, Ugrid),
                                           d_lo, d_hi)
abst = SymbolicAbstraction(Xgrid, Ugrid, sigma, g_bounds=affine_bounds(A, B))
ctrl = safety(abst, abst.cells_inside(safe_lo, safe_hi))

u = ctrl.filter(x, u_nominal)   # closest certified-safe input to u_nominal

When f is not monotone but its partial derivatives are bounded (df_i/dx_j in [A_lo, A_hi], df_i/du_j in [B_lo, B_hi]), the model replaces the simulating map, and g is passed to it:

from ddma import BoundedDerivativeModel, estimate_derivative_bounds

# bounds known from physics, or estimated from data (scenario approach):
# a_lo, a_hi, w = estimate_derivative_bounds(np.hstack([X, U]), X_next - g(X, U))
grid = RectangularPartition.product(Xgrid, Ugrid)
model = BoundedDerivativeModel.from_data(X, U, X_next, grid, A_lo, A_hi, B_lo, B_hi,
                                         d_lo, d_hi, g=g, g_bounds=affine_bounds(A, B),
                                         method="growth")
abst = SymbolicAbstraction(Xgrid, Ugrid, model)
ctrl = safety(abst, abst.cells_inside(safe_lo, safe_hi))

# online: refine near new data, update only what changed, keep the old safe set
model.update_local(x_new, u_new, x_next_new, window=3)
abst.refresh()
ctrl = safety(abst, abst.cells_inside(safe_lo, safe_hi), known_winning=ctrl.domain)

For one scalar function on its own (e.g. a vehicle's turn rate as a function of speed and steering), GrowthMap is the same growth-cone model without the system structure:

from ddma import GrowthMap

grid = RectangularPartition.uniform([0.1, -0.79], [2.0, 0.79], [40, 40])   # (speed, steering)
w = GrowthMap.from_data(Z, y, grid, g_lo=[-10, 1], g_hi=[10, 40], d_lo=-0.05, d_hi=0.05)
lo, hi = w.bounds(z_query)       # guaranteed bounds on f(z) + d at the cells of z_query
w.update(z_new[None], [y_new])   # one measurement at a time: about 0.1 ms on this grid

What's in the package

module contents source
MinimalSimulatingMap exact minimal simulating map, bounds on f, set-membership estimate, merging data sets, consistency check of the monotonicity assumption TAC paper
PartitionedSimulatingMap tightest interval map on a fixed rectangular partition (O(|K| log|Q| + |Q|) sweep), incremental updates; the data-induced partition recovers the exact minimal map TAC paper
sign patterns (signs=) known increasing (+1) / decreasing (−1) / no (0) dependence per output and input ±1: order transformation for unknown linear functions (thesis Ch. 2); 0: extension in this package
SymbolicAbstraction finite abstraction of x⁺ ∈ f(x,u) + g(x,u) + D; successors stored as boxes of cells; features= for unknown parts that depend on a subset of (x, u) L4DC 2021, ADHS 2021, TAC paper
ddma.rl.SafetyFilterWrapper, CruiseControlEnv certified safety filter around any Gymnasium environment (actions corrected to the nearest safe one; initial states redrawn into the controller's domain; optional penalty per correction); a cruise-control RL benchmark
ddma.invariance: monotone_envelope, embedding_envelope safe envelopes (controlled invariant sets) from data without a grid: maximal corners of lower sets for monotone systems (layered search with dominance pruning + sort-filter skyline, equal to exhaustive enumeration); invariant boxes spanned by pairs of data points for systems with bounded Jacobians (the pair LP solved exactly in closed form); contains, safe_input IFAC WC 2026 (Makdesi & Zamani; Makdesi, Zamani & Jafarpour)
check_data, AssumptionMonitor check of the learning data (every pair) and online check of new transitions against the model's signs, derivative bounds and disturbance bounds: model cell bounds, random sample, full check (every step or later with flush()), exact pruning in the C++ core; quarantine; exact smallest single change of each assumption that explains the data; responses alarm / widen / fallback / widen-then-fallback; plain-words report() this package
safety, reach_avoid maximal controlled invariant set; reach-avoid with step counts. Exact fixed points in the C++ core: summed-area tables check a successor box in O(2^n); in safety each state keeps a pointer to its first input not yet ruled out, so every state–input pair is examined at most once over the whole fixed point; reach_avoid re-examines a state only when its successor hull gained a winning cell standard fixed points
SymbolicAbstraction(..., lazy=True) no transitions stored: safety evaluates a transition only when its scan reaches it (states outside the safe set are never expanded, each state stops at its first good input). Memory O(|Q|) instead of O(|Q|·|P|); the controller computes its allowed inputs on demand. Same winning set standard fixed point, transitions computed on demand
Controller concrete inputs (pick=), safety filter (filter), closed-loop simulate
BoundedDerivativeModel unknown dynamics that are not monotone but have bounded partial derivatives. method=: "two_matrix" (two monotone maps, intersected; default), "all_matrix" (all sign combinations of the derivative bounds), "growth" (growth cones evaluated at the grid vertices, exact set-membership values there in one sweep per axis), and "lin_mono", "lin_growth" (the same with a linear-programming final step, tightest). update adds data exactly; update_local (growth cones) updates only a window of cells around each new point, for online use. local="cell" / "slab" (growth cones) also intersects with the cones of the data points in each cell / in its slabs; "slab" is never looser than the min over data of each cone's max over the cell TAC, Prop. 8; thesis Ch. 3
GrowthMap the growth-cone model for one scalar function on its own: exact update (a per-point path for online use gives the same model as a batch refit), update_local, bounds, f_bounds thesis Ch. 3
online refinement SymbolicAbstraction.refresh() recomputes only the transitions of the states changed by update_local; safety(..., known_winning=previous_set) updates the maximal invariant set exactly, keeping the previous set (which stays controlled invariant when the model is refined)
estimate_derivative_bounds, scenario_confidence derivative and disturbance bounds from data, with the scenario-approach guarantee TAC, Sec. IV, Prop. 9
SymbolicAbstraction(..., assumption=) assume-guarantee contracts (e.g. "if the leader's speed stays in [a, b] …") ADHS, TAC
cpp/ddma_core.hpp, cpp/ddma_synthesis.hpp, cpp/ddma_growth.hpp, cpp/ddma_abstraction.hpp, cpp/ddma_parallel.hpp header-only C++ kernels used by both the Python and MATLAB interfaces: map fitting (float64, or float32 with outward rounding), the abstraction's transitions, the synthesis fixed points, and the growth-cone fits (vertex values and the cell/slab maps, the latter in time independent of the slab size); the learning kernels and the abstraction run on several threads (OpenMP, optional), with results that do not depend on the number of threads
set_num_threads, get_num_threads, openmp_available number of threads of the learning kernels and the abstraction (default: all cores)
ddma.plotting paper-style figures: transparent staircase bounds, 3-D and 2-D sets

Reproducing the papers

reproductions/ re-runs the numerical experiments of L4DC 2021, ADHS 2021, TAC 2024 and Chapter 3 of the thesis, and docs/REPRODUCTION.md compares the results with the papers. Highlights:

  • TAC Figs. 9–10: µ = 2.70 → 2.47 as the data grow from 10⁶ to 10⁷ samples, matching the paper.
  • L4DC: the exact abstraction from 300 transitions (27 million state–input pairs) and its invariant set take 6 s instead of 923 s + 341 s.
  • TAC Lorenz example at the paper's full size (10⁸ samples, 104 million cells) on an 8 GB machine: 223 s instead of 929 s, using per-output inputs, float32 bounds and batched data. Its maximal controlled invariant set (1 million states × 101 inputs) then takes 6 s.
  • Thesis Ch. 3: the five bounded-derivative approaches rank as in the thesis at every data size (Lin + Growth tightest); all contain the true map.
  • Every synthesized controller is checked in closed loop on the true plant: 0 violations.
  • Settings the papers leave implicit (L4DC input range, ADHS experiment settings, LP weighting for the Lorenz example) are documented in the report.

How it's tested

The Python tests are in tests/ and run in under a minute with pytest. They check the guarantees rather than the outputs alone:

  • Soundness: the true system lies inside the learned map on thousands of random queries, for random monotone functions and sign patterns.
  • Minimality: the bounds are attained by monotone functions consistent with the data.
  • Fast algorithms against brute force: the grid sweep equals the theorem's formula exactly, on random non-uniform partitions with data on cell edges and outside the box. Safety and reach-avoid fixed points equal the textbook iterations (sets, step counts and allowed inputs) on random abstractions in dimensions 1–4, with every index type, in both backends.
  • Bounded-derivative models: all five approaches are sound for random functions with bounded derivatives, with data outside the box and a known part g. The growth-cone vertex values equal the set-membership bounds computed by brute force over all data, and the cell bounds equal their definition; restricted to two sign matrices, the all-matrix model equals the two-matrix one; update equals a refit on all data; the windowed update tightens exactly the window. The linear-programming final steps are certified by weak duality, so solver tolerances cannot make them unsound.
  • Original implementation: the grid algorithm reproduces the original MATLAB implementation (Data2Sigma0 + ApproximationMonotoneSystemData3) bit for bit on random problems.
  • Backends and languages: the C++ and NumPy backends are bit-identical. The MATLAB code, both pure .m and MEX, reproduces the Python results exactly (map, abstraction, safety, reach-avoid; the five bounded-derivative models to within 1e-15, and their online updates), and the MEX fixed points equal the .m ones on random 1-D to 3-D abstractions. It has been run in MATLAB (MATLAB Online: tests, examples and figures) and CI runs it under Octave.
  • Safe envelopes: the monotone search equals brute-force enumeration; the closed-form pair bound equals an LP solver; every certified corner or box is pushed through the true dynamics with random inputs and worst-case disturbances, and closed loops from thousands of certified states never leave the envelope (Python and MATLAB, MATLAB checked against Python).
  • Assumption monitor: correct assumptions never raise an alarm (all model types and methods); a wrong sign, a too-small derivative bound, a missing dependence and a larger disturbance are each detected, and the computed smallest change matches the true value; it is exact (equal to bisection with a full consistency check, and to brute force over all pairs). check_data equals brute force and finds corrupted points; each level detects what it should; checking later with flush() gives the same result as checking every step; quarantine prevents follow-up alarms; the widening limit switches to fallback. C++ (with and without pruning, any number of threads), NumPy and MATLAB (.m and MEX) give the same bits; MATLAB draws the same random samples as Python.
  • Threads: every learning kernel gives the same bits with 1, 2 and all threads and with every way of sharing the work among them, in Python and MATLAB, and the same bits as the earlier single-threaded kernels. The compiled abstraction equals the NumPy and .m code on every kind of model, g, assumption and partition, for any number of threads. CI builds with and without OpenMP (on demand also on macOS and Windows).
  • Documentation: the tutorials are executed on every CI run (a failing cell or a Sphinx warning fails the build), their MATLAB snippets run under Octave, and every public Python name must have a docstring.
  • Closed loop: simulated trajectories under the synthesized controllers and the safety filter never leave the safe set and always reach the target.

Roadmap

Next: pre-built wheels and a MATLAB toolbox file. See docs/ROADMAP.md.

Authors

  • Anas Makdesi: implementation and maintenance.
  • Antoine Girard (Université Paris-Saclay, CNRS, CentraleSupélec, L2S) and Laurent Fribourg (Université Paris-Saclay, CNRS, ENS Paris-Saclay, LMF): co-authors of the methods implemented here (L4DC 2021, ADHS 2021, TAC 2024) and supervisors of the PhD thesis.
  • Majid Zamani (University of Colorado Boulder; LMU Munich) and Saber Jafarpour (University of Colorado Boulder): co-authors of the safe-envelope methods (ddma.invariance, IFAC World Congress 2026).

The methods come from the papers above. This package was rewritten from the original MATLAB research code with the help of Claude (Anthropic): the Python package, the C++ core, the MATLAB interface, the tests and the reproductions of the papers' experiments.

Citing

If you use this software, please cite the TAC paper (see CITATION.cff), for the bounded-derivative models also the thesis, and for the safe envelopes the IFAC 2026 papers (Makdesi & Zamani, Data-driven synthesis of controlled invariant sets for monotone systems; Makdesi, Zamani & Jafarpour, Data-driven controlled invariance via monotone embeddings):

@article{makdesi2024datadriven,
  title   = {Data-Driven Models of Monotone Systems},
  author  = {Makdesi, Anas and Girard, Antoine and Fribourg, Laurent},
  journal = {IEEE Transactions on Automatic Control},
  volume  = {69},
  pages   = {5294--5309},
  year    = {2024},
  doi     = {10.1109/TAC.2023.3346793}
}

@phdthesis{makdesi2023thesis,
  title  = {Data-driven abstractions for the safe learning of nonlinear systems},
  author = {Makdesi, Anas},
  school = {Universit{\'e} Paris-Saclay},
  year   = {2023},
  note   = {NNT 2023UPASG103, HAL tel-04611772}
}

License

MIT, see LICENSE.

Metadata

Release files for ddma 0.12.1

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

Source distribution (sdist)

Source distribution for ddma 0.12.1
File Size Uploaded Provenance Actions
ddma-0.12.1.tar.gz 166.4 kB With provenance Details for ddma-0.12.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ddma 0.12.1
File Actions
ddma-0.12.1-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details for ddma-0.12.1-cp315-cp315-win_amd64.whl
ddma-0.12.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for ddma-0.12.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
ddma-0.12.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.15 CPython 3.15 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for ddma-0.12.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
ddma-0.12.1-cp315-cp315-macosx_15_0_arm64.whl CPython 3.15 CPython 3.15 macOS 15.0+ ARM64 Details for ddma-0.12.1-cp315-cp315-macosx_15_0_arm64.whl
ddma-0.12.1-cp315-cp315-macosx_14_0_x86_64.whl CPython 3.15 CPython 3.15 macOS 14.0+ x86-64 Details for ddma-0.12.1-cp315-cp315-macosx_14_0_x86_64.whl
ddma-0.12.1-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for ddma-0.12.1-cp314-cp314-win_amd64.whl
ddma-0.12.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for ddma-0.12.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
ddma-0.12.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for ddma-0.12.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
ddma-0.12.1-cp314-cp314-macosx_15_0_arm64.whl CPython 3.14 CPython 3.14 macOS 15.0+ ARM64 Details for ddma-0.12.1-cp314-cp314-macosx_15_0_arm64.whl
ddma-0.12.1-cp314-cp314-macosx_14_0_x86_64.whl CPython 3.14 CPython 3.14 macOS 14.0+ x86-64 Details for ddma-0.12.1-cp314-cp314-macosx_14_0_x86_64.whl
ddma-0.12.1-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for ddma-0.12.1-cp313-cp313-win_amd64.whl
ddma-0.12.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for ddma-0.12.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
ddma-0.12.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ ARM64, Linux glibc 2.24+ ARM64 Details for ddma-0.12.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
ddma-0.12.1-cp313-cp313-macosx_15_0_arm64.whl CPython 3.13 CPython 3.13 macOS 15.0+ ARM64 Details for ddma-0.12.1-cp313-cp313-macosx_15_0_arm64.whl
ddma-0.12.1-cp313-cp313-macosx_14_0_x86_64.whl CPython 3.13 CPython 3.13 macOS 14.0+ x86-64 Details for ddma-0.12.1-cp313-cp313-macosx_14_0_x86_64.whl
ddma-0.12.1-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for ddma-0.12.1-cp312-cp312-win_amd64.whl
ddma-0.12.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for ddma-0.12.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
ddma-0.12.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for ddma-0.12.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
ddma-0.12.1-cp312-cp312-macosx_15_0_arm64.whl CPython 3.12 CPython 3.12 macOS 15.0+ ARM64 Details for ddma-0.12.1-cp312-cp312-macosx_15_0_arm64.whl
ddma-0.12.1-cp312-cp312-macosx_14_0_x86_64.whl CPython 3.12 CPython 3.12 macOS 14.0+ x86-64 Details for ddma-0.12.1-cp312-cp312-macosx_14_0_x86_64.whl
ddma-0.12.1-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for ddma-0.12.1-cp311-cp311-win_amd64.whl
ddma-0.12.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for ddma-0.12.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
ddma-0.12.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for ddma-0.12.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
ddma-0.12.1-cp311-cp311-macosx_15_0_arm64.whl CPython 3.11 CPython 3.11 macOS 15.0+ ARM64 Details for ddma-0.12.1-cp311-cp311-macosx_15_0_arm64.whl
ddma-0.12.1-cp311-cp311-macosx_14_0_x86_64.whl CPython 3.11 CPython 3.11 macOS 14.0+ x86-64 Details for ddma-0.12.1-cp311-cp311-macosx_14_0_x86_64.whl
ddma-0.12.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for ddma-0.12.1-cp310-cp310-win_amd64.whl
ddma-0.12.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for ddma-0.12.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
ddma-0.12.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ ARM64, Linux glibc 2.28+ ARM64 Details for ddma-0.12.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
ddma-0.12.1-cp310-cp310-macosx_15_0_arm64.whl CPython 3.10 CPython 3.10 macOS 15.0+ ARM64 Details for ddma-0.12.1-cp310-cp310-macosx_15_0_arm64.whl
ddma-0.12.1-cp310-cp310-macosx_14_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 14.0+ x86-64 Details for ddma-0.12.1-cp310-cp310-macosx_14_0_x86_64.whl

Total release size: 16.1 MB

Release files / ddma-0.12.1.tar.gz

Download URL ddma-0.12.1.tar.gz
Size 166.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88d0bbe6a4e8cd1bad72d6e2667b3da3b5cb750aacd1f0a5e683f649e7edf3e2
BLAKE2b-256 checksum
How to use checksums
40412905055e7dfd6258297e8a205498324029441593fceae4a30a22eccd85be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp315-cp315-win_amd64.whl

Download URL ddma-0.12.1-cp315-cp315-win_amd64.whl
Size 593.9 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
0444c8bae2900c3fbe268362f7dc81c9d0d7703009fe56a8720f34f791062842
BLAKE2b-256 checksum
How to use checksums
bdb0cff708c2bbef26d4f2de71c3ce5585656d4a22f747ede11bdf5412158c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL ddma-0.12.1-cp315-cp315-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 463.7 kB
Tags CPython 3.15 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
090216b9e2c6268adf214b5f9d29af8d968f8404fec801ccd26948b4e934f6e3
BLAKE2b-256 checksum
How to use checksums
44e01f16355a013399173d6cd9d99c9b409a2c8de286e7fa89e5e31c895ad3ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL ddma-0.12.1-cp315-cp315-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 438.1 kB
Tags CPython 3.15 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
965a89c480ece066fb814e5c90eea0c4de794162be40063f3416dfdde9ba0c6c
BLAKE2b-256 checksum
How to use checksums
85373162518fcc3c1f3fb2026f09cd45436b0e44646ac12def3c409cfd138eab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp315-cp315-macosx_15_0_arm64.whl

Download URL ddma-0.12.1-cp315-cp315-macosx_15_0_arm64.whl
Size 551.8 kB
Tags CPython 3.15 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
3808a4708ea3818ea7a54466a1a5b09163231cf7fdf503cdacd2f25ecf74baa7
BLAKE2b-256 checksum
How to use checksums
9deb39cfbda2c7d8262a88527e20d12761a936ab359932fb18ab7b80bf512739
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp315-cp315-macosx_14_0_x86_64.whl

Download URL ddma-0.12.1-cp315-cp315-macosx_14_0_x86_64.whl
Size 614.5 kB
Tags CPython 3.15 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
c0e9359c5272f73a9a2d315ca4d40e78711cf25aea7d0c7c75aa5a69c992c6da
BLAKE2b-256 checksum
How to use checksums
7677c69ef228a0b0540183ba646495743d0db223fc67a4c4b416917082f2578d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp314-cp314-win_amd64.whl

Download URL ddma-0.12.1-cp314-cp314-win_amd64.whl
Size 593.9 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
8ce6dda4f56cc1b67dfc7ad0366e2c5db728b0e73b0efee22f9c6621025ba147
BLAKE2b-256 checksum
How to use checksums
5a919f2c9f7ea6c22b09ae26af58687fa82e6e48d3f2498451062e9fa7da4b33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL ddma-0.12.1-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 464.8 kB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
55a310f0969b74b50f114251c8ca2ac41408a663313dabfa804166e573384f7c
BLAKE2b-256 checksum
How to use checksums
11a232221eb57b33e11522173f5eba7315370d5a32ded8ea9eb26ba48ebe220d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL ddma-0.12.1-cp314-cp314-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 437.9 kB
Tags CPython 3.14 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
3c30b9a4645b6863b107b7ab82a5199126f82c2aae94af3c9ef633951071b9b3
BLAKE2b-256 checksum
How to use checksums
9769ca366ad77269f038a08a3b8283d40addd080627db2e8ef0273c7b523dce4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp314-cp314-macosx_15_0_arm64.whl

Download URL ddma-0.12.1-cp314-cp314-macosx_15_0_arm64.whl
Size 551.7 kB
Tags CPython 3.14 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
f497f51060a9fe1e8e14b049fa4aed466dcace98194e278881c08ad116160934
BLAKE2b-256 checksum
How to use checksums
a85fd1d82a9100387ae37ef79518cbb47363b25752a564d676ad26bd7f89f959
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp314-cp314-macosx_14_0_x86_64.whl

Download URL ddma-0.12.1-cp314-cp314-macosx_14_0_x86_64.whl
Size 614.5 kB
Tags CPython 3.14 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
64904aa17ad4fba8498b6d1ecf594a7ba5d8627d90107066136f5045339576e4
BLAKE2b-256 checksum
How to use checksums
9f30cb701445d47e415f0f51cb304a8e2abd1f95cc557b556bf99146dd949b32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp313-cp313-win_amd64.whl

Download URL ddma-0.12.1-cp313-cp313-win_amd64.whl
Size 578.2 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
affe807d7ce8d80495050005b01309c2d898f02ceee035d9675a9c11ada68143
BLAKE2b-256 checksum
How to use checksums
071996f39318a0e851861c68710fbb3c1fcffea3409a7b9aa0d238dd776bc3d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL ddma-0.12.1-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 464.4 kB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
a576751443ee2fa423d8b43446ea85eef21cb6241dcd3972733d109ecadaea07
BLAKE2b-256 checksum
How to use checksums
6451b2137b39af92e68a41960f4a1567ecd62977884e2f2857371ee0016e4d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL ddma-0.12.1-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 437.2 kB
Tags CPython 3.13 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
ff06ed5da958bd7491224ec3b68882699f165632b1455218526a336eba244e92
BLAKE2b-256 checksum
How to use checksums
1e7039c92ce40d3d01c1ef51f126ccb233018a658fa7aeb3eb2cee22fcc0e587
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp313-cp313-macosx_15_0_arm64.whl

Download URL ddma-0.12.1-cp313-cp313-macosx_15_0_arm64.whl
Size 551.2 kB
Tags CPython 3.13 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
0b9b0aac27b37097cd8d27fb98bf935146c651569c5a8f762ded17a8f1751cff
BLAKE2b-256 checksum
How to use checksums
122d28d376bf0a33d08526d96c072f3b412287e8e69d02eb6ba6586383c1d4ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp313-cp313-macosx_14_0_x86_64.whl

Download URL ddma-0.12.1-cp313-cp313-macosx_14_0_x86_64.whl
Size 614.3 kB
Tags CPython 3.13 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
99dd20a10d8011fcbb293708076bc3ccc8d1d8b20795100287a472a9ec455a5a
BLAKE2b-256 checksum
How to use checksums
215c0f01da249ba501dc8249b8ec5727dbffbe32b828d29f3c9dc6c851654d9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp312-cp312-win_amd64.whl

Download URL ddma-0.12.1-cp312-cp312-win_amd64.whl
Size 578.2 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
56b5391ef75319302097abe8df8bddbd78c4a3aab34c8e73789269d381db6b7a
BLAKE2b-256 checksum
How to use checksums
5a9ea0a5c7b39ae0c4b49b59ed124c72f584cfc24985d3d20f0da7cf4b2969d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL ddma-0.12.1-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 464.2 kB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f850cedd381c0bfe99c735f35d01b6bad46f80174e8fcff77ca739b00a24f1f3
BLAKE2b-256 checksum
How to use checksums
58d4f5edad4be0cf26f4a10c484011a208c7fe181491b0b348ec0c31feaaabd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL ddma-0.12.1-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 437.2 kB
Tags CPython 3.12 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
d09195fdce4eae080269f184482f4606e6f44b050f69dcc342696dc1b1695275
BLAKE2b-256 checksum
How to use checksums
7683539a9549626efa922a005ed8d0990f0e23900719deef5bdd0716b854e303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp312-cp312-macosx_15_0_arm64.whl

Download URL ddma-0.12.1-cp312-cp312-macosx_15_0_arm64.whl
Size 551.2 kB
Tags CPython 3.12 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
7ef10da802b698f386bfa1ee720082d992c34f963f4b436bf276d8da6cef4549
BLAKE2b-256 checksum
How to use checksums
1057d6d0b29e6344b44f4e6edc07e30b0676ee702e79d35257a7a4d1803ee60a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp312-cp312-macosx_14_0_x86_64.whl

Download URL ddma-0.12.1-cp312-cp312-macosx_14_0_x86_64.whl
Size 614.3 kB
Tags CPython 3.12 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
7f681128b8fe8280c1ec7b9ec2624cc7c4a8668222e2240be8b35b9f036cd158
BLAKE2b-256 checksum
How to use checksums
6844c6c64cf76ab351c9771d0b023cfb13825b569b132db31da32f585609de44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp311-cp311-win_amd64.whl

Download URL ddma-0.12.1-cp311-cp311-win_amd64.whl
Size 574.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
267645e5508e1aaf9535d6af58a503e22e72624266653dfd547dda6e2b0c2cec
BLAKE2b-256 checksum
How to use checksums
082d80dfba4579387199e87642365baf1e99a8ccfcba90a6a77473eaf34167d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL ddma-0.12.1-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 465.4 kB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7ebaf3755394593112ad7b917af1292fa421c6aa80d80c2cab1829f52cba1972
BLAKE2b-256 checksum
How to use checksums
f82a6f26f5e47c19a7e47c2e3690cc68a5f5f74f5c250e72d2093fa95c3e4a4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL ddma-0.12.1-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 437.0 kB
Tags CPython 3.11 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
7166c20c8ff959648315922a688a4924fde6b29370f2b1d650287afb35f23a0f
BLAKE2b-256 checksum
How to use checksums
e3faa4b964b4ab263c8e65097fa58c1aee429eb2823ac41511b4ab26cd380eba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp311-cp311-macosx_15_0_arm64.whl

Download URL ddma-0.12.1-cp311-cp311-macosx_15_0_arm64.whl
Size 549.7 kB
Tags CPython 3.11 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
7c2839776b698977340d9e5253a23096ad4e1bcbb2260803f445e0a93c14c6b7
BLAKE2b-256 checksum
How to use checksums
6b9060883000b35b027fe23842e4f0de31132c7f325f1bb8f3fed2208d270b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp311-cp311-macosx_14_0_x86_64.whl

Download URL ddma-0.12.1-cp311-cp311-macosx_14_0_x86_64.whl
Size 611.0 kB
Tags CPython 3.11 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
5e02138863ce25581274c86abbd6ef1402bab66472acf2cfb5c3d2f62b9131e8
BLAKE2b-256 checksum
How to use checksums
61debe2d8f34ec49f1dc708eb636d6da1b2e5941cd96ae2f560eed21369bbe5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp310-cp310-win_amd64.whl

Download URL ddma-0.12.1-cp310-cp310-win_amd64.whl
Size 574.3 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
611e03183c6093fc3ccada14c53c2f071cbf1557226f06138a7d986933c2cf72
BLAKE2b-256 checksum
How to use checksums
c7f9190a8c014e4f2902a45f890c4a04b9b7cbaddfac3b08002cf191a858b715
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL ddma-0.12.1-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 464.8 kB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4fa95a28a843ba5dc0e298c74fcd1b02d86f2bcb3c2af66702657583463a205d
BLAKE2b-256 checksum
How to use checksums
f4713c3ee3d5743f071f7333d37c2b1986293ea8e733e5f9aeaf6e897d35100f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl

Download URL ddma-0.12.1-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl
Size 436.5 kB
Tags CPython 3.10 Linux glibc 2.24+ ARM64 Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
9ad8239c651bb0a1e84bdbca08279f00d12c612ca6ef15396dffd39dd53fab91
BLAKE2b-256 checksum
How to use checksums
b6c55f4b71b596e58d9ff058953af4561378762f27a6eb4a5ba03a594d5fd318
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp310-cp310-macosx_15_0_arm64.whl

Download URL ddma-0.12.1-cp310-cp310-macosx_15_0_arm64.whl
Size 548.8 kB
Tags CPython 3.10 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
577d7ce9560ecbb6aa6c63c0d64e096b3539fb1fbcba78ce30d8f54116d25b58
BLAKE2b-256 checksum
How to use checksums
3f96ef8c3dab090013e554e5d4c839a30c418a907bc41c2c5f48b960e908b913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / ddma-0.12.1-cp310-cp310-macosx_14_0_x86_64.whl

Download URL ddma-0.12.1-cp310-cp310-macosx_14_0_x86_64.whl
Size 609.9 kB
Tags CPython 3.10 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
9fd8e5aded7ec00732dbde2e7716a00fdcb25971bcd411bfdfc131b84a7bd6a8
BLAKE2b-256 checksum
How to use checksums
410b76e549f210032bbbb6a21f439aef4733375c55e822caf095bc727f35870c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Security for ddma 0.12.1

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

All 31 files in this release have been uploaded with provenance metadata.

Select from 31 files

Attestation for ddma-0.12.1.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 19, 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.

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