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.
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:
pip install stringutils
Usage
All functions are available directly off the stringutils package. You may choose to import individual functions by name, or import all.
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/issues
License
The project is licensed under the MIT license.
Metadata
Release files for stringutils 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stringutils-0.3.0.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stringutils-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 8.7 kB
Release files / stringutils-0.3.0.tar.gz
| Download URL | stringutils-0.3.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12c2036b4909715b5fd9c1f962a648eb4fe710aadf6d2e0bdf11cd72bbae3189
|
|
BLAKE2b-256 checksum How to use checksums |
4d3bfb300d8cefb5b5c313c18c8ed636216983767b13336f278b3caddf655579
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / stringutils-0.3.0-py2.py3-none-any.whl
| Download URL | stringutils-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
ba89138db9f63cc24d82e6c57f47236c699a6ce8e56f42969949f0a0f2c91a5b
|
|
BLAKE2b-256 checksum How to use checksums |
293f9b18b4613165df9c392a91e7b324b8676fd33cd6f90e62050eb81d82cdaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |