pluginbase


Namepluginbase JSON
Version 1.0.1 PyPI version JSON
download
home_pagehttp://github.com/mitsuhiko/pluginbase
SummaryPluginBase is a module for Python that enables the development of flexible plugin systems in Python.
upload_time2021-05-16 16:25:40
maintainerSpencer McIntyre
docs_urlNone
authorArmin Ronacher
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            PluginBase
==========

PluginBase is a module for Python that enables the development of flexible plugin systems in Python.

Step 1:

.. code-block:: python

   from pluginbase import PluginBase
   plugin_base = PluginBase(package='yourapplication.plugins')

Step 2:

.. code-block:: python

   plugin_source = plugin_base.make_plugin_source(
       searchpath=['./path/to/plugins', './path/to/more/plugins'])

Step 3:

.. code-block:: python

   with plugin_source:
       from yourapplication.plugins import my_plugin
   my_plugin.do_something_cool()

Or alternatively:

.. code-block:: python

   my_plugin = plugin_source.load_plugin('my_plugin')
   my_plugin.do_something_cool()
            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/mitsuhiko/pluginbase",
    "name": "pluginbase",
    "maintainer": "Spencer McIntyre",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "zeroSteiner@gmail.com",
    "keywords": "",
    "author": "Armin Ronacher",
    "author_email": "armin.ronacher@active-4.com",
    "download_url": "https://files.pythonhosted.org/packages/f3/07/753451e80d2b0bf3bceec1162e8d23638ac3cb18d1c38ad340c586e90b42/pluginbase-1.0.1.tar.gz",
    "platform": "",
    "description": "PluginBase\n==========\n\nPluginBase is a module for Python that enables the development of flexible plugin systems in Python.\n\nStep 1:\n\n.. code-block:: python\n\n   from pluginbase import PluginBase\n   plugin_base = PluginBase(package='yourapplication.plugins')\n\nStep 2:\n\n.. code-block:: python\n\n   plugin_source = plugin_base.make_plugin_source(\n       searchpath=['./path/to/plugins', './path/to/more/plugins'])\n\nStep 3:\n\n.. code-block:: python\n\n   with plugin_source:\n       from yourapplication.plugins import my_plugin\n   my_plugin.do_something_cool()\n\nOr alternatively:\n\n.. code-block:: python\n\n   my_plugin = plugin_source.load_plugin('my_plugin')\n   my_plugin.do_something_cool()",
    "bugtrack_url": null,
    "license": "",
    "summary": "PluginBase is a module for Python that enables the development of flexible plugin systems in Python.",
    "version": "1.0.1",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "8f1e3ba4d58187cece5b5a40ae1b0154",
                "sha256": "ff6c33a98fce232e9c73841d787a643de574937069f0d18147028d70d7dee287"
            },
            "downloads": -1,
            "filename": "pluginbase-1.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8f1e3ba4d58187cece5b5a40ae1b0154",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 43588,
            "upload_time": "2021-05-16T16:25:40",
            "upload_time_iso_8601": "2021-05-16T16:25:40.715857Z",
            "url": "https://files.pythonhosted.org/packages/f3/07/753451e80d2b0bf3bceec1162e8d23638ac3cb18d1c38ad340c586e90b42/pluginbase-1.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-16 16:25:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "mitsuhiko",
    "github_project": "pluginbase",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "pluginbase"
}
        
Elapsed time: 0.02478s