skillfed

pluginlib

A framework for creating and importing plugins

pluginlib v0.11.0 494.4K downloads/30d#6,350 on PyPI79
Copyleft license MPLv2.0 Active released

What it is and what it does

Pluginlib is a framework for building extensible Python applications through a plugin architecture. It handles the discovery, validation, and loading of plugins from multiple sources—standard library modules, entry points, explicit module lists, or filesystem paths—while enforcing that plugins conform to parent class contracts via abstract methods. Plugins can be versioned, conditionally loaded based on runtime state, blacklisted by type or name, and organized into separate groups so different parts of an application can use independent plugin sets without collision.

The framework is designed to reduce boilerplate: you decorate a parent class with @pluginlib.Parent, define required methods as abstract, then subclass that parent to create plugins. Once loaded through PluginLoader, plugins are accessible via nested dictionary notation or dot notation, making it straightforward to instantiate and call plugin methods. The package supports Python 3.6 through 3.15 and has no known security vulnerabilities.

Use it for:

  • Build an application where users can drop custom parser or processor plugins into a directory and have them automatically discovered and loaded at startup.
  • Create a multi-tenant or multi-project framework where different plugin sets must coexist without naming conflicts using plugin groups.
  • Implement conditional plugin loading based on OS, installed dependencies, or runtime environment to enable feature flags or platform-specific behavior.
  • Manage multiple versions of the same plugin and automatically use the newest compatible version without manual version selection logic.
  • Define a plugin interface with abstract methods and validate that all loaded plugins implement the required contract before they are used.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Pluginlib provides a framework for defining, discovering, and loading plugins in Python applications, with support for multiple plugin versions, conditional loading, and plugin groups to prevent conflicts.

Yes. Pluginlib is actively maintained, has no security vulnerabilities, low install friction, and solves a real architectural problem for extensible applications. The copyleft license (MPLv2.0) only affects modifications to pluginlib itself, not applications that use it. Install it if you need a plugin system; skip it if your application has no extensibility requirements.

Install

pluginlib on PyPI

pip

pip install pluginlib

uv

uv add pluginlib

poetry

poetry add pluginlib

Installing pluginlib

Before you install

Low install friction with only two lightweight runtime dependencies (packaging and importlib-metadata). The package is actively maintained with a recent release and no known security vulnerabilities.

License in practice

Licensed under MPLv2.0 (copyleft), which requires that modifications to pluginlib itself be shared under the same license, though applications using it as a plugin framework are not subject to this requirement.

Quickstart

pip install pluginlib

import pluginlib

@pluginlib.Parent('parser')
class Parser:
    @pluginlib.abstractmethod
    def parse(self, string):
        pass

loader = pluginlib.PluginLoader(modules=['my_plugins'])
plugins = loader.plugins

Requires Python 3.6 or later; plugins must be defined as subclasses of parent classes decorated with @pluginlib.Parent.

Verify before relying

  • Whether the package handles circular dependencies or dependency ordering between plugins.
  • Performance characteristics when loading large numbers of plugins or from many filesystem paths.
  • How plugin validation errors are reported and whether they halt the entire load or skip individual plugins.

Package facts

License MPLv2.0 (copyleft)
Python support supports the current Python release (>=3.6)
Install friction low — pure-Python wheel
Runtime dependencies 2 — packaging, importlib-metadata
Maintenance actively maintained — 110 days since the last release
Last repo commit
First released
Downloads 494,375/month — #6,350 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pluginlib-0.11.0-py2.py3-none-any.whl

Keywords: plugin, plugins, pluginlib

Development Status :: 5 - Production/StableEnvironment :: PluginsIntended Audience :: DevelopersLicense :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)Operating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: POSIXProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules

Tags

python plugin frameworkplugin loaderdynamic plugin loadingplugin discovery systemplugin managementextensible application architectureplugin validation
plugin-architectureextensibilitydiscovery-loading

More Python Modules packages