2005-03-06 20:29:50

Module providing common utilities for many 4Suite components, as well as for general use.

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Things to set up before importing other Ft.Lib.CommandLine modules

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Utilities for database connections

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Extensions to distutils to support building, installing, packaging 4Suite

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Classes and functions related to IRI processing

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Messages for Ft.Lib

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Pretty-printing of objects

Copyright 2003 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Progress indicator

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Thread-safe random number generation

We consider a physical source of entropy to be better than a simulated one, so we will try to use one (/dev/urandom on posix, for example). If a pseudo-random number generator is to be used, it should be seeded from the physical source, if possible, rather than the usual custom of seeding it from the system clock. Random number sources that are not known to be thread-safe should be polled serially.

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Tools to manage the many different flavors of regex

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Specialized and useful URI resolvers

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Operations on ordered sets

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Provides some of the information from the terminfo database.

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Provides some of the information from the terminfo database.

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Package for testing utilities

Copyright 2002 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Date and time related functionality for use within 4Suite only.

This module is experimental and may not be staying in 4Suite for long; application developers should avoid forming dependencies on it.

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Classes and functions related to URI validation and resolution

APIs that currently differentiate between Unicode and byte strings are considered to be experimental; do not count on their uniformity between releases.

Copyright 2005 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Functions for generating and comparing Universal Unique Identifiers (UUIDs), based on ideas from e2fsprogs.

A UUID is essentially a 128-bit random number that has a string representation of 28 hexadecimal digits, hyphenated in groups of 8-4-4-12. The value could be greater than the number of atoms in the universe; it's extremely unlikely that the same number would ever be generated twice.

UUIDs are defined by ISO/IEC 11578:1996 (Remote Procedure Call) and The Open Group's DCE 1.1 (Distributed Computing Environment) spec (the ISO version was based on an earlier version of the DCE spec). See http://www.opengroup.org/onlinepubs/009629399/apdxa.htm#tagcjh_20 for the current version, and also see the expired IETF Internet-Draft http://www.opengroup.org/dce/info/draft-leach-uuids-guids-01.txt for a version with more informative prose and examples.

Copyright 2004 Fourthought, Inc. (USA). Detailed license and copyright information: http://4suite.org/COPYRIGHT Project home, documentation, distributions: http://4suite.org/

Exceptions used by the Uri module, and possibly others.

- 202
- 100
- 300
- 120
- 112
- 111
- 130
- 200
- 121
- 1000
- 201

Closes a stream, ignoring errors if quiet=True. If the stream is a terminal (e.g. sys.stdin, stdout, stderr), does not attempt to close the stream.

Closing terminal streams could interfere with subsequent read or write attempts. For example, after calling sys.stdout.close(), subsequent writes to stdout will not raise an exception, but may also fail to actually write anything to stdout.

The stream argument can be any Python file-like object with a close() method, such as a regular file object or an instance of Ft.Xml.InputSource.InputSource (or subclass thereof).

Returns text truncated to length, with "..." appended if truncation was necessary.

A word-wrap function that preserves existing line breaks and most spaces in the text. Expects that existing line breaks are posix newlines (\n).

See also: Ft.Lib.CommandLine.CommandLineUtil.wrap_text()