Generic transparent proxies via a C extension module
Python C
Latest commit 4d43061 Jul 11, 2017 @jamadden jamadden committed on GitHub Merge pull request #19 from zopefoundation/doctest-all-the-things
100% coverage, run doctests everywhere, drop 'setup.py test' and Py 3.3
Permalink
Failed to load latest commit information.
docs
src/zope Use the right security proxy when testing C removeAllProxies Jul 11, 2017
.coveragerc 100% coverage Jul 11, 2017
.gitignore
.travis.yml 100% coverage Jul 11, 2017
CHANGES.rst 100% coverage Jul 11, 2017
COPYRIGHT.txt Conform to repository policy. May 5, 2010
LICENSE.txt Conform to repository policy. May 5, 2010
MANIFEST.in
README.rst 100% coverage Jul 11, 2017
bootstrap.py
buildout.cfg Test normally with zope.security. May 9, 2016
rtd.txt
setup.cfg Add 'setup.py docs' alias Jun 6, 2012
setup.py 100% coverage Jul 11, 2017
tox.ini 100% coverage Jul 11, 2017

README.rst

zope.proxy

Latest Version https://travis-ci.org/zopefoundation/zope.proxy.png?branch=master Documentation Status

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__).

Complete documentation is at https://zopeproxy.readthedocs.io