Skip to main content

Padme is a mostly transparent proxy class for Python

Project description

===================================================
Padme - a mostly transparent proxy class for Python
===================================================

.. image:: https://badge.fury.io/py/padme.png
:target: http://badge.fury.io/py/padme

.. image:: https://travis-ci.org/zyga/padme.png?branch=master
:target: https://travis-ci.org/zyga/padme

.. image:: https://pypip.in/d/padme/badge.png
:target: https://pypi.python.org/pypi/padme

Features
========

* Free software: LGPLv3 license
* Support for Python 2.7 and Python 3.2+
* Documentation: https://padme.readthedocs.org.
* Create proxy classes for any object with :class:`padme.proxy`.
* Redirect particular methods in subclasses using :class:`padme.unproxied`.




History
=======

1.1.1 (2015-03-04)
------------------
* Add general support for **Python 2.7**.
* All numeric methods are now supported with some methods
exclusive to Python 2.x (``__div__()``, ``__coerce__()``,
``__oct__()``, ``__hex__()``).
* Add support for the new matrix multiplication operator ``@``.
* Make ``__nonzero__()`` and ``__unicode__()`` exlusive to Python 2.x.
* Make ``__bool__()`` and ``__bytes__()`` exclusive to Python 3.x.
* Make ``__length_hint()`` exclusive to Python 3.4.
* Add support for the ``__cmp__()`` method, exclusive to Python 2.x.
* Add support for accessing the proxied object with the new
:meth:`~padme.proxy.original()` function.
* Add support for accessing proxy state with the new
:meth:`~padme.proxy.state()` function.
* De-couple proxy classes from proxied objects, much more lightweight proxy
design is possible this way (less objects, lower cost to create each new proxy).

1.0 (2014-02-11)
----------------

* First release on PyPI.
* Add a short introduction.
* Enable travis-ci.org integration.
* Remove numbering of generated meta-classes

2015
----

* Released on PyPI as a part of plainbox as ``plainbox.impl.proxy``

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

padme-1.1.1.tar.gz (41.6 kB view hashes)

Uploaded Source

Built Distribution

padme-1.1.1-py2.py3-none-any.whl (20.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page