{"id":18522372,"url":"https://github.com/sdelements/yantra","last_synced_at":"2025-04-09T10:33:38.733Z","repository":{"id":141148444,"uuid":"45203755","full_name":"sdelements/yantra","owner":"sdelements","description":"A simple plugins manager.","archived":false,"fork":false,"pushed_at":"2025-01-23T15:53:04.000Z","size":100,"stargazers_count":4,"open_issues_count":6,"forks_count":0,"subscribers_count":45,"default_branch":"master","last_synced_at":"2025-03-24T04:51:39.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdelements.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-29T18:49:42.000Z","updated_at":"2025-01-23T15:52:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"74252931-9971-47cd-b5de-6e9a16d8d27f","html_url":"https://github.com/sdelements/yantra","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fyantra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fyantra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fyantra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdelements%2Fyantra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdelements","download_url":"https://codeload.github.com/sdelements/yantra/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020593,"owners_count":21034459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T17:30:22.502Z","updated_at":"2025-04-09T10:33:33.724Z","avatar_url":"https://github.com/sdelements.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yantra\n\nyantra is a simple plugin manager/plugin discovery framework.\n\n\n## Usage\n\nLet's assume you have a class called BaseReportPlugin which all report plugins derive from.\n\n```python\nfrom yantra import PluginManager, PluginType\nfrom reports import BaseReportPlugin\n\n# Define the type\nreport_type = PluginType(name='report',\n                         base_class=BaseReportPlugin',\n                         path='/plugins/reports/')\n\n# Instantiate the manager\nplugin_manager = PluginManager([report_type])\n\n# Fetch plugins\nplugin_manager.get_plugins(report_type)\n```\n\nYou can register multiple plugin types. An alternate way to register plugin types is as follows:\n\n```python\nplugin_manager = PluginManager()\nplugin_manager.register_plugin_type(foo_type)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelements%2Fyantra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdelements%2Fyantra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdelements%2Fyantra/lists"}