{ "info": { "author": "Shay Palachy", "author_email": "shaypal5@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "lazyimport\n##########\n|PyPI-Status| |PyPI-Versions| |Build-Status| |Codecov| |LICENCE|\n\n\n``lazyimport`` lets you import python modules lazily.\n\n.. code-block:: python\n\n from lazyimport import lazyimport\n lazyimport(globals(), \"\"\"\n from mypackage import submodule\n import another_package\n \"\"\"\n )\n\n.. contents::\n\n.. section-numbering::\n\n\nInstallation\n============\n\nInstall ``lazyimport`` with:\n\n.. code-block:: bash\n\n pip install lazyimport\n\n\nUse\n===\n\nThe ``lazyimport`` function taks two parameters:\n\n- ``scope`` - The scope into which the given imports are imported. A common use case is to provide this parameter with the global scope by assigning ``scope=globals()``.\n- ``text`` - The string giving the import code to perform lazily. For example, ``\"from pandas import DataFrame\"``.\n\n\nExample use:\n\n.. code-block:: python\n\n from lazyimport import lazyimport\n lazyimport(globals(), \"\"\"\n from mypackage import submodule\n import another_package\n \"\"\"\n )\n\n\nCredits\n=======\n\nWritten by John Arbash Meinel, Martin von Gagern, Martin Packman and others\nas part of the the GNU Bazaar revision control system.\n\nAs such, lazyimport is distributed under the GNU General Public License v3,\nlike GNU Bazzar itself.\n\nSlightly adapted to package form by `Shay Palachy `_.\n\n.. alternative:\n.. https://badge.fury.io/py/yellowbrick.svg\n\n.. |PyPI-Status| image:: https://img.shields.io/pypi/v/lazyimport.svg\n :target: https://pypi.org/project/lazyimport\n\n.. |PyPI-Versions| image:: https://img.shields.io/pypi/pyversions/lazyimport.svg\n :target: https://pypi.org/project/lazyimport\n\n.. |Build-Status| image:: https://travis-ci.org/shaypal5/lazyimport.svg?branch=master\n :target: https://travis-ci.org/shaypal5/lazyimport\n\n.. |LICENCE| image:: https://img.shields.io/badge/License-GNU3-yellow.svg\n :target: https://github.com/shaypal5/lazyimport/blob/master/LICENSE\n\n.. .. |LICENCE| image:: https://github.com/shaypal5/lazyimport/blob/master/mit_license_badge.svg\n :target: https://pypi.python.org/pypi/lazyimport\n\n.. https://img.shields.io/pypi/l/lazyimport.svg\n\n.. |Codecov| image:: https://codecov.io/github/shaypal5/lazyimport/coverage.svg?branch=master\n :target: https://codecov.io/github/shaypal5/lazyimport?branch=master\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/shaypal5/lazyimport", "keywords": "", "license": "GNU3", "maintainer": "", "maintainer_email": "", "name": "lazyimport", "package_url": "https://pypi.org/project/lazyimport/", "platform": "", "project_url": "https://pypi.org/project/lazyimport/", "project_urls": { "Homepage": "https://github.com/shaypal5/lazyimport" }, "release_url": "https://pypi.org/project/lazyimport/0.0.4/", "requires_dist": [ "pytest; extra == 'test'", "coverage; extra == 'test'", "pytest-cov; extra == 'test'", "strct; extra == 'test'", "comath; extra == 'test'", "collective.checkdocs; extra == 'test'", "pygments; extra == 'test'" ], "requires_python": "", "summary": "lazyimport lets you import python modules lazily.", "version": "0.0.4" }, "last_serial": 4077546, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f96f80f46dc48de08ff05f3188db01ef", "sha256": "5136412be0f0a4befaed170b94d6bc9bed6894ab622e6c8a5c5693e8566134a7" }, "downloads": -1, "filename": "lazyimport-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f96f80f46dc48de08ff05f3188db01ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24174, "upload_time": "2017-03-02T16:16:10", "url": "https://files.pythonhosted.org/packages/96/ac/c41ae036b2b9c388f318313ea8b0972057890b8681276ec7f1956298c7a9/lazyimport-0.0.1.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "72f2bdd40b396c7e277aac6c124f4bff", "sha256": "75bfbb939998a3e189c67a19255d9907858c4db4b60a539e96a680cca52fb303" }, "downloads": -1, "filename": "lazyimport-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "72f2bdd40b396c7e277aac6c124f4bff", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9261, "upload_time": "2018-07-18T11:31:53", "url": "https://files.pythonhosted.org/packages/42/6e/37d12066172ceb827d27b5e29d31c56ff3005ba63cf005ab9765eedfcffd/lazyimport-0.0.3-py3-none-any.whl" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8fea359bde2ac7a99ce3410a26caac79", "sha256": "076a7dbda122119a5ef23a2e32d08261b0c61c6e4ef74927061a19027467cdb1" }, "downloads": -1, "filename": "lazyimport-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "8fea359bde2ac7a99ce3410a26caac79", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9195, "upload_time": "2018-07-18T11:34:29", "url": "https://files.pythonhosted.org/packages/4c/b0/7c85e795766bbed23fbbb5e9bb2ed78b8ff0b47854f958f1728a1611bd92/lazyimport-0.0.4-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8fea359bde2ac7a99ce3410a26caac79", "sha256": "076a7dbda122119a5ef23a2e32d08261b0c61c6e4ef74927061a19027467cdb1" }, "downloads": -1, "filename": "lazyimport-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "8fea359bde2ac7a99ce3410a26caac79", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 9195, "upload_time": "2018-07-18T11:34:29", "url": "https://files.pythonhosted.org/packages/4c/b0/7c85e795766bbed23fbbb5e9bb2ed78b8ff0b47854f958f1728a1611bd92/lazyimport-0.0.4-py3-none-any.whl" } ] }