zinspect
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.
Metadata
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 | Provenance | Actions |
|---|---|---|---|---|
| zinspect-0.2.0.zip | 7.7 kB | Without provenance | Details for zinspect-0.2.0.zip |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zinspect-0.2.0-py2.5.egg | Legacy Egg format | - | - | Details for zinspect-0.2.0-py2.5.egg |
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 |
Security for zinspect 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.