{ "info": { "author": "Gary Kramlich", "author_email": "grim@reaperworld.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable" ], "description": "pyscovery is a Python plugin loader that will search for classes based from a\r\nlist of modules and optionally use the file system to recurse into packages.\r\n\r\nThis is different from pkg_resources and friends since it doesn't require you\r\nto add every module that might have packages, it will discover it for you.\r\n\r\nI wrote this because none of the existing solutions fit my need of being able\r\nto logically group similar plugins in the filesystem.\r\n\r\nSay you have the following structure in your project:\r\n\r\n module/\r\n __init__.py\r\n plugin.py\r\n plugins/\r\n __init__.py\r\n plugin1/\r\n __init__.py\r\n plugin2/\r\n __init__.py\r\n plugin3.py\r\n\r\nWith pyscovery, the following code will find plugins 1, 2, and 3 for you:\r\n\r\n import pyscovery\r\n \r\n from plugin import Plugin\r\n \r\n pyscovery.add_module('plugins')\r\n for plugin in pyscovery.find(Plugin, True, False):\r\n print plugin\r\n\r\nRecursion in the filesystem is off by default, since that's the way people are\r\nused to. If there is enough demand, I will make it the default.\r\n\r\nIf you want to create instances of all the classes found instead of just\r\ngetting the class it self, you can use the following:\r\n\r\n for plugin in pyscovery.find(Plugin, True, True):\r\n print plugin", "description_content_type": null, "docs_url": "https://pythonhosted.org/pyscovery/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.bitbucket.org/rw_grim/pyscovery", "keywords": "", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "pyscovery", "package_url": "https://pypi.org/project/pyscovery/", "platform": "Any", "project_url": "https://pypi.org/project/pyscovery/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.bitbucket.org/rw_grim/pyscovery" }, "release_url": "https://pypi.org/project/pyscovery/1.2/", "requires_dist": null, "requires_python": null, "summary": "A Python plugin loader that will search for classes based from a list ofmodules and optionally use the file system to recurse into packages.", "version": "1.2" }, "last_serial": 797711, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "25b2eda6d27b9dadfdf7d1ebb3fe675d", "sha256": "33a0f1db26c10971adb8570a72dbf6dcf9b236af54cfab3cf03a488653649f2d" }, "downloads": -1, "filename": "pyscovery-1.0.tar.gz", "has_sig": false, "md5_digest": "25b2eda6d27b9dadfdf7d1ebb3fe675d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2613, "upload_time": "2013-03-29T07:56:18", "url": "https://files.pythonhosted.org/packages/18/82/c0b2076783a3d38ee390e52dc8f43a999e8cfed9d9924be65a75d5282c84/pyscovery-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "0f4076c06718d71bf97ddc965618eca9", "sha256": "9d0c8b0ea4bc775cb8f3488f872474172d9859e914fa0d2c9499865562029eea" }, "downloads": -1, "filename": "pyscovery-1.1.tar.gz", "has_sig": false, "md5_digest": "0f4076c06718d71bf97ddc965618eca9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2946, "upload_time": "2013-04-14T08:03:30", "url": "https://files.pythonhosted.org/packages/1d/cf/898dae3c721635b65dd2f46c422669c4c3bb9469acde75228e22c65f155f/pyscovery-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "090c30726367ea99838d9eca7fcb6dde", "sha256": "14362aa054b51e6af87436418f13dd5acb4e077b89e1b11630c984682cfcd312" }, "downloads": -1, "filename": "pyscovery-1.2.tar.gz", "has_sig": false, "md5_digest": "090c30726367ea99838d9eca7fcb6dde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3454, "upload_time": "2013-05-26T11:35:29", "url": "https://files.pythonhosted.org/packages/99/e4/188c9394482466d7efb4de71897b6f00a3d52813e3be94ff4b8ddddcb8bc/pyscovery-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "090c30726367ea99838d9eca7fcb6dde", "sha256": "14362aa054b51e6af87436418f13dd5acb4e077b89e1b11630c984682cfcd312" }, "downloads": -1, "filename": "pyscovery-1.2.tar.gz", "has_sig": false, "md5_digest": "090c30726367ea99838d9eca7fcb6dde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3454, "upload_time": "2013-05-26T11:35:29", "url": "https://files.pythonhosted.org/packages/99/e4/188c9394482466d7efb4de71897b6f00a3d52813e3be94ff4b8ddddcb8bc/pyscovery-1.2.tar.gz" } ] }