A library for lazy evaluation with context caching
Project description
lazily
A Python library for lazy evaluation with context caching.
Installation
pip install lazily
Example usage
from lazily import be
@be
def hello(ctx: dict) -> str:
return "Hello"
@be
def world(ctx: dict) -> str:
return "World"
greeting = be(lambda ctx: f"{hello(ctx)} {world(ctx)}!")
ctx = {}
greeting(ctx) # Hello World!
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
lazily-0.2.0.tar.gz
(10.7 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
lazily-0.2.0-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file lazily-0.2.0.tar.gz.
File metadata
- Download URL: lazily-0.2.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8fd3283560d0a94d69a2ffbd5ce9045f11c5e6fa58f5d281e2aaa30b64c10f2
|
|
| MD5 |
71695b13da3c4f15fd58e99329d1a2b9
|
|
| BLAKE2b-256 |
fb983d25e840f8e4df89b114f49f7723c9bebc9277327a86086f051face20d36
|
File details
Details for the file lazily-0.2.0-py3-none-any.whl.
File metadata
- Download URL: lazily-0.2.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
468a387cd2afa7a37f1c8fed5db80c1e22b50bd36b8a915b6d995a7c964af447
|
|
| MD5 |
4facc37ac54da16ac551cea7908aa8fc
|
|
| BLAKE2b-256 |
3fe3b09809cf1a234eac44382b206480addfd348fa70992a4b2359d0943dda0b
|