python-lazy-object-proxy
Port variant v15
Summary Fast and thorough lazy object proxy (3.15)
Package version 1.13.0
Homepage https://pypi.org/project/lazy-object-proxy/
Keywords python
Maintainer Python Automaton
License Not yet specified
Other variants v14
Ravenports Buildsheet | History
Ravensource Port Directory | History
Last modified 13 NOV 2026, 13:25:52 UTC
Port created 30 NOV 2020, 06:56:42 UTC
Subpackage Descriptions
single ======== Overview ======== :alt: Documentation Status A fast and thorough lazy object proxy. * Free software: BSD 2-Clause License Note that this is based on `wrapt`_'s ObjectProxy with one big change: it calls a function the first time the proxy object is used, while `wrapt.ObjectProxy` just forwards the method calls to the target object. In other words, you use `lazy-object-proxy` when you only have the object way later and you use `wrapt.ObjectProxy` when you want to override few methods (by subclassing) and forward everything else to the target object. Example:: import lazy_object_proxy def expensive_func(): from time import sleep print('starting calculation') # just as example for a very slow computation sleep(2) print('finished calculation') # return the result of the calculation return 10 obj = lazy_object_proxy.Proxy(expensive_func) # function is called only when object is actually used print(obj) # now expensive_func is called print(obj) # the result without calling the expensive_func Installation ============ :: pip install lazy-object-proxy You can also install the in-development version with:: pip install https://github.com/ionelmc/python-lazy-object-proxy/archive/master.zip Documentation ============= https://python-lazy-object-proxy.readthedocs.io/ Development =========== To run all the tests run:: tox Acknowledgements ================ This project is based on some code from `wrapt`_ as you can see in the git history. .. _wrapt: https://github.com/GrahamDumpleton/wrapt
Configuration Switches (platform-specific settings discarded)
PY314 OFF Build using Python 3.14 PY315 ON Build using Python 3.15
Package Dependencies by Type
Build (only) python-pip:single:v15
python-setuptools-scm:single:v15
python-setuptools-scm:single:v15
python315:dev:std
python-pip:single:v15
python-setuptools:single:v15
python-wheel:single:v15
python-build:single:v15
python-installer:single:v15
autoselect-python:single:std
Build and Runtime python315:primary:std
Download groups
main mirror://PYPI/l/lazy-object-proxy
Distribution File Information
ce34046cb021d69c72d05ddb83821ecfd4d2d0a5d43a93c5cd01c9e34779cf14 45649 python-src/lazy_object_proxy-1.13.0.tar.gz
Ports that require python-lazy-object-proxy:v15
No other ports depend on this one.