Skip to main content

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)

Source distribution for yantra 0.7.1
File Size Uploaded
yantra-0.7.1.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yantra 0.7.1
File Interpreter ABI Platform
yantra-0.7.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5

2 release files

0.4

2 release files

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page