Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

package loader for auto installing Python packages.

Project Description

package loader for auto installing Python packages.

A package loader in the spirit of Zero Install that can be used to
inject dependencies into the import process.

To install::

easy_install -U autoinstall


download, unpack, python install


try the bootstrap loader. See below.

To use::

# You can bind any package name to a URL pointing to something
# that can be imported using the zipimporter.

autoinstall.bind("pymarc", "")

import pymarc

print pymarc.__version__, pymarc.__file__


- added support for non top level packages.
- cache files now use filename part from URL.
- applied patch from Eric Seidel <> to add support
for loading modules where the module is not at the root of the .zip


- a description of the intended use case
- address other issues pointed out in:


pull vs. push
user vs. system
web vs. filesystem
auto vs. manual

manage development sandboxes

optional interfaces...

def get_data(pathname) -> string with file data.

Return the data associated with 'pathname'. Raise IOError if
the file wasn't found.");

def is_package,
"is_package(fullname) -> bool.

Return True if the module specified by fullname is a package.
Raise ZipImportError is the module couldn't be found.");

def get_code,
"get_code(fullname) -> code object.

Return the code object for the specified module. Raise ZipImportError
is the module couldn't be found.");

def get_source,
"get_source(fullname) -> source string.

Return the source code for the specified module. Raise ZipImportError
is the module couldn't be found, return None if the archive does
contain the module, but has no source for it.");

Autoinstall can also be bootstraped with the nascent package loader
bootstrap module. For example::

# or via the bootstrap
# loader.

_version = "0.2"
import autoinstall
if autoinstall.__version__ != _version:
raise ImportError("A different version than expected found.")
except ImportError, e:
import bootstrap
pypi = ""
dir = "packages/source/a/autoinstall"
url = "%s/%s/autoinstall-%s.tar.gz" % (pypi, dir, _version)
import autoinstall


Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(4.5 kB) Copy SHA256 Hash SHA256
Source None Dec 22, 2009

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting