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.


Interpret string value as boolean.

Returns True if value translates to True otherwise False.


Interpret human readable string value as bytes.

Returns int