charmhelpers.core.strutils¶
-
class
charmhelpers.core.strutils.
BasicStringComparator
(item)¶ Bases:
object
Provides a class that will compare strings from an iterator type object. Used to provide > and < comparisons on strings that may not necessarily be alphanumerically ordered. e.g. OpenStack or Ubuntu releases AFTER the z-wrap.
-
charmhelpers.core.strutils.
bool_from_string
(value)¶ Interpret string value as boolean.
Returns True if value translates to True otherwise False.
-
charmhelpers.core.strutils.
bytes_from_string
(value)¶ Interpret human readable string value as bytes.
Returns int