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 simple Python library I created based off of Thibauld Nion's yapsy. I liked how yapsy uses a config file in conjunction with a python module for locating and describing plugins. This plugin manager does not have the robustness and customizability that yapsy has but allows for much quicker implementation out of the box. It is meant to be a very simple ready to go hands off plugin manager.

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.1.0.tar.gz (6.9 kB view hashes)

Uploaded Source

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