semvec/pypi-packages huggingface dataset:
python-mop 0.0.1
python toolkit for monitor-oriented programming.
License: MIT LICENSE

# python_mop
python toolkit for monitor-oriented programming.

## Examples

```python
import mop


@mop.monitor(lambda v: 4 < v < 6, lambda v: 5)
def add0(a, b):
    return a + b


print(add0(1.1, 1.1))


@mop.monitor(int, int)
def add1(a, b):
    return a + b


print(add1(1.1, 1.1))


# 2

@mop.monitor(mop.mrv() == 1, None, 1)
def add2(a, b):
    return a + b


print(add2(1.1, 1.1))
# 1
```