1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-lazy-object-proxy
7 SDESC[v11]= Fast and thorough lazy object proxy (3.11)
8 SDESC[v12]= Fast and thorough lazy object proxy (3.12)
9 HOMEPAGE= https://github.com/ionelmc/python-lazy-object-proxy
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/l/lazy-object-proxy
14 DISTFILE[1]= lazy-object-proxy-1.10.0.tar.gz:main
19 OPTIONS_AVAILABLE= PY311 PY312
20 OPTIONS_STANDARD= none
21 VOPTS[v11]= PY311=ON PY312=OFF
22 VOPTS[v12]= PY311=OFF PY312=ON
24 BUILD_DEPENDS= python-pip:single:python_used
25 python-setuptools-scm:single:python_used
27 DISTNAME= lazy-object-proxy-1.10.0
31 [PY311].USES_ON= python:v11,sutools
33 [PY312].USES_ON= python:v12,sutools
35 [FILE:2571:descriptions/desc.single]
40 A fast and thorough lazy object proxy.
42 * Free software: BSD 2-Clause License
44 Note that this is based on `wrapt`_'s ObjectProxy with one big change: it
45 calls a function the first time the proxy object is
46 used, while `wrapt.ObjectProxy` just forwards the method calls to the
49 In other words, you use `lazy-object-proxy` when you only have the object
50 way later and you use `wrapt.ObjectProxy` when you
51 want to override few methods (by subclassing) and forward everything else
56 import lazy_object_proxy
59 from time import sleep
60 print('starting calculation')
61 # just as example for a very slow computation
63 print('finished calculation')
64 # return the result of the calculation
67 obj = lazy_object_proxy.Proxy(expensive_func)
68 # function is called only when object is actually used
69 print(obj) # now expensive_func is called
71 print(obj) # the result without calling the expensive_func
78 pip install lazy-object-proxy
83 https://python-lazy-object-proxy.readthedocs.io/
88 To run all the tests run::
95 This project is based on some code from `wrapt`_ as you can see in the git
98 .. _wrapt: https://github.com/GrahamDumpleton/wrapt
106 * Added Python 3.12 wheels.
107 * Dropped support for Python 3.7.
108 * Applied some reformatting and lint fixes using ruff to the codebase
109 (mostly more Python 2 leftover cleanups).
114 * Added support for matrix multiplication operator (``@``).
115 * Should have all the wheels now (including the manylinux ones).
116 * Bumped minimum version requirements for setuptools and setuptools-scm.
117 * Switched the default pure python fallback implementation to the "simple"
118 one (when you from lazy_object_proxy import Proxy
119 and the C extension is not available).
120 Previously the "slots" implementation was used but as it turns out it is
126 * Cleaned up use of cPickle. Contributed by Sandro Tosi in `#62
127 <https://github.com/ionelmc/python-lazy-object-proxy/pull/62>`_.
128 * Cleaned up more dead Python 2 code.
129 * Added Python 3.11 wheels.
130 * Dropped support for Python 3.6.
135 * Removed most of the Python 2 support code and fixed python_requires to
139 78247b6d45f43a52ef35c25b5581459e85117225408a4128a3daf8bf9648ac69 43271 lazy-object-proxy-1.10.0.tar.gz