ASPN ActiveState Programmer Network
  ASPN
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH
advanced | search help

Reference
ActivePython 2.2
ActivePython User's Guide
What's Included in ActivePython
Installation Guide for ActivePython
The Python Package Manager (PyPPM)

MyASPN >> Reference >> ActivePython 2.2 >> ActivePython User's Guide
ActivePython User Guide

ActivePython's Python Package Manager

ActivePython's Python Package Manager is an interactive shell used to manage the installation of a number of popular Python modules The Python Package Manager is a command-line interface used to search for packages stored in the repository, view the version of installed packages, and download and install new packages. (Note: PyPPM is not supported on Solaris.)

Using the Python Package Manager

In order to use the Python Package Manager, your system must be connected to the internet. If your internet connection is via a firewall or proxy, see the section Python Package Manager, Proxies and Firewalls for information about configuring access through the proxy.

On Windows, click Start|Programs|ActiveState ActivePython 2.2|Python Package Manager. Alternatively, from a shell or command prompt, enter pyppm (Linux or Windows).

Quick start:

At the pyppm prompt:

  • To List Packages in the Repository: enter search.
  • To Install a Package: enter install <packagename>, where <packagename> is the name of the package you wish to install.
  • To View Installed Packages: enter query.

The table below contains a brief description of the Python Package Manager commands. Type help <command> at the Python Package Manager prompt for complete information about specific commands. Items in [brackets] are optional.

Command

Function

help [command] Lists available commands; enter help [command] for help on a specific command.
search [pattern] Lists all packages in the repository; enter a search string in [pattern] to search for specific text in the author or abstract fields of the package description.
install package1 [package2...] Installs specified packages.
query [pattern] Lists all installed packages; enter a search string in [pattern] to search for specific text in the author or abstract fields of the package description.
verify package1 [package2...] Verifies that currently installed packages are up to date with the versions on the repository.
set Set/display current options.
version Displays the version of the Python Package Manager.
querydb Prints the full path to the database file used by the Python Package Manager.
genconfig Prints a minimal Python Package Manager configuration file to STDOUT. To redirect output, run pyppm genconfig from the command line.
quit Exits the Python Package Manager.

Note: the "pattern" variable used by the search and query commands uses a search string like a regular expression. For example:

search xml|doc

will search for packages in which the characters "xml" and/or the characters "doc" are present in that order. For example, the search might return:

rax         [ 0.1.0.0 ] Record API for XML
xml_objects [ 1.0.0.0 ] Build a list of xml_object from an xml file
xmlrpclib   [ 0.9.8.0 ] an XML-RPC client interface for Python
pyxie       [ 1.0.6.0 ] An Open Source XML processing library for Python
PyXML       [ 0.6.5   ] XML Parsers and API for Python This version of
                        PyXML was tested with Python 2.0 and 1.5.2.
HappyDoc    [ 0       ] Python HappyDoc
dmutil      [ 1.0.0.0 ] PyXPATH is an implementation of the XML Path
                        Language (XPath).

Python Package Manager, Proxies and Firewalls

If your system is behind a proxy server or a firewall, you might have to configure environment variables to allow automatic access to the internet for.

Up to three environment variables may need to be configured. The HTTP_proxy_user and HTTP_proxy_pass variables only need to be configured if your proxy requires the entry of a user name and password to access the internet. For example:

HTTP_proxy=<proxy_server>
HTTP_proxy_user=<user_name>
HTTP_proxy_pass=<password>


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved