Skip to main content

Introspection helpers for Zope and Python objects.

Project description

zope.introspector

What is zope.introspector?

zope.introspector helps developers to get information about objects in their Zope/Python runtime environment.

It provides an easy to use API that enables developers to create ‘object descriptors’ for any object and is usable in almost every Zope environment, namely Zope 2, Zope 3 and Plone. Although zope.introspector is mainly tested with Python 2.4, also Python 2.5 installs should work.

zope.introspector is extensible. That means, that you can write your own descriptors for certain types of objects or aspects thereof. Please see the detailed documentation in ‘src/zope/introspector’ to learn more about that.

The package does not provide viewing components. Instead you can use packages, that are built on top of zope.introspector. These provide viewing components, that apply to more specific frameworks like Plone or Grok.

Installing zope.introspector

zope.introspector is provided as an Python egg on cheeseshop and set up via zc.buildout

You may have setuptools already installed for your system Python. In that case, you may need to upgrade it first because buildout requires a very recent version:

$ sudo easy_install -U setuptools

If this command fails because easy_install is not available, there is a good chance you do not have setuptools available for your system Python. If so, there is no problem because setuptools will be installed locally by buildout.

Because zope.introspector is a developer tool, you normally use it by including the package the setup.py file of your own package. There will most probably a section called install_requires where you add ‘zope.introspector’ like this:

...
install_requires=['setuptools',
                  # Add extra requirements here
                  'zope.introspector',
                  ...
                  ],

In zc.buildout based package setups you can ‘activate’ usage of zope.introspector afterwards simply by (re)running bin/buildout.

CHANGES

0.1 (unreleased)

Feature changes

  • Initial Release

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

zope.introspector-0.1.tar.gz (13.1 kB view details)

Uploaded Source

File details

Details for the file zope.introspector-0.1.tar.gz.

File metadata

File hashes

Hashes for zope.introspector-0.1.tar.gz
Algorithm Hash digest
SHA256 a98292a431ab72467a67f4679a1080bc190a7e6d5877adbc98e4ba683b4cdc51
MD5 16d1783429a03a544fb7c3edea6f00ae
BLAKE2b-256 87415f1093d2f7f72f864467acc3a5057f54f18e5b7cc7f561f6f8bdedbf9518

See more details on using hashes here.

Supported by

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