Generic Transparent Proxies
Project description
zope.proxy
Proxies are special objects which serve as mostly-transparent wrappers around another object, intervening in the apparent behavior of the wrapped object only when necessary to apply the policy (e.g., access checking, location brokering, etc.) for which the proxy is responsible.
zope.proxy is implemented via a C extension module, which lets it do things like lie about its own __class__ that are difficult in pure Python (and were completely impossible before metaclasses). It also proxies all the internal slots (such as __int__/__str__/__add__).
Changes
4.1.5 (2015-05-19)
Made the C implementation proxy __unicode__ correctly.
Made the C implementation use the standard methods to proxy int and float.
Made the pure Python implementation handle descriptors defined in subclasses like the C version. See https://github.com/zopefoundation/zope.proxy/issues/5.
4.1.4 (2014-03-19)
Added support for Python 3.4.
Updated bootstrap.py to version 2.2.
4.1.3 (2013-03-12)
Fixed interface object introspection in PyPy. For some reason PyPy made attributes available despite the restrictive __slots__ declaration.
Added a bunch of tests surrounding interface lookup and adaptation.
4.1.2 (2013-03-11)
Fixed PyProxyBase.__iter__() to return the result of PyProxyBase._wrapped.__iter__ if available, otherwise fall back to Python internals. The previous implementation always created a generator.
Fixed PyProxyBase.__setattr__() to allow setting of properties on the proxy itself. This is needed to properly allow proxy extensions as was evidenced int he zope.security.decorator module.
4.1.1 (2012-12-31)
Fleshed out PyPI Trove classifiers.
4.1.0 (2012-12-19)
Enabled compilation of dependent modules under Py3k.
Replaced use of PyCObject APIs with equivalent PyCapsule APIs, except under Python 2.6.
- N.B. This change is an ABI incompatibility under Python 2.7:
extensions built under Python 2.7 against 4.0.x versions of zope.proxy must be rebuilt.
4.0.1 (2012-11-21)
Added support for Python 3.3.
4.0.0 (2012-06-06)
Added support for PyPy.
N.B.: the C extension is not built under PyPy.
Added a pure-Python reference / fallback implementations of zope.proxy.ProxyBase and the proxy module API functions.
N.B.: the pure-Python proxy implements all regular features of ProxyBase; however, it does not exclude access to the wrapped object in the same way that the C version does. If you need that information hiding (e.g., to implement security sandboxing), you still need to use the C version.
Added support for continuous integration using tox and jenkins.
100% unit test coverage.
Added Sphinx documentation: moved doctest examples to API reference.
Added ‘setup.py docs’ alias (installs Sphinx and dependencies).
Added ‘setup.py dev’ alias (runs setup.py develop plus installs nose and coverage).
Replaced deprecated zope.interface.implements usage with equivalent zope.interface.implementer decorator.
Dropped support for Python 2.4 and 2.5.
Added Python 3.2 support.
3.6.1 (2010-07-06)
Make tests compatible with Python 2.7.
3.6.0 (2010-04-30)
Removed test extra and the remaining dependency on zope.testing.
Removed use of ‘zope.testing.doctestunit’ in favor of stdlib’s ‘doctest.
3.5.0 (2009/01/31)
Added support to bootstrap on Jython.
Use zope.container instead of zope.app.container.
3.4.2 (2008/07/27)
Made C code compatible with Python 2.5 on 64bit architectures.
3.4.1 (2008/06/24)
Bug: Updated setup.py script to conform to common layout. Also updated some of the fields.
Bug: The behavior of tuples and lists in the __getslice__() and __setslice__() method were incorrect by not honoring the pre-cooked indices. See http://docs.python.org/ref/sequence-methods.html.
3.4.0 (2007/07/12)
Feature: Added a decorator module that supports declaring interfaces on proxies that get blended with the interfaces of the things they proxy.
3.3.0 (2006/12/20)
Corresponds to the verison of the zope.proxy package shipped as part of the Zope 3.3.0 release.
3.2.0 (2006/01/05)
Corresponds to the verison of the zope.proxy package shipped as part of the Zope 3.2.0 release.
3.0.0 (2004/11/07)
Corresponds to the verison of the zope.proxy package shipped as part of the Zope X3.0.0 release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for zope.proxy-4.1.5.win-amd64-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a4913abdbb4a5d46997ab930301028d438b626d2e8c402b82c08320ecd5ab40 |
|
MD5 | 8b440cc369e0b3908d0b643bca3abc9b |
|
BLAKE2b-256 | 7ade06bf271c1a51cf34330a07299b548216bffa6a124e916388380158eb7709 |
Hashes for zope.proxy-4.1.5.win-amd64-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2723ce26752d1c5f07181719ab371bc9e045ef8bf7650c3a9aae2b1b0863b569 |
|
MD5 | d6352738beae521feb2504e9b8bfc705 |
|
BLAKE2b-256 | e45e338b904b7c7ea7890a574bed82defe325151f1c089902e56ea1dd8e6fd74 |
Hashes for zope.proxy-4.1.5.win-amd64-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76924bf127ab9becc70376ac777e73c72dedc3a53f863655010d5393671f48a7 |
|
MD5 | 0f54d7871f3ba543ea7864390562f2e3 |
|
BLAKE2b-256 | 8f2ddceea683ea793627fd868ea5cea41abacc5b59d2bda232417d91add18dca |
Hashes for zope.proxy-4.1.5.win-amd64-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | c43287a566ccac4f42c7adb0ca9a9469db5618dd1f8ced9e4987c5a8c531b2c6 |
|
MD5 | 9cab33a0a6daa2f98f2548f063395841 |
|
BLAKE2b-256 | 3f069fed4327c59107630bb0c55eb0a63e12f576b0ba20b893dded10b8252f4b |
Hashes for zope.proxy-4.1.5.win-amd64-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | d098e8cdd990e0cdb28db0b34f1737590c4cd99c910a048f8afefc479f10bdcb |
|
MD5 | 6bc8861713277140dc85715839d9ccc2 |
|
BLAKE2b-256 | 06c8b48389dd4c2a52bef8aef7f5319a523fa8bc817cf00fec086e983018c1ff |
Hashes for zope.proxy-4.1.5.win32-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 95a9e7996bfc27dd80fad01a1897c320c743df97c425af3a69ce408f30d40aac |
|
MD5 | 53276da60dbc84197bb5d212809af50f |
|
BLAKE2b-256 | 6bd41420c0d1a7d083b02bafbb6e246fd183cab07d2c475e131af4cc261e14fb |
Hashes for zope.proxy-4.1.5.win32-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 042afcb6450fcc2eb685e86f1b4d3abf616185e5bfb5146c00d83607aa0f62c2 |
|
MD5 | 07d445b4baa09ce9995e45a3b851fb69 |
|
BLAKE2b-256 | aba88495552ac10dd372584643cc62042730b66e61c33b4d561a20571834606a |
Hashes for zope.proxy-4.1.5.win32-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7786392a38febacf2a782926d9e84b56f393364de9ba838e648fff23d26159cf |
|
MD5 | d66a68fbfc142b0aa80aafb2190c0e5d |
|
BLAKE2b-256 | 705a96267939b01c93c32641f492cdb8034b7220a78ae8d06a13c71d34c0604d |
Hashes for zope.proxy-4.1.5.win32-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfdbe9dc43a80bc9a01c12f468edb110e7a75e335c965d81aea0aaf272c15242 |
|
MD5 | f94662e8a5aa5b3532d0e5309f6da258 |
|
BLAKE2b-256 | 33b33f53269fb52190ce94c758b00108f618310e44e0d9a795e353c99f2f4f33 |
Hashes for zope.proxy-4.1.5.win32-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb94f35535206aa6ccd50cd97cf60766b19194aadfdc8137bf7cd5a598f97fe8 |
|
MD5 | 86bb04b9de9eba743a2e8fc856e94ebb |
|
BLAKE2b-256 | 070f4387e08bde8460eb436d1506ba2e7694907c09210ba8a648a958e08a423e |
Hashes for zope.proxy-4.1.5-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5de41a6737d33ffae5c2c96c86e1e8f2e63df503448091aaa994f13b3f4768a |
|
MD5 | 17f35ca1396336ee89c5b7beaeaa600e |
|
BLAKE2b-256 | 2f4b0067556d754bd3e927a17d4495280b325785dfcf249159f6a32f446fb959 |
Hashes for zope.proxy-4.1.5-py3.4-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d1018b2ffb0bae429730428b5899e71c1c1a66f24474bb42e701d45229761e |
|
MD5 | 626f2ca2d67ee958c6b3ca8a0419d752 |
|
BLAKE2b-256 | 105a95b5a9c5448229f60e7e74b63310357f781aed21977510574949164ff0a4 |
Hashes for zope.proxy-4.1.5-py3.3-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4592933cffa033fe7aa401c57d1fef5b2251864de1ced51d0a9c324928a5a6b3 |
|
MD5 | 3b1a882ccf8f071e1f5d41b6f9ae386e |
|
BLAKE2b-256 | 39b99bc34d5f67be96db014673c40aa9dc5c846209f18300ee1003285c4901c7 |
Hashes for zope.proxy-4.1.5-py3.3-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | f297d2de534ee98e26f2e1e8035d2d9adfe24cb8fd4791cb744e80260249f0f0 |
|
MD5 | 73591c9379bb02c3b9ba4a701014c535 |
|
BLAKE2b-256 | 7431569bdc8f3e5be124bfeec940e64b4b514c779f3baa9099a759cb9221a040 |
Hashes for zope.proxy-4.1.5-py3.2-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62037009f9a869d7f28ba6e53f45b453d6e34e67250e5294de96ba62a6641a60 |
|
MD5 | a9efca4740eabf26ca92521188212573 |
|
BLAKE2b-256 | ea3f6833cf59c5f21209fab79cf41855d437f3fe9edd3c9844f6256a4704e71a |
Hashes for zope.proxy-4.1.5-py3.2-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d3abbe715124a54f7e91bae1745d8574b93a1de82acea45bdec75ece796b601 |
|
MD5 | cc480cf17afc9fd7575f7c82677f51ed |
|
BLAKE2b-256 | 7d02e8145e030da148384bd01135b58daa3f6107385e9c4ce3c9bd4b88d80236 |
Hashes for zope.proxy-4.1.5-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6735defab01d66503ecdcba7e35c7ca7af802cf71a2bb8eebeed6c62b7d965 |
|
MD5 | 3105b98ab99bf40d9ebd1d4cd5f6e481 |
|
BLAKE2b-256 | 68aaa348de18bb1178d7f8f038c5f176784b3408d6f84c27610d334d764c5ef0 |
Hashes for zope.proxy-4.1.5-py2.7-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51b6dab18e3da429091cbc7455c03718173ee6fffc47c96dee6d4c17e9897837 |
|
MD5 | 72dffabe1bb17125953387674c1d9e48 |
|
BLAKE2b-256 | 11b2b0d0ce34c909b2d86560df56373bd5ad45b6ac176fe9bf94c24e5663a915 |
Hashes for zope.proxy-4.1.5-py2.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | da2684bdb85f3b02f0db1b16d503d67df62103fdce58960913d394263527a0c0 |
|
MD5 | e31546b497ce1035f14eb78cdb347376 |
|
BLAKE2b-256 | 28590a7434a94f5dadfe2601f762d05ebda6ed5e9b7b3a9d37e2a3f213915928 |
Hashes for zope.proxy-4.1.5-py2.6-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c5addf9e9b1190fa8fb6c4e866714f7f9afc928bf86210289b4395904bff105 |
|
MD5 | 993bde49050ad107e6b5029fbce29cf1 |
|
BLAKE2b-256 | 574621a3dbaea0725cca93954b58f5776860437d5df42c49d2a9d6cf832fb731 |