lazy-object-proxy
A fast and thorough lazy object proxy.
Free software: BSD license
Installation
pip install lazy-object-proxy
Documentation
Development
To run the all tests run:
tox
Benchmarks
The tested implementations:
lazy_object_proxy.slots.Proxy, available as lazy_object_proxy.Proxy if the C extension is not available.
lazy_object_proxy.cext.Proxy, available as lazy_object_proxy.Proxy.
objproxies - fork of PJE’s ProxyTypes with Python 3 support. [1]
SimpleLazyObject from Django. [1]
lazy_object_proxy.simple.Proxy - uses the non-data descriptor trick. [1]
For Python 2.7:
------ benchmark: min 5 rounds (of min 25.00us), 5.00s max time, timer: time.clock ----- Name (time in ns) Min Max Mean StdDev Rounds Iterations ---------------------------------------------------------------------------------------- test_perf[slots] 705.3837 3091.0072 720.4805 27.2588 180453 38 test_perf[cext] 93.6346 278.9731 95.1876 2.5474 164373 312 test_perf[simple] 398.1636 1863.2017 405.4325 13.1411 207521 59 test_perf[django] 471.6515 983.0809 480.4264 10.2059 193043 53 test_perf[objproxies] 1204.7003 4818.8010 1475.3419 114.8213 55898 1 ----------------------------------------------------------------------------------------
For Python 3.4:
-- benchmark: min 5 rounds (of min 25.00us), 5.00s max time, timer: time.perf_counter -- Name (time in ns) Min Max Mean StdDev Rounds Iterations ---------------------------------------------------------------------------------------- test_perf[slots] 803.1335 2728.8286 826.0882 20.5562 182436 33 test_perf[cext] 103.2911 254.4223 104.6869 2.6294 164373 277 test_perf[simple] 448.6894 2040.6147 462.0342 17.1546 218443 49 test_perf[django] 518.3013 1225.7125 532.0523 14.4672 218443 43 test_perf[objproxies] 1116.8575 3827.4331 1157.8419 43.9602 174755 24 ----------------------------------------------------------------------------------------
For PyPy 2.4:
Note that the mean difference between simple, django and objproxies is smaller the standard deviance, thus it cannot be considered.
------ benchmark: min 5 rounds (of min 25.00us), 15.00s max time, timer: time.clock ---- Name (time in ns) Min Max Mean StdDev Rounds Iterations ---------------------------------------------------------------------------------------- test_perf[slots] 1.9577 260.2979 2.2457 0.4882 498050 15384 test_perf[simple] 31.3536 4374.4246 34.7433 11.7566 478894 999 test_perf[django] 32.5269 4443.8381 35.8729 16.9071 461157 1000 test_perf[objproxies] 33.1293 4529.3718 36.7435 13.3377 452773 1000 ----------------------------------------------------------------------------------------
Changelog
1.0.1 (2014-12-28)
Fix access via class bug in the __wrapped__ property from lazy_object_proxy.simple.Proxy.
1.0.0 (2014-12-27)
General code cleanup
A faster pure-python Proxy implementation (lazy_object_proxy.simple.Proxy) to be used where the C extension is not available. It’s not a complete proxy so it’s never available as lazy_object_proxy.Proxy.
0.1.0 (2014-06-10)
First release on PyPI.
Metadata
Release files for lazy-object-proxy 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lazy-object-proxy-1.0.1.tar.gz | 30.6 kB | Without provenance | Details for lazy-object-proxy-1.0.1.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| lazy_object_proxy-1.0.1-cp34-none-win_amd64.whl | CPython 3.4 | none | Windows x86-64 | Details for lazy_object_proxy-1.0.1-cp34-none-win_amd64.whl |
| lazy_object_proxy-1.0.1-cp34-none-win32.whl | CPython 3.4 | none | Windows x86-32 | Details for lazy_object_proxy-1.0.1-cp34-none-win32.whl |
| lazy_object_proxy-1.0.1-cp33-none-win_amd64.whl | CPython 3.3 | none | Windows x86-64 | Details for lazy_object_proxy-1.0.1-cp33-none-win_amd64.whl |
| lazy_object_proxy-1.0.1-cp33-none-win32.whl | CPython 3.3 | none | Windows x86-32 | Details for lazy_object_proxy-1.0.1-cp33-none-win32.whl |
| lazy_object_proxy-1.0.1-cp27-none-win_amd64.whl | CPython 2.7 | none | Windows x86-64 | Details for lazy_object_proxy-1.0.1-cp27-none-win_amd64.whl |
| lazy_object_proxy-1.0.1-cp27-none-win32.whl | CPython 2.7 | none | Windows x86-32 | Details for lazy_object_proxy-1.0.1-cp27-none-win32.whl |
Total release size: 170.3 kB
Release files / lazy-object-proxy-1.0.1.tar.gz
| Download URL | lazy-object-proxy-1.0.1.tar.gz |
|---|---|
| Size | 30.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40e63fb033f254ae51b1d62defe492e0ddbb7ef23a09e78332b6437e1dd0422f
|
|
BLAKE2b-256 checksum How to use checksums |
756009304281c5b492c0e9fce9d4d70863dbd5611e7d323ed793f3d9db320f7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lazy_object_proxy-1.0.1-cp34-none-win_amd64.whl
| Download URL | lazy_object_proxy-1.0.1-cp34-none-win_amd64.whl |
|---|---|
| Size | 23.8 kB |
| Tags | CPython 3.4 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
d68d634ffc47ad1eadb9ae203316df610e5bef96a2c9b18d355df11350493f73
|
|
BLAKE2b-256 checksum How to use checksums |
24f04915163535b9dadc2f611e829ced103c55fd41c0fea0e4788fe73f9961ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lazy_object_proxy-1.0.1-cp34-none-win32.whl
| Download URL | lazy_object_proxy-1.0.1-cp34-none-win32.whl |
|---|---|
| Size | 22.7 kB |
| Tags | CPython 3.4 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
0f46c8e36188190f4f5ea5639887ad47ee09cf41a9fa2ccd1e0e42f16c22b29a
|
|
BLAKE2b-256 checksum How to use checksums |
cee6df14fca3cabfd0c73f39e555829572917b703421f6e2519e9e0d00b99f57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lazy_object_proxy-1.0.1-cp33-none-win_amd64.whl
| Download URL | lazy_object_proxy-1.0.1-cp33-none-win_amd64.whl |
|---|---|
| Size | 23.8 kB |
| Tags | CPython 3.3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
521a8c35c2dc6060a1f1825b648d5e1754315a7a2984a41739e9ddd99e11f398
|
|
BLAKE2b-256 checksum How to use checksums |
13f077263a68f189f9b2e9d81683dc1db8e40c9fe0e8ff1f8cb75dcb8e94ef26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lazy_object_proxy-1.0.1-cp33-none-win32.whl
| Download URL | lazy_object_proxy-1.0.1-cp33-none-win32.whl |
|---|---|
| Size | 22.7 kB |
| Tags | CPython 3.3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
2d608063428676be5da0e7e1bb5fde00f9688ee42c56e7f9cd94a8a2eb7045d0
|
|
BLAKE2b-256 checksum How to use checksums |
1e3257ebe3f8ef4af64b19f2cba7d448da83cb3d1960bf937b17756eed65608a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lazy_object_proxy-1.0.1-cp27-none-win_amd64.whl
| Download URL | lazy_object_proxy-1.0.1-cp27-none-win_amd64.whl |
|---|---|
| Size | 23.9 kB |
| Tags | CPython 2.7 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
3d5e77b790472125b886352d5e00d561c6b94a9d0a30f5e328a6ef9e2b7cd0bf
|
|
BLAKE2b-256 checksum How to use checksums |
431147e517fc138fbf83075c00049551461e5e98428541aa0af55ffb252b4c6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lazy_object_proxy-1.0.1-cp27-none-win32.whl
| Download URL | lazy_object_proxy-1.0.1-cp27-none-win32.whl |
|---|---|
| Size | 22.8 kB |
| Tags | CPython 2.7 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
ef5c6727fd69a9e12992451502bf6e5eb84150fe9c879090f62b3d7ff0664d63
|
|
BLAKE2b-256 checksum How to use checksums |
983f7fae2242c1aaddcfde481e7491161d281e91acdff894a7767c457ba836c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for lazy-object-proxy 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.