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.
Release files for zinspect 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zinspect-0.2.0.zip | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zinspect-0.2.0-py2.5.egg | Legacy Egg format | - | - | Details |
Total release size: 13.8 kB
Release files / zinspect-0.2.0.zip
| Download URL | zinspect-0.2.0.zip |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e393a283119f58f693d0291804de912db9c46a411fa643ca97ab6f5c9af16e4
|
|
BLAKE2b-256 checksum How to use checksums |
df154139fe27f7c8f258aa353cf81af180e5bb2354764d11c4aa7eaf61809856
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / zinspect-0.2.0-py2.5.egg
| Download URL | zinspect-0.2.0-py2.5.egg |
|---|---|
| Size | 6.2 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
28e55065f460f7f5d765f4724dced5846f66175017256e543feda9caa11b5ef3
|
|
BLAKE2b-256 checksum How to use checksums |
10f9ed8655e6e45d9db2d4ab3a8b4c2efcf527d10c1b05dc0efab1487a0921d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |