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
-
Initialize the plugin manager
plugin_manager = PluginManager(plugin_folder=\<INSERT PLUGINS DIR PATH HERE\>)
-
Import the plugins in the plugins directory
plugin_manager.import_plugins()
-
Get the imported plugin
plugin = sspm.get_active_plugin("Plugin name")
or
plugins = sspm.active_plugins
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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 275625e579672d43f415dda8b7156629d163981a26cd3c3f5f11e89b4ef6d139 |
|
MD5 | 5ce42ba04914496592b008a3a9697489 |
|
BLAKE2b-256 | 711d2eb2632df6af0733409732d0c339bb3504071f602f66a6df82d28722096a |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0910ef765011b2e30e27bf1842380e5170f1a266e2d8c1545bcb7b19402384a4 |
|
MD5 | c788f3b72dc32f53559334f7501f45d2 |
|
BLAKE2b-256 | 4be22f6507fbc6db3ca61cecfb2f45f3d5280a3a2bdf46c881099145b809a151 |