{ "info": { "author": "Bas Westerbaan", "author_email": "bas@westerbaan.name", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries" ], "description": "demandimport\n************\n\nDelays loading of modules until they are actually used. Perfect for Python\napps that need to be snappy like command-line utils. Source-code derived\nfrom mercurial.\n\nTo enable, write\n\n.. code:: python\n\n import demandimport; demandimport.enable()\n\nImports of the following form will be delayed\n\n.. code:: python\n\n import a, b.c\n import a.b as c\n from a import b, c # a will be loaded immediately, though\n\nThese imports with not be delayed\n\n.. code:: python\n\n from a import *\n b = __import__(a)\n\nDelayed loading will confuse some third-party modules. In that case you\ncan disable the delay for just that module. For example\n\n.. code:: python\n\n demandimport.ignore('Crypto.PublicKey._fastmath')\n\nThere are also versions that can be used with ``with``\n\n.. code:: python\n\n with demandimport.enabled():\n # do something\n with demandimport.disabled():\n import troublesome.module\n with demandimport.ignored('test'):\n import other.troublemaker\n\nInstallation\n============\n\nTo install ``demandimport``, simply run::\n\n pip install demandimport\n\nAttribution\n===========\n\nMatt Mackall is the original author of the module in\nMercurial on which this module is based. Bas Westerbaan \nmaintains it now.\n\npy-demandimport Changelog\n*************************\n\n0.3.4 (2017-06-08)\n==================\n\n- Python 3.6\n- Add sip to the default ignore list. #6\n\n\n0.3.3 (2016-10-20)\n==================\n\n- Add ``is_loaded`` and ``is_proxy``.\n Thanks-to: github.com/poke1024\n\n\n0.3.2 (2015-12-22)\n==================\n\n- Fixed issue #2: ``import a.b.c`` will incorrectly try to import ``b.c``\n\n\n0.3.1 (2015-12-21)\n==================\n\n- Relicense GPL version 2 or later (GPLv2+)\n\n\n0.3.0 (2015-12-21)\n==================\n\n- Do not delay ImportError in a special case.\n- Add optional logging (for debugging)\n- Fixed issue #1: ``import a.b`` in a module ``a.c`` was incorrectly executed\n as a relative ``import c``.\n- Improve thread safety\n\n\n0.2.2 (2015-12-05)\n==================\n\n- Moved to zest.releaser\n- Add some basic unittests\n- Python 3 support", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/bwesterb/py-demandimport/", "keywords": "", "license": "GPLv2+", "maintainer": "", "maintainer_email": "", "name": "demandimport", "package_url": "https://pypi.org/project/demandimport/", "platform": "", "project_url": "https://pypi.org/project/demandimport/", "project_urls": { "Homepage": "http://github.com/bwesterb/py-demandimport/" }, "release_url": "https://pypi.org/project/demandimport/0.3.4/", "requires_dist": null, "requires_python": "", "summary": "On-demand imports, taken from mercurial", "version": "0.3.4" }, "last_serial": 2934639, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "456924a0edb5272b6ac8bdf274bd69b6", "sha256": "9d4fe3d1d48d8a4a2fd7688a0ba8deecf8852f29d1403a19dd9b0c459f0e58b8" }, "downloads": -1, "filename": "demandimport-0.1.tar.gz", "has_sig": false, "md5_digest": "456924a0edb5272b6ac8bdf274bd69b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3664, "upload_time": "2013-04-28T14:39:12", "url": "https://files.pythonhosted.org/packages/59/71/694ec061d77f3ef2a74439113f7c2006a0d0398d0e773d7fbc438aabcb82/demandimport-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "a8dbb715e5392674e63c0c4c93c3bedf", "sha256": "40cf565220950e866f51237c14cdbb6d610e24f63683e3e865723e4f16cbabfa" }, "downloads": -1, "filename": "demandimport-0.2.tar.gz", "has_sig": false, "md5_digest": "a8dbb715e5392674e63c0c4c93c3bedf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3921, "upload_time": "2013-04-30T16:27:04", "url": "https://files.pythonhosted.org/packages/f8/b7/ed880ef2bea3f55416ab4e750b5a0b8ff9b600eb186686c5d9be00c560cb/demandimport-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "ea25e59698cb6914bc4e78022acddf74", "sha256": "57508cd7a940e4c30913bb5e3d3aeb3d09b22b9abc8f4c84e9ca3d0aaf089fcf" }, "downloads": -1, "filename": "demandimport-0.2.1.tar.gz", "has_sig": false, "md5_digest": "ea25e59698cb6914bc4e78022acddf74", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4009, "upload_time": "2013-05-07T15:20:56", "url": "https://files.pythonhosted.org/packages/92/37/17b68bc62ce3ca1794f3422ad0d730dcae6b8c553ed0c40212fbfb31c8cb/demandimport-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "e238db10738e255589ac7ff5ccf7120d", "sha256": "ace5153646994b119857cdc0be188d27268b8f9b4d64eb9cc26c1a7e012d5fe2" }, "downloads": -1, "filename": "demandimport-0.2.2.tar.gz", "has_sig": false, "md5_digest": "e238db10738e255589ac7ff5ccf7120d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11434, "upload_time": "2015-12-05T19:05:32", "url": "https://files.pythonhosted.org/packages/14/2c/cb4cb3c2c63b4cac54a938f316c59f08b0564de721e8cf4cfdba2ea40bd6/demandimport-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "b8ea45b5a7271a4046d4e9bfc0507b92", "sha256": "194997ed3f9332ae6aee85b0e373dc4ec967bc1a3c1a5503a3f3f827bdecfafc" }, "downloads": -1, "filename": "demandimport-0.3.0.tar.gz", "has_sig": false, "md5_digest": "b8ea45b5a7271a4046d4e9bfc0507b92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12571, "upload_time": "2015-12-21T13:49:21", "url": "https://files.pythonhosted.org/packages/92/d0/e254347cf9cb58e77158e7d29fce57ec57f8648d297c44f4e9f4ebb5855e/demandimport-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "c9213811e0ca8688fce48d579f412e9e", "sha256": "e8531ada2886fae7ce67d1cc090dcfdf20678e51e6065a3f2e8fa42f0774816b" }, "downloads": -1, "filename": "demandimport-0.3.1.tar.gz", "has_sig": false, "md5_digest": "c9213811e0ca8688fce48d579f412e9e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12616, "upload_time": "2015-12-21T15:22:43", "url": "https://files.pythonhosted.org/packages/68/4f/d4f326c5eebd429f691c1b75aa77010b0d34f2ac80c0ab3b59bd3427e4a1/demandimport-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "80c974f9b1c0a59373213c42619248ca", "sha256": "b101be568b3a1b8c5823ef14cfaf9248852568e839d3989ec5c0e3e195f4c8c4" }, "downloads": -1, "filename": "demandimport-0.3.2.tar.gz", "has_sig": false, "md5_digest": "80c974f9b1c0a59373213c42619248ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12689, "upload_time": "2015-12-22T15:58:19", "url": "https://files.pythonhosted.org/packages/69/41/90df3d23d7e45b14b42ef03f91c5bf7430307393b21204d6f30383803c9a/demandimport-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "d06753b36812da28dc1b09723fdb436a", "sha256": "77269f4f71cbd8b79bca48a5a058755702fc1e47a081a4b60ff17841d7ae449e" }, "downloads": -1, "filename": "demandimport-0.3.3.tar.gz", "has_sig": false, "md5_digest": "d06753b36812da28dc1b09723fdb436a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12839, "upload_time": "2016-10-20T20:17:53", "url": "https://files.pythonhosted.org/packages/4f/ca/68e12cfbff90f0fcaefd41dc4c8db237f915ad48954c68ff91eedb57b90a/demandimport-0.3.3.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "d1c0432659eb7333f3b6eee9aa04e6e8", "sha256": "3cb9f51a5e85aa7dd77acb4dcc2b3be8ead1472e90e64ea991875a06611dff8d" }, "downloads": -1, "filename": "demandimport-0.3.4.tar.gz", "has_sig": false, "md5_digest": "d1c0432659eb7333f3b6eee9aa04e6e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12918, "upload_time": "2017-06-08T07:40:15", "url": "https://files.pythonhosted.org/packages/8e/94/7057121c217309e67cad655233c340a74fb5039cd9e98fb45849aedc1d29/demandimport-0.3.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1c0432659eb7333f3b6eee9aa04e6e8", "sha256": "3cb9f51a5e85aa7dd77acb4dcc2b3be8ead1472e90e64ea991875a06611dff8d" }, "downloads": -1, "filename": "demandimport-0.3.4.tar.gz", "has_sig": false, "md5_digest": "d1c0432659eb7333f3b6eee9aa04e6e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12918, "upload_time": "2017-06-08T07:40:15", "url": "https://files.pythonhosted.org/packages/8e/94/7057121c217309e67cad655233c340a74fb5039cd9e98fb45849aedc1d29/demandimport-0.3.4.tar.gz" } ] }