python toolkit for monitor-oriented programming.
Project description
python_mop
python toolkit for monitor-oriented programming.
Examples
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python_mop-0.0.1.tar.gz
(3.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_mop-0.0.1.tar.gz.
File metadata
- Download URL: python_mop-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ca297e96ad0f7ad50534c2e7422f77b2d327158d0c0ea46b1db148e525b2858
|
|
| MD5 |
a4cc385858783df7127cf34942132adb
|
|
| BLAKE2b-256 |
aea754e3f59f2aa09a2694fdd6b5a4c4120afd36106b2bb08be10bf3e54a02cf
|
File details
Details for the file python_mop-0.0.1-py3-none-any.whl.
File metadata
- Download URL: python_mop-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27a8eab883b8b39c15c0227b989b1b1bebad94598322472bb3d28aeca1f055ce
|
|
| MD5 |
ace4f5fc29111f24fecf28de7300f935
|
|
| BLAKE2b-256 |
37ff5498196f32b19c5a5a4641881a3c6e9b34d25e2f40e18817e23b6cdfc8cb
|