cu29-value 0.14.0

This is a fork of Value with custom types added for Copper like the time and units.
Documentation

copper-value

license-badge

copper-value provides a way to capture serialization value trees for later processing. Customizations are made to enable a more compact representation for the structured logging of copper.

Python Feature

With the python feature enabled, this crate also provides conversion helpers between cu29_value::Value and Python objects via PyO3.

That bridge is used in two places:

  • cu-python-task, where Copper temporarily converts task inputs/state/outputs so a Python function can mutate them
  • cu29-export, where Copper data is exposed to Python for offline analysis

Conversion behavior is intentionally simple:

  • None maps to Value::Unit
  • Python lists and tuples map to Value::Seq
  • Python dicts map to Value::Map
  • Python integers are accepted up to 128-bit signed/unsigned range
  • Python bytes maps to Value::Bytes