yantra
yantra is a simple plugin manager/plugin discovery framework.
Usage
Let's assume you have a class called BaseReportPlugin which all report plugins derive from.
from yantra import PluginManager, PluginType
from reports import BaseReportPlugin
# Define the type
report_type = PluginType(name='report',
base_class=BaseReportPlugin',
path='/plugins/reports/')
# Instantiate the manager
plugin_manager = PluginManager([report_type])
# Fetch plugins
plugin_manager.get_plugins(report_type)
You can register multiple plugin types. An alternate way to register plugin types is as follows:
plugin_manager = PluginManager()
plugin_manager.register_plugin_type(foo_type)
Metadata
Release files for yantra 0.7.1
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 |
|---|---|---|---|---|
| yantra-0.7.1.tar.gz | 3.4 kB | Without provenance | Details for yantra-0.7.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yantra-0.7.1-py3-none-any.whl | Python 3 | none | any | Details for yantra-0.7.1-py3-none-any.whl |
Total release size: 7.2 kB
Release files / yantra-0.7.1.tar.gz
| Download URL | yantra-0.7.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b80b5b9cb56202c8d74ec3b264c8aa66641bfceb208e5cbf33219d34115a7925
|
|
BLAKE2b-256 checksum How to use checksums |
8ca7b2b2593147de93cc74ce8867f8eadd0d38f10ae77ac335b50a437e83dcb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / yantra-0.7.1-py3-none-any.whl
| Download URL | yantra-0.7.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2774e3b409b38708f8d4058a532763c53991a288ad6e195f94fe35915da0f6f9
|
|
BLAKE2b-256 checksum How to use checksums |
e97d249d9ee4d747dbb2ad68bb7e20f9e23332f27a08749e0e8e45cb88886e1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for yantra 0.7.1
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.