-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
FG Cloud Metrics, for example, can be modularized in flask_cm as one of the plugins. By putting a simple plugins mechanism, flask_cm will be extensible and independent from other developments.
Python Yapsy and imp can support dynamically importing modules.
Simple steps would be as follows:
- Create plugins directory
i.e. cloudmesh/plugins - Insert plugin scripts into the directory
e.g. ../plugins/metrics.py - Create dynamically loading function for plugins
i.e. cloudmesh/cm_plugins.py - Use the instances of all plugin modules in the directory
Once we have plugins mechanism, we can simply add scripts into the plugins directory to dynamically load the extension scripts to the main applications.
Metadata
Metadata
Assignees
Labels
No labels