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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file SSPM-1.2.1.tar.gz.

File metadata

  • Download URL: SSPM-1.2.1.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for SSPM-1.2.1.tar.gz
Algorithm Hash digest
SHA256 275625e579672d43f415dda8b7156629d163981a26cd3c3f5f11e89b4ef6d139
MD5 5ce42ba04914496592b008a3a9697489
BLAKE2b-256 711d2eb2632df6af0733409732d0c339bb3504071f602f66a6df82d28722096a

See more details on using hashes here.

File details

Details for the file SSPM-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: SSPM-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.4

File hashes

Hashes for SSPM-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0910ef765011b2e30e27bf1842380e5170f1a266e2d8c1545bcb7b19402384a4
MD5 c788f3b72dc32f53559334f7501f45d2
BLAKE2b-256 4be22f6507fbc6db3ca61cecfb2f45f3d5280a3a2bdf46c881099145b809a151

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