mockeval
Cursed lambdas because yes.
Usage
from mockeval import var, val
times2 = var.x * 2
print(times2.evl(x=2)) # 4
list_with_unkowns = val([1, 2, var.third, var.fourth])
print(list_with_unkowns.evl(third=3, fourth=4)) # [1, 2, 3, 4]
print(list_with_unkowns.map(sum).evl(third=3, fourth=4)) # 10
Why?
yes.
Metadata
Release files for mockeval 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mockeval-0.1.3.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mockeval-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.8 kB
Release files / mockeval-0.1.3.tar.gz
| Download URL | mockeval-0.1.3.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
429ccc4958e7df0e3efaf171c1126a80306c427bf134f209f060423cf9a33ad7
|
|
BLAKE2b-256 checksum How to use checksums |
e85fd6882f5397d5b541e688e8f772be5e035a1785d88864122ecfc23557236d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.15 Linux/5.15.0-1023-azure
|
Release files / mockeval-0.1.3-py3-none-any.whl
| Download URL | mockeval-0.1.3-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed72b165fc0ae9eee5622917eb12845caf525d261352c00f6115e75b07b97146
|
|
BLAKE2b-256 checksum How to use checksums |
d36fc721f4ce9b746f1eac71d72a8784778b334ca2a2311e44c54be535df1435
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.8.15 Linux/5.15.0-1023-azure
|