Skip to main content

A library for lazy evaluation with context caching

Project description

lazily

A Python library for lazy evaluation with context caching.

Installation

pip install lazily

Usage

</code></pre>
<h3>Example usage</h3>
<pre lang="python"><code>from lazily import be, be_class

hello = be(lambda ctx: "Hello")
world = be(lambda ctx: "World")
greeting = be(lambda ctx: f"{hello(ctx)} {world(ctx)}!")

ctx = {}
print(greeting(ctx))  # "Hello World!"

Project details


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.1.1.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lazily-0.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file lazily-0.1.1.tar.gz.

File metadata

  • Download URL: lazily-0.1.1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for lazily-0.1.1.tar.gz
Algorithm Hash digest
SHA256 89f421af753ef93544f69ae172f8761731eee4336a7abd8b4b4baaca0b51b211
MD5 2b7c0b2d5d65844a063102cb98e4c693
BLAKE2b-256 f59847dd963c3688f217ceb990fa58f7d34ff15e0c8e45a885c1aac8c67bd80d

See more details on using hashes here.

File details

Details for the file lazily-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lazily-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for lazily-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b11da2ff7f4d4a840329f1f699f0684f819c356295a22265341fea2f192eea1b
MD5 96acb189d7fb6f58076b0c98a7f37e53
BLAKE2b-256 c028f851ba80ebdfa558a50d034255aa9a277b9c3388f8f0f283347f5cfaddb0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page