Wimpy is a Python utility library (anti-copy-pasta) containing commonly used helper functions that the author extracted to avoid repeatedly copying them into new projects. It provides a collection of small, general-purpose utilities for everyday Python programming tasks. The library is currently at version 0.6 and is actively maintained, with releases focusing on adding new features and improving existing ones.
pip install wimpyVerified import paths — ran on the pinned version, not inferred.
Demonstrates stripping prefixes, checking for subsequences, and creating overlapping chunks from an iterable, which are core utilities provided by the library.
If you require an error for missing prefixes/suffixes, explicitly set `strict=True`. Otherwise, the default behavior of returning the original string when not found remains.
Upgrade to wimpy v0.6 or later to ensure correct handling of all `overlap` values, including negative ones.
Always check the return value, or for versions 0.6+, use `strict=True` if you prefer an explicit error when the prefix/suffix is absent.
Change the import statement to `from wimpy.exceptions import WimpyError`.
Either ensure the prefix/suffix always exists, or handle the `wimpy.exceptions.WimpyError` exception, or remove `strict=True` to revert to the default behavior of returning the original string when the prefix/suffix is missing.
No dependency data recorded yet.