annex
Summary
Annex provides assistance with developing plugin-based tools.
With Annex you can load and reload plugins from various python modules without the requirement that they exist on the PYTHONPATH.
Example Usage
In your project you would define a base class from which all plugins for project would subclass.
base_plugin.py
class BaseTestPlugin(object):
def run(self, *args, **kwargs):
raise NotImplementedError()
example_plugin.py
from base_plugin import BaseTestPlugin
class PrinterPlugin(BaseTestPlugin):
def run(self, *args, **kwargs):
print args, kwargs
foo.py
from base_plugin import BaseTestPlugin
from annex import Annex
plugins = Annex(BaseTestPlugin, ["/path/to/plugins"])
for plugin in plugins:
plugin.run("foo", bar="baz")
Metadata
Release files for annex 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| annex-0.5.0.tar.gz | 4.3 kB | Without provenance | Details for annex-0.5.0.tar.gz |
Release files / annex-0.5.0.tar.gz
| Download URL | annex-0.5.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b89c89ecef0911dd1bc52ce582c2b7b26b8621f4db3cc58df39e652b9636e8b
|
|
BLAKE2b-256 checksum How to use checksums |
c4036c73f4e91312abbec5efab91ad91483fb23613d1c50d436cc2c320f7bf42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/2.7
|
Security for annex 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.