Skip to content

greghaynes/SSPPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SSPPS

A super simple plugin system for python

Installing

pip install sspps

Using

Load plugins from directory 'plugins':

import sspps

pl = sspps.PluginLoader('plugins')
pl.load_all() 

Create a plugin by putting a module in plugins directory:

import sspps

class MyPlugin(sspps.Plugin):
    enabled = True
    def __init__(self):
        print 'init!'
    def activate(self):
        print 'Activated!' 

Features

The plugin loader will only instantiate subclasses of ssps.Plugin so feel free to make your own classes in plugin files.

Plugin modules can be either python files or module directories.

About

Super Simple Python Plugin System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages