Ravenports generated: 26 Mar 2024 02:06
[ravenports.git] / bucket_3E / python-lazy-object-proxy
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-lazy-object-proxy
4 VERSION=                1.10.0
5 KEYWORDS=               python
6 VARIANTS=               v11 v12
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]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPI/l/lazy-object-proxy
14 DISTFILE[1]=            lazy-object-proxy-1.10.0.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[v11]=             single
17 SPKGS[v12]=             single
18
19 OPTIONS_AVAILABLE=      PY311 PY312
20 OPTIONS_STANDARD=       none
21 VOPTS[v11]=             PY311=ON PY312=OFF
22 VOPTS[v12]=             PY311=OFF PY312=ON
23
24 BUILD_DEPENDS=          python-pip:single:python_used
25                         python-setuptools-scm:single:python_used
26
27 DISTNAME=               lazy-object-proxy-1.10.0
28
29 GENERATED=              yes
30
31 [PY311].USES_ON=                        python:v11,sutools
32
33 [PY312].USES_ON=                        python:v12,sutools
34
35 [FILE:2571:descriptions/desc.single]
36 ========
37 Overview
38 ========
39
40 A fast and thorough lazy object proxy.
41
42 * Free software: BSD 2-Clause License
43
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
47 target object.
48
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
52 to the target object.
53
54 Example::
55
56     import lazy_object_proxy
57
58     def expensive_func():
59         from time import sleep
60         print('starting calculation')
61         # just as example for a very slow computation
62         sleep(2)
63         print('finished calculation')
64         # return the result of the calculation
65         return 10
66
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
70
71     print(obj)  # the result without calling the expensive_func
72
73 Installation
74 ============
75
76 ::
77
78     pip install lazy-object-proxy
79
80 Documentation
81 =============
82
83 https://python-lazy-object-proxy.readthedocs.io/
84
85 Development
86 ===========
87
88 To run all the tests run::
89
90     tox
91
92 Acknowledgements
93 ================
94
95 This project is based on some code from `wrapt`_ as you can see in the git
96 history.
97
98 .. _wrapt: https://github.com/GrahamDumpleton/wrapt
99
100 Changelog
101 =========
102
103 1.10.0 (2023-12-15)
104 -------------------
105
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).
110
111 1.9.0 (2023-01-04)
112 ------------------
113
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
121 slower on Python 3.
122
123 1.8.0 (2022-10-26)
124 ------------------
125
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.
131
132 1.7.1 (2021-12-15)
133 ------------------
134
135 * Removed most of the Python 2 support code and fixed python_requires to
136
137
138 [FILE:110:distinfo]
139 78247b6d45f43a52ef35c25b5581459e85117225408a4128a3daf8bf9648ac69        43271 lazy-object-proxy-1.10.0.tar.gz
140