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.0.tar.gz (11.7 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.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lazily-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 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.0.tar.gz
Algorithm Hash digest
SHA256 f6d5ec20af5ab14c64f87626a0dd563d761e40a25b90f84d5dd5d2e7d067a99e
MD5 06df7226a942f83ee0f9a46441c6f8d6
BLAKE2b-256 7f88cafe7ea2cc800ffda1e9afba9a1d4958cee2543762f25b459ceb6b8373d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lazily-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7f74701320e8e0fc61e5bf18edc56e029ce95b4c0dafd0f0fd52f51246aef3e
MD5 53479cea7e3d27aa450d4197695879c3
BLAKE2b-256 9d6a3e3bab613f29f82d5ab55f2d6515fc23b2dd12602b1840fdf2a49a4a177c

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