proteindf_bridge.str_processing module¶
- class proteindf_bridge.str_processing.StrUtils[source]¶
Bases:
object- classmethod get_common_str(str1, str2)[source]¶
Return the common string (from the beginning).
>>> a = 'abcdef' >>> b = 'abcdefg' >>> Utils.get_common_str(a, b) 'abcdef'
- classmethod sort_nicely(given_list)[source]¶
Sort the given list in the way that humans expect. ref: http://www.codinghorror.com/blog/2007/12/sorting-for-humans-natural-sort-order.html