{ "info": { "author": "Daniel Krech", "author_email": "eikeon@eikeon.com", "bugtrack_url": null, "classifiers": [], "description": "package loader for auto installing Python packages.\n\nA package loader in the spirit of Zero Install that can be used to\ninject dependencies into the import process. \n\n\nTo install::\n\n easy_install -U autoinstall\n\n or \n\n download, unpack, python setup.py install\n\n or \n\n try the bootstrap loader. See below.\n\n\nTo use::\n\n # You can bind any package name to a URL pointing to something\n # that can be imported using the zipimporter.\n\n autoinstall.bind(\"pymarc\", \"http://pypi.python.org/packages/2.5/p/pymarc/pymarc-2.1-py2.5.egg\")\n\n import pymarc\n\n print pymarc.__version__, pymarc.__file__\n\n \nChangelog::\n\n- added support for non top level packages.\n- cache files now use filename part from URL.\n- applied patch from Eric Seidel to add support\nfor loading modules where the module is not at the root of the .zip\nfile.\n\n\nTODO::\n\n- a description of the intended use case\n- address other issues pointed out in:\n\n http://mail.python.org/pipermail/python-dev/2008-March/077926.html\n\nScribbles::\n\npull vs. push\nuser vs. system\nweb vs. filesystem\nauto vs. manual\n\nmanage development sandboxes\n\noptional interfaces...\n\n def get_data(pathname) -> string with file data.\n\n Return the data associated with 'pathname'. Raise IOError if\n the file wasn't found.\");\n\n def is_package,\n \"is_package(fullname) -> bool.\n\n Return True if the module specified by fullname is a package.\n Raise ZipImportError is the module couldn't be found.\");\n\n def get_code,\n \"get_code(fullname) -> code object.\n\n Return the code object for the specified module. Raise ZipImportError\n is the module couldn't be found.\");\n\n def get_source,\n \"get_source(fullname) -> source string.\n\n Return the source code for the specified module. Raise ZipImportError\n is the module couldn't be found, return None if the archive does\n contain the module, but has no source for it.\");\n\n\nAutoinstall can also be bootstraped with the nascent package loader\nbootstrap module. For example::\n\n # or via the bootstrap\n # loader.\n\n try:\n _version = \"0.2\"\n import autoinstall\n if autoinstall.__version__ != _version:\n raise ImportError(\"A different version than expected found.\")\n except ImportError, e:\n # http://svn.python.org/projects/sandbox/trunk/bootstrap/bootstrap.py\n import bootstrap \n pypi = \"http://pypi.python.org\"\n dir = \"packages/source/a/autoinstall\"\n url = \"%s/%s/autoinstall-%s.tar.gz\" % (pypi, dir, _version)\n bootstrap.main((url,))\n import autoinstall\n\nReferences::\n\n http://0install.net/\n http://www.python.org/dev/peps/pep-0302/\n http://svn.python.org/projects/sandbox/trunk/import_in_py\n http://0install.net/injector-find.html\n http://roscidus.com/desktop/node/903", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/autoinstall/", "keywords": null, "license": "Copyright (c) 2009, Daniel Krech\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n * Neither the name of the Daniel Krech nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.", "maintainer": null, "maintainer_email": null, "name": "autoinstall", "package_url": "https://pypi.org/project/autoinstall/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/autoinstall/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/autoinstall/" }, "release_url": "https://pypi.org/project/autoinstall/0.2/", "requires_dist": null, "requires_python": null, "summary": "package loader for auto installing Python packages.", "version": "0.2" }, "last_serial": 786613, "releases": { "0.1a": [ { "comment_text": "", "digests": { "md5": "2dd03eb323f2f4b780c7492786f22675", "sha256": "a09aa45d56e5b4f60bf6730b32514464f21636d41a908c6de6819f0db82b3d8e" }, "downloads": -1, "filename": "autoinstall-0.1a.tar.gz", "has_sig": false, "md5_digest": "2dd03eb323f2f4b780c7492786f22675", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2803, "upload_time": "2008-03-20T03:01:13", "url": "https://files.pythonhosted.org/packages/a0/9c/24bbd7cbf344704edc13b3693cc1f987e63e0679bdeeaccccc011c356bd9/autoinstall-0.1a.tar.gz" } ], "0.1a2": [ { "comment_text": "", "digests": { "md5": "46a6ffe94916a0a87e6b61c15bdfe947", "sha256": "4809d97712e7b3f0e12d8ce45f7d77fe3f246f66b81c6dffecd38dce2c463d67" }, "downloads": -1, "filename": "autoinstall-0.1a2.tar.gz", "has_sig": false, "md5_digest": "46a6ffe94916a0a87e6b61c15bdfe947", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3436, "upload_time": "2008-04-07T01:33:51", "url": "https://files.pythonhosted.org/packages/5c/88/69b952c3dbb698d1a77b6eeb16ced492bee6fe8d1b634d3b3e1057e2b8e6/autoinstall-0.1a2.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "4301f953b037654973305e9d8f843731", "sha256": "a5e311cfe169c9576020d85d550b7bbfdaeb90ba08b733d9ca2be255a0d36119" }, "downloads": -1, "filename": "autoinstall-0.2.tar.gz", "has_sig": false, "md5_digest": "4301f953b037654973305e9d8f843731", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4519, "upload_time": "2009-12-22T21:47:20", "url": "https://files.pythonhosted.org/packages/95/b5/a51aaadc94025347c1904e5bde7b5d7025cadee6798c02b0ef57f7f87057/autoinstall-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4301f953b037654973305e9d8f843731", "sha256": "a5e311cfe169c9576020d85d550b7bbfdaeb90ba08b733d9ca2be255a0d36119" }, "downloads": -1, "filename": "autoinstall-0.2.tar.gz", "has_sig": false, "md5_digest": "4301f953b037654973305e9d8f843731", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4519, "upload_time": "2009-12-22T21:47:20", "url": "https://files.pythonhosted.org/packages/95/b5/a51aaadc94025347c1904e5bde7b5d7025cadee6798c02b0ef57f7f87057/autoinstall-0.2.tar.gz" } ] }