Localstack-plugin-loader

Latest version: v1.1.1

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.0

This release adds a major functionality: function plugins

Functions as Plugins

with the `plugin` decorator, you can expose functions as plugins. They will be wrapped by the framework
into `FunctionPlugin` instances, which satisfy both the contract of a Plugin, and that of the function.

python
from plugin import plugin


plugin(namespace="localstack.configurators")
def configure_logging(runtime):
logging.basicConfig(level=runtime.config.loglevel)


plugin(namespace="localstack.configurators")
def configure_somethingelse(runtime):
do other stuff with the runtime object
pass


With a PluginManager via `load_all`, you receive the `FunctionPlugin` instances, that you can call like the functions

python

runtime = LocalstackRuntime()

for configurator in PluginManager("localstack.configurators").load_all():
configurator(runtime)

1.0.0

Initial release of [LocalStack's](https://github.com/localstack/localstack) dynamic code loading framework.

The localstack-plugin-loader builds a higher-level plugin mechanism around Python's entry point mechanism. It provides tools to load plugins from entry points at run time, and to discover entry points from plugins at build time (so you don't have to declare entry points statically in your setup.py).

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.