{ "info": { "author": "Matthew Seal", "author_email": "mseal@opengov.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2 :: Only", "Topic :: Utilities" ], "description": "allset\r\n======\r\n\r\nA small python utility for auto-completing ``__all__`` and binding\r\nsub-modules in ``__init__.py`` files.\r\n\r\nHow to Use\r\n----------\r\n\r\nAdd these lines to the top of your ``__init__.py``.\r\n\r\n::\r\n\r\n import allset\r\n allset.set_all_submodules(globals())\r\n allset.bind_all_submodules(globals())\r\n del allset\r\n\r\nNow you can reference any sub-module with ``import mysubmodule`` or\r\n``from mysubmodule import SubModClassDef``. Additionally, the\r\n``from mymodule import *`` will work as though you specified all\r\nsub-modules in ``__all__`` manually.\r\n\r\nWhat's it do?\r\n-------------\r\n\r\n- ``set_all_submodules`` sets up you ``__all__`` variable by\r\n auto-detecting the files and sub-modules in the current directory.\r\n- ``bind_all_submodules`` takes the submodules found in\r\n ``set_all_submodules`` and applies them to the current namespace.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/OpenGov/allset/tarball/v1.0.1", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OpenGov/allset", "keywords": "importing", "license": "New BSD", "maintainer": null, "maintainer_email": null, "name": "allset", "package_url": "https://pypi.org/project/allset/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/allset/", "project_urls": { "Download": "https://github.com/OpenGov/allset/tarball/v1.0.1", "Homepage": "https://github.com/OpenGov/allset" }, "release_url": "https://pypi.org/project/allset/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Generates dynamic bindings for module imports", "version": "1.0.1" }, "last_serial": 1048263, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e44c70240926614826e7a80b1ae182df", "sha256": "92ba18f6e640e7195a1e2dcaf1376c53a52b83f8735deb5ec090ec66cb74c559" }, "downloads": -1, "filename": "allset-1.0.0.zip", "has_sig": false, "md5_digest": "e44c70240926614826e7a80b1ae182df", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5526, "upload_time": "2014-03-20T19:06:04", "url": "https://files.pythonhosted.org/packages/91/2e/189ec4c1be342c51b9e1d6f082e0bd86a06e40d498d5e569f7324f85ff4e/allset-1.0.0.zip" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b6f929d51fb4755d6f65930b4732ea1e", "sha256": "fe2d72f4e8ea3c151c399e4953a70acacdfc6c5f502aa756b555196420c0e746" }, "downloads": -1, "filename": "allset-1.0.1.zip", "has_sig": false, "md5_digest": "b6f929d51fb4755d6f65930b4732ea1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5571, "upload_time": "2014-04-01T21:57:42", "url": "https://files.pythonhosted.org/packages/dc/cf/3236a0dd131e4615e9ef9ff30c2a75a37ae2bc15dfab3562bfe20b1e1311/allset-1.0.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b6f929d51fb4755d6f65930b4732ea1e", "sha256": "fe2d72f4e8ea3c151c399e4953a70acacdfc6c5f502aa756b555196420c0e746" }, "downloads": -1, "filename": "allset-1.0.1.zip", "has_sig": false, "md5_digest": "b6f929d51fb4755d6f65930b4732ea1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5571, "upload_time": "2014-04-01T21:57:42", "url": "https://files.pythonhosted.org/packages/dc/cf/3236a0dd131e4615e9ef9ff30c2a75a37ae2bc15dfab3562bfe20b1e1311/allset-1.0.1.zip" } ] }