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 = plugin_manager.get_active_plugin("Plugin name")
    

    or

    plugins = plugin_manager.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.0.0.tar.gz (6.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for SSPM-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bbf85137090ae0eb310904f4af0ace68f5ea35f8804fb052783bab7d0137fcc3
MD5 01b4922dc9caa399c2711fe6e218f6dc
BLAKE2b-256 a8f956a4a29fd81f977e160ecf8b5162c7edeb564bc7a9819ded0cc29e462d05

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