Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huntie/stringutils
A functional string utility library for Python
https://github.com/huntie/stringutils
case-conversion functional-programming functional-python string-utilities
Last synced: 2 months ago
JSON representation
A functional string utility library for Python
- Host: GitHub
- URL: https://github.com/huntie/stringutils
- Owner: huntie
- License: mit
- Created: 2018-01-28T09:40:17.000Z (almost 7 years ago)
- Default Branch: develop
- Last Pushed: 2018-03-01T17:55:20.000Z (almost 7 years ago)
- Last Synced: 2024-10-10T15:06:07.447Z (3 months ago)
- Topics: case-conversion, functional-programming, functional-python, string-utilities
- Language: Python
- Homepage: http://stringutils.readthedocs.io/en/develop/
- Size: 25.4 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
stringutils
===========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.Features
--------The main design goal of this library is to provide helpful string functions which complement what can already be done with *str*, *str.format* and *textwrap*. As such, it includes:
- A selective set of additional string helper functions.
- Extended versions of existing *str* methods as functions where useful.Installation
------------Install the latest release from `PyPI `_:
.. code-block:: sh
pip install stringutils
Usage
-----All functions are available directly off the :code:`stringutils` package. You may choose to import individual functions by name, or import all.
.. code-block:: python
from stringutils import reverse, unwords, words
def reverse_words(string):
return unwords(map(reverse, words(string)))Contribute
----------- Source code: https://github.com/huntie/stringutils
- Issue tracker: https://github.com/huntie/stringutils/issuesLicense
-------The project is licensed under the MIT license.