Search results
4 lut 2018 · A functional string utility library for Python 2 and 3. Closely inspired by implementations in Haskell and PHP. For more documentation, please see http://stringutils.readthedocs.io. This package is still in an early development stage, and it is possible that the naming and API of some functions will change.
- python-string-utils
All the public API are importable directly from the main...
- python-string-utils
A functional string utility library for Python 2 and 3. Closely inspired by implementations in Haskell and PHP. For more documentation, please see http://stringutils.readthedocs.io.
A functional string utility library for Python 2 and 3. Closely inspired by implementations in Haskell and PHP. For more documentation, please see http://stringutils.readthedocs.io .
[docs] def join(strings, sep=', ', insertend=False): """ Concatenate a list of strings into a single string by a separating delimiter. If *insertend* is given and true, the delimiter is also included at the end of the string. """ return sep.join(strings) + (sep if insertend else '')
All the public API are importable directly from the main package string_utils, so this: can be simplified as: Bear in mind: this is just an overview, for the full API documentation see: readthedocs.io. is_string: checks if the given object is a string. is_full_string: checks if the given object is non empty string.
A functional string utility library for Python 2 and 3. Closely inspired by implementations in Haskell and PHP. For more documentation, please see http://stringutils.readthedocs.io. Note. This package is still in an early development stage, and it is possible that the naming and API of some functions will change.
stringutils.contains (string, matches) [source] ¶ Determine if a string contains any of the given values. matches may be a single string, or a list of strings.