atelier.utilsΒΆ

(source code)

Defines a series of utility classes and functions.

Functions

assert_pure(s) raise an Exception if the given string is not ispure().
confirm([prompt]) Ask for user confirmation from the console.
date_offset(ref[, days]) Compute a date using a “reference date” and an offset.
i2d(i) Convert int to date.
i2t(s) Convert int to time.
iif(condition, true_value, false_value) “Inline If” : an if statement as a function.
indentation(s) Examples:
ispure(s) Returns True if the specified string s is either a unicode string or contains only ASCII characters.
unindent(s) Reduces indentation of a docstring to the minimum.

Classes

AttrDict Dictionary-like helper object.
SubProcessParent Base class for atelier.test.TestCase.