Next Previous Contents

23. Python Interface for PostgreSQL

Python in an interpreted, object orientated scripting language. It is simple to use (light syntax, simple and straighforward statements), and has many extensions for building GUIs, interfacing with WWW, etc. An intelligent web browser (HotJava like) is currently under development (november 1995), and this should open programmers many doors. Python is copyrighted by Stichting S Mathematisch Centrum, Amsterdam, The Netherlands, and is freely distributable. It contains support for dynamic loading of objects, classes, modules, and exceptions. Adding interfaces to new system libraries through C code is straightforward, making Python easy to use in custom settings. Python is a very high level scripting language with X interface. Python package is distributed on Linux cdroms includes most of the standard Python modules, along with modules for interfacing to the Tix widget set for Tk.

PyGreSQL is a python module that interfaces to a PostgreSQL database. It embeds the PostgreSQL query library to allow easy use of the powerful PostgreSQL features from a Python script. PyGreSQL is written by D'Arcy J.M. Cain and Pascal Andre.

23.1 Where to get PyGres ?

The home sites of the differents packages are:

You should anyway try to find some mirror site closer of your site. Refer to the information sources to find these sites. PyGreSQL should reside in the contrib directories of Python and PostgreSQL sites.

23.2 Information and support

If you need information about these packages please check their web sites:

For support :

23.3 Testing Python interface

See the section - Testing Python PostgreSQL interface


Next Previous Contents