# Path: dgitcore/vendor/pluginbase/pluginbase.py
# class PluginBase(object):
#     """The plugin base acts as a control object around a dummy Python
#     package that acts as a container for plugins.  Usually each
#     application creates exactly one base object for all plugins.
# 
#     :param package: the name of the package that acts as the plugin base.
#                     Usually this module does not exist.  Unless you know
#                     what you are doing you should not create this module
#                     on the file system.
#     :param searchpath: optionally a shared search path for modules that
#                        will be used by all plugin sources registered.
#     """
# 
#     def __init__(self, package, searchpath=None):
#         #: the name of the dummy package.
#         self.package = package
#         if searchpath is None:
#             searchpath = []
#         #: the default search path shared by all plugins as list.
#         self.searchpath = searchpath
#         _setup_base_package(package)
# 
#     def make_plugin_source(self, *args, **kwargs):
#         """Creats a plugin source for this plugin base and returns it.
#         All parameters are forwarded to :class:`PluginSource`.
#         """
#         return PluginSource(self, *args, **kwargs)


import os, sys, pkg_resources
import json
import html5lib
from collections import namedtuple
from functools import partial
from ..vendor.pluginbase.pluginbase import PluginBase
#!/usr/bin/env python


Key = namedtuple("Key", ["name","version"])

__all__ = ['plugins_get_mgr', 'plugins_load',
           'plugins_show', 'plugins_close']


# Path: dgitcore/vendor/pluginbase/pluginbase.py
# class PluginBase(object):
#     """The plugin base acts as a control object around a dummy Python
#     package that acts as a container for plugins.  Usually each
#     application creates exactly one base object for all plugins.
# 
#     :param package: the name of the package that acts as the plugin base.
#                     Usually this module does not exist.  Unless you know
#                     what you are doing you should not create this module
#                     on the file system.
#     :param searchpath: optionally a shared search path for modules that
#                        will be used by all plugin sources registered.
#     """
# 
#     def __init__(self, package, searchpath=None):
#         #: the name of the dummy package.
#         self.package = package
#         if searchpath is None:
#             searchpath = []
#         #: the default search path shared by all plugins as list.
#         self.searchpath = searchpath
#         _setup_base_package(package)
# 
#     def make_plugin_source(self, *args, **kwargs):
#         """Creats a plugin source for this plugin base and returns it.
#         All parameters are forwarded to :class:`PluginSource`.
#         """
#         return PluginSource(self, *args, **kwargs)


# Path: dgitcore/plugins/common.py
import os, sys, pkg_resources
import json
import html5lib
from collections import namedtuple
from functools import partial
from ..vendor.pluginbase.pluginbase import PluginBase

#!/usr/bin/env python


Key = namedtuple("Key", ["name","version"])

__all__ = ['plugins_get_mgr', 'plugins_load',
           'plugins_show', 'plugins_close']


class PluginManager(object):