The Signaloid Python Library and SDK provides tools for interacting with applications that utilize Signaloid's UxHw® technology for distributional arithmetic. Use the library to analyze Ux Data values from the application.
The Signaloid Python Library and SDK requires Python 3.10 or later. See
pyproject.toml for the full list of dependencies.
Install signaloid-python package via pip (recommended):
python -m pip install signaloid-pythonInstall the latest version from the GitHub repository:
python -m pip install git+https://github.com/signaloid/signaloid-pythonAlternatively, clone this repository and install from source with:
python -m pip install .Construct DistributionalValue Python objects by parsing
Ux Data in
Ux String or Ux Binary format.
from signaloid.distributional.distributional import DistributionalValue
# Intermediate code which writes to ux_string and ux_binary_buffer
# ...
# Parse a Ux String
dist_value = DistributionalValue.parse(ux_string)
# Parse a Ux Binary buffer
dist_value = DistributionalValue.parse(ux_binary_buffer)Create plots to visualize distributional information by using the
plot function
with a DistributionalValue object containing Ux Data. The plot function is a
wrapper function for the PlotHistogramDiracDeltas class for plotting a
distributional value as a histogram with variable bin widths.
from signaloid.distributional_information_plotting.plot_wrapper import plot
# Intermediate code which writes to ux_string
# ...
# Create distributional value object from Ux String
dist_value = DistributionalValue.parse(ux_string)
plot(dist_value)