Skip to main content

SSPM simple plugin manger based on YAPSY

Project description

Super Simple Plugin Manager - SSPM

About SSPM

Super Simple Plugin Manager - SSPM is a library I created based off of Thibauld Nion's YAPSY. I liked how configurable YAPSY is and the inclusion of a configuration file to allow the plugin creator to include details about their plugin. Unfortunately, I found that YAPSY had a lot of functionality that I didn't need, it is out of date, and contains a lot of deprecated code. To address these issues I created SSPM. SSPM does not have the customization that yapsy has. However, it allows for much quicker implementation that I believe most people will find useful. It is meant to be a very simple hands-off plugin manager.

Installation

The easiest way to install is to use pip:

pip install SSPM

or if you have cloned the repo:

cd <path to repo>
pip install .

or

cd <path to repo>
python setup.py install

Basic Usage

  1. Initialize the plugin manager

    plugin_manager = PluginManager(plugin_folder=\<INSERT PLUGINS DIR PATH HERE\>)
    
  2. Import the plugins in the plugins directory

    plugin_manager.import_plugins()
    
  3. Get the imported plugin

    plugin = sspm.get_active_plugin("Plugin name")
    

    or

    plugins = sspm.active_plugins
    

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

SSPM-1.2.1.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

SSPM-1.2.1-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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