A simple Python plugin framework.
Project description
LiveTribe’s simple Python plugin framework.
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:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file livetribe-plugins-1.0a1.tar.gz
.
File metadata
- Download URL: livetribe-plugins-1.0a1.tar.gz
- Upload date:
- Size: 19.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77cff2b0be22da1cc724de4c40be745492e5e65dcef234a705f6dff2da224ef4 |
|
MD5 | e3d34e7287b63eb12d4550131ec8e307 |
|
BLAKE2b-256 | 72ae382859136f4c5c014d3bf88f2c862d468d8d90f9aa3023b88c95b389b383 |