Metadata-Version: 2.4
Name: tomato-example-counter
Version: 3.0.0rc4.post1
Summary: tomato example counter driver
Author-email: Peter Kraus <peter.kraus@tu-berlin.de>
Maintainer-email: Peter Kraus <peter.kraus@tu-berlin.de>
Project-URL: Documentation, https://dgbowl.github.io/tomato-example-counter/main
Project-URL: Issues, https://github.com/dgbowl/tomato-example-counter/issues
Project-URL: Repository, https://github.com/dgbowl/tomato-example-counter/
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: tomato>3.0rc4.post0
Provides-Extra: testing
Requires-Dist: pytest; extra == "testing"
Dynamic: license-file

# tomato-example-counter
An example driver for `tomato`, used for testing purposes.

This driver is developed by the [ConCat lab at TU Berlin](https://tu.berlin/en/concat).

## Supported functions

### Capabilities
- `count`: for counting up every second
- `random`: for returning a random number between `min` and `max` every query

### Attributes
- `max`: the upper limit to `random`, `float`
- `min`: the lower limit to `random`, `float`
- `param`: test attribute for unit validation, `param > pint.Quantity("0.1 seconds")`
- `choice`: test attribute for `options` validation, `choice ∈ {"red", "blue", "green"}`
- `model`: test attribute for pydantic submodel validation, `SubModel`
- `on`: test attribute for boolean values, `bool`
- `seconds`: test attribute for read-only values, `pint.Quantity(..., "seconds")`

## Contributors
- Peter Kraus
