Richard Gruet, Rev 1 May 28, 2003
Overview
List of modules in this package
List of scripts in this package
Requirements
Installation
Documentation
LicenseOverview
The Python package
rgutilsis a bundle of miscellaneous utility modules. However many modules are actually independent, so you can extract them from the package and use them separately if you wish.All modules are provided as-is. Some of them are really simple, not to say simplistic (eg. pool, env). Other ones are more elaborated (getargs, process, proxy). Actually I include new modules in
rgutilseverytime I happen to write a module that looks (to me) of general interest.List of modules in the package
Module Descriptionasync Asynchronous utilities (timed out function call). dataxfer Functions for transfering arbitrary sized data in a distributed (client/server) environment via a FTP server. env PATHenvironnement variable utilities.getargs Yet another Command line arguments parser. glock This module defines the class GlobalLock that implements a global (inter-process) mutex that works on Windows and Unix, using file-locking on Unix (I also tried this approach on Windows but got some tricky problems so I ended using a Win32 Mutex). imap Utilities for reading IMAP mail. Uses message.message Defines 2 classes used by the modules pop3andimap.pool Resource pool management. pop3 Utilities for reading POP3 mail. Uses message.process Simple process management on Windows and Unix. proxy Object Proxies. templates Simple template management.. trace Misc trace/log & error management functions. List of scripts in the package
A few scripts are also included with
rgutils. They will be installed under<prefix>\Scriptson Windows, and<prefix>/lib/pythonx.y/scriptson Unix. prefix will be typically your Python install directory on Windows, and/usron Unix. It is convenient to add this directory to yourPATHif it is not already the case, so you can launch the scripts from anywhere by simply typing"script.py"(or even"script"on Windows, if the environment variablePATHEXTincludes the extension.py).Note: On Linux, you may have to
chmod +xthe Python scripts before being able to execute them.
Script Descriptionfwdmail.py Forward mail (POP3 and IMAP4) and optionally remove it. pdflist.py Creates PDF listings of python source programs with syntax highlighting. Use py2pdf. py2pdf.py Dinu C. Gherman's Python highlighter for PDF. Uses the ReportLab toolkit version >=0.92 to generate PDF (not included here, you can get it for free here). Requirements
- Python 1.5.2 to 2.2, depending on the module.
Installation
On windows
Download the executable installer
rgutils-1.0.3.win32.exeand execute it.The files will be installed under
<prefix>/Lib/site-packages/rgutils(<prefix> being your Python home directory).
You may uninstall the package later via Control panel Add/Remove programs.On Linux
Download the binary RPM
rgutils-1.0.3-1.redhat.noarch.rpmand install it by executing :
rpm -ivh rgutils-1.0.3-1.redhat.noarch.rpmThe files will be installed under
<prefix>/lib/pythonx.y/site-packages/rgutils(<prefix> is usually/usror/usr/localunder Linux)You may uninstall the package later by executing :
rpm -e rgutilsOn other platforms
Uncompress one of the source distributions (rgutils-1.0.3.zip or rgutils-1.0.3.tar.gz) in a temporary directory, then cd to this directory and execute:
python setup.py installTo uninstall later you will have to remove the files manually. Delete the files under
site-packages/rgutils, and don't forget the scripts in thescriptsdirectory!
Documentation
The HTML documentation (in javadoc style) for the package is in the
<rgutils-install-dir>/rgutils/docdirectory (start withindex.html). It is also available online here.License
(c) Copyright 2000-2003 by Richard Gruet
This software is distributed under the LGPL license.
![]()