python-lazy-object-proxy

Python fast and thorough lazy object proxy

Description

A lazy object proxy is an object that wraps a callable but defers the call until the object is actually required, and caches the result of said call.

These kinds of objects are useful in resolving various dependency issues, few examples:

 * Objects that need to held circular references at each other, but at
   different stages. To instantiate object Foo you need an instance of Bar.
   Instance of Bar needs an instance of Foo in some of it methods (but not at
   construction). Circular imports sound familiar?

 * Performance sensitive code. You don't know ahead of time what you're going
   to use but you don't want to pay for allocating all the resources at the
   start as you usually need just few of them.

This package contains the Python 2 version of lazy-object-proxy .

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/ionelmc/python-lazy-object-proxy


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install python-lazy-object-proxy