Skip to main content

A simple Python plugin framework.

Project description

LiveTribe’s simple Python plugin framework.

https://secure.travis-ci.org/maguro/livetribe-plugins.png?branch=master

See the LiveTribe site for more information. See github for the latest source.

About

The LiveTribe Plugins distribution contains a simple Python plugin framework. It defines no classes that need to be implemented nor imposes arbitrary lifecycle events or special plugin information files.

Inspired by Calvin Spealman’s straight plugin, https://github.com/ironfroggy/straight.plugin.

Issues / Questions / Feedback

Any issues with, questions about, or feedback for LiveTribe Plugins should be sent to the livetribe-user list on LiveTribe’s Mailing Lists. For confirmed issues or feature requests, open a case on jira. Please do not e-mail any of the LiveTribe developers directly with issues or questions - you’re more likely to get an answer on the list.

Installation

If you have distribute installed you should be able to do easy_install livetribe-plugins to install LiveTribe Plugins. Otherwise you can download the project source and do python setup.py install to install.

Dependencies

The LiveTribe Plugins distribution is supported and tested on Python 2.x (where x >= 6) and Python 3.x (where x >= 2).

Additional dependencies are:

  • (to generate documentation) sphinx

  • (to auto-discover tests) nose

Examples

Here’s a basic example (for more see the examples section of the docs):

from livetribe.plugins import collect_plugin_classes
from acme.framework import Factory

for plugin in collect_plugin_classes('acme.plugins', subclasses_of=Factory, recurse=True):
    instance = plugin()
    instance.work()

Documentation

Full Documentation: http://readthedocs.org/docs/livetribe-plugins.

You will need sphinx installed to generate the documentation. Documentation can be generated by running python setup.py doc. Generated documentation can be found in the doc/build/html/ directory.

Testing

The easiest way to run the tests is to install nose (easy_install nose) and run nosetests or python setup.py test in the root of the distribution. Tests are located in the tests/ directory.

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

livetribe-plugins-1.0a1.tar.gz (19.6 kB view details)

Uploaded Source

File details

Details for the file livetribe-plugins-1.0a1.tar.gz.

File metadata

File hashes

Hashes for livetribe-plugins-1.0a1.tar.gz
Algorithm Hash digest
SHA256 77cff2b0be22da1cc724de4c40be745492e5e65dcef234a705f6dff2da224ef4
MD5 e3d34e7287b63eb12d4550131ec8e307
BLAKE2b-256 72ae382859136f4c5c014d3bf88f2c862d468d8d90f9aa3023b88c95b389b383

See more details on using hashes here.

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