Generic Transparent Proxies
Project description
Generic Transparent Proxies
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__).
Editorial note:
Unfortunately, we don’t have separate documentation for zope.proxy at this time. This is a shame because they are generically useful. We are publishing this release without documentation mainly because it is a dependency of other releases.
CHANGES
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.4.win-amd64-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | b27947794ad74ce743c7803214af97b83d5fdeab84ae16f8ba31d56f6fb52f4a |
|
MD5 | 4bc21af966b10a96125ce1af15ef47de |
|
BLAKE2b-256 | 9e8ef439ddeb206b87890868a9cd7c48781699fff4491412df078852b46b2a49 |
Hashes for zope.proxy-4.1.4.win-amd64-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c299f747795dbb38217cbb3f9835d31252e3feb1f58d94a7ce3fcf657194e9c |
|
MD5 | eb48df22818f4b546b14fb873e0a9cd5 |
|
BLAKE2b-256 | 4afb213bb14af185ef37d8d4281c9f413803eaf281aac49c34ccd894f64db4b4 |
Hashes for zope.proxy-4.1.4.win-amd64-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0164a93ba18cdd2d0a93b48664dd6a7bb54b04633463906755b5b701b06ecdb2 |
|
MD5 | 2db06c02049105cf8ccc6bc3f429f9e2 |
|
BLAKE2b-256 | f1b3676fd3f45ded76ee1a9561939c04f11d13d8ec7227f9e03955b918141d0e |
Hashes for zope.proxy-4.1.4.win-amd64-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 855d9b654014a5ff9359fb26f55b0320aeea54df91ef2135636dd74cf8ce9c39 |
|
MD5 | 37c03196cce7e0b56a92413561d7586b |
|
BLAKE2b-256 | 5da295b7c84e58ce6bc2254b3712fc98259d846dc9a9c137bf0da3c3fb99b2a9 |
Hashes for zope.proxy-4.1.4.win-amd64-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167acc7c96a5565b8c02ac3d89fedc59d52fc69d8116630ace82aca2d7cb4819 |
|
MD5 | bb2abaa73327169851ff0ace04ec052b |
|
BLAKE2b-256 | 4ec84ddb19f2efa08fb66eb24843e30abcd0d188dd3ba2dd435eafa7c695f6f3 |
Hashes for zope.proxy-4.1.4.win32-py3.4.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94165326ecd383eb91bb3c14b00ced4e565a738dc064806a75017fb29ba422d0 |
|
MD5 | 7e47368888b8be36566ce86eed533201 |
|
BLAKE2b-256 | a8191f6a9b18f825eeda46447708e93afd0a56ee96b97e8a0f55f5aed36b36b6 |
Hashes for zope.proxy-4.1.4.win32-py3.3.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79d28a8bee86ea3b2c4ba36ad16c2f5bc9d3b13d12fb32b58c9aaf8e2a7bbb00 |
|
MD5 | 7e89bd528625481299569431590f7ab2 |
|
BLAKE2b-256 | 45a46c793e247f9b07376ff12e5bc4d64de0421c7d80773717cfd520703585a9 |
Hashes for zope.proxy-4.1.4.win32-py3.2.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | c45add29f7d2f93d02bc8123952fc463ee83afcc16f452d1f05aab6202b5c6b1 |
|
MD5 | 2f7d1e6ab49eb1a4ccfba757cab2b42f |
|
BLAKE2b-256 | e52c06b74f389e35e916710b3678a3d4f76da81cc336a4553822685f721edaba |
Hashes for zope.proxy-4.1.4.win32-py2.7.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce35295283e2d80531b88ce16e86263ab944e50c35733e449c9508e5e3a8ee79 |
|
MD5 | 778bae75e80337523b65689192a11245 |
|
BLAKE2b-256 | 821ec1ae04450b8cea7421bd64618aefad46cc37fad8609cd4ea03e0e3f9acb6 |
Hashes for zope.proxy-4.1.4.win32-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51e834cb9133d8b103109f3a56e37c70d782fde387c63ecebb400b3a1de7107c |
|
MD5 | 795f5ea3776c267bd660fd4d1bda3b23 |
|
BLAKE2b-256 | 6ea68eecad0263b233cbf4559b852ff36006e6330f70295f335cb8c7a52affce |
Hashes for zope.proxy-4.1.4-py3.4-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5403cabcc6e2687c05a6a6fab02d3d66c4a4488469d939b48934c02106f9dfe7 |
|
MD5 | 1418f41fd765f4a74d1dc825fda5a223 |
|
BLAKE2b-256 | d224934adf22e8d679722259ed5a290adca3bd95d56f546eaf3ae01f3b0023a7 |
Hashes for zope.proxy-4.1.4-py3.4-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c88503b64bbab8c1ac83a8a1e28a0a0b1304979af06dfb96543a14bae44d1c |
|
MD5 | 5de5aa3b002974b871ffcc2154e2aeb5 |
|
BLAKE2b-256 | fdf7c950c6902a7151fc2d5fa77e9886164453c69963208e7cf25de756a2979f |
Hashes for zope.proxy-4.1.4-py3.3-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2c4244b8116b566569c219713400be6ff9ba32ccc79d06173300ae8eb997ae |
|
MD5 | 45ec72ad7b70546cdfc2b6add54e362a |
|
BLAKE2b-256 | 6fe559acbda7d4df85725521adb5c9fdb821b27a7ee4e7585fa17da43a13aab6 |
Hashes for zope.proxy-4.1.4-py3.3-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6f109cf157fdd5b1f6d1d55db4b1a20657e8e52eae46b231f3feabd06644b0 |
|
MD5 | 1572bdc973f520f039bb150ba446f93d |
|
BLAKE2b-256 | 0d6244daa34b52459f672e1dd7fb1bd224bbfa33c1b72b7f093bf1c369562d85 |
Hashes for zope.proxy-4.1.4-py3.2-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 995c698cbbcfa0ce81fc305c7f9e43a92da8110589fc61e187e72d1c350a630e |
|
MD5 | 5c0ba1ca641bb428e3ed1a8798ba8dce |
|
BLAKE2b-256 | 0fbbec826b1cdb2ae7cf203f66716363f812bda0e199a5ab07c490800a8a4874 |
Hashes for zope.proxy-4.1.4-py3.2-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1064e80aa354b254ca38ab2bed15efec169a3e9b8b467753199affa1c3355665 |
|
MD5 | fcf0513a233ffbd8347af3fb4e238494 |
|
BLAKE2b-256 | 0046376049afa27b1b3cd1ab43314bc7eba21a24377a1495fbdd26ef2471376b |
Hashes for zope.proxy-4.1.4-py2.7-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b7d757de877f4d92434b5e1defd51fba0a39e1bb70b4c11c863f452c8b3d99e |
|
MD5 | ff3b315445b37383550deebc0ae1a378 |
|
BLAKE2b-256 | 2442fc4489f85434c132e48cdf76e503afefd44a61addd4cf29fb155defd61d4 |
Hashes for zope.proxy-4.1.4-py2.7-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a57caea540b73c0ba50600000a3a0983643199516327fd09fd155155663cba7 |
|
MD5 | 04c26dad53fe5d91491f431693188624 |
|
BLAKE2b-256 | f4489965321b8614195daddc0b8f64dd2591bee6cac8d32a69587b9cd1e73c1b |
Hashes for zope.proxy-4.1.4-py2.6-win-amd64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5d7e73aa46a177a3e22b55da62b5184ed3bed96a5d51a51c80040d37372475a |
|
MD5 | e9d5a37adff901bc68785a8f9b202980 |
|
BLAKE2b-256 | f256214dd2af4ffcf745ec547a755968157141fc002703d7534cb139d61a02ac |
Hashes for zope.proxy-4.1.4-py2.6-win32.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0385c99cc65242b09b641443bfbcc487328e692bc1cdccd613cb5538642f14f5 |
|
MD5 | b20f17d742927106868b96e99bb0a589 |
|
BLAKE2b-256 | 689438e3df9ece6070402138c2a70402df8e64fd73bac9ab784f641f95ffd6ab |