Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install zinspect

How to install zinspect

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install zinspect
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.0 Available View build log
Windows (64-bit)
0.2.0 Available View build log
Mac OS X (10.5+)
0.2.0 Available View build log
Linux (32-bit)
0.2.0 Available View build log
Linux (64-bit)
0.2.0 Available View build log
 
License
'PSF'
Imports
Lastest release
version 0.2.0 on Jan 5th, 2011

Inspects objects/classes to enforce that they respect the zope.interface they declare to implement/provide. It works with zope.interfaces.

Examples

the unit tests provided with the source package contain a lot of examples of how to use the package to validate objects and classes.

Discussion

I have written this package mainly out of a specific need for ensuring that plugins I load into my application would always implement the interfaces they declared to implement. This is a way to ensure that the application using the plugin won't encounter an exception trying to access an attribute that should be present but is not.

Status

The package is in its early infancy and will not detect an attribute that is created outside the __init__ method or not present directly on the class itself. This could be added in the future if there is enough demand.

Subscribe to package updates

Last updated Jan 5th, 2011

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.