{"id":28274,"library":"sprig","title":"Sprig","description":"Sprig is a Python library providing a collection of miscellaneous utilities that don't fit neatly elsewhere, often used for functional programming helpers (like composition and chaining). Version 0.5.1 is the latest release, with no regular cadence; the project is in early development.","status":"active","version":"0.5.1","language":"python","source_language":"en","source_url":"https://github.com/apljungquist/sprig","tags":["utilities","functional","composition","helpers"],"install":[{"cmd":"pip install sprig","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"compose","correct":"from sprig import compose"},{"note":"","wrong":"","symbol":"identity","correct":"from sprig import identity"},{"note":"","wrong":"","symbol":"pipe","correct":"from sprig import pipe"}],"quickstart":{"code":"from sprig import compose, pipe\n\nadd_one = lambda x: x + 1\nsquare = lambda x: x * x\nadd_then_square = compose(square, add_one)\nresult = add_then_square(5)  # 36\nprint(result)","lang":"python","description":"Compose two functions and apply to an argument."},"warnings":[{"fix":"Replace removed imports with alternatives or vendor the code.","message":"Version 0.5.0 removed previously deprecated functions. Check your imports if upgrading from <0.5.0, as many utility functions (e.g., 'flip', 'placeholder') were removed without alias.","severity":"breaking","affected_versions":"< 0.5.0"},{"fix":"Use 'functools.partial' or manual currying instead.","message":"The 'curry' function is deprecated in 0.5.0 and may be removed in a future release.","severity":"deprecated","affected_versions":">= 0.5.0, < next major"},{"fix":"Pin to exact version and test thoroughly on upgrade.","message":"The library is unstable and not intended for production use. Expect frequent breaking changes between minor versions.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install sprig'.","cause":"Sprig is not installed.","error":"ModuleNotFoundError: No module named 'sprig'"},{"fix":"Use 'functools.partial' instead, or if on older version pin to sprig==0.4.x.","cause":"'curry' was removed or deprecated after upgrade.","error":"AttributeError: module 'sprig' has no attribute 'curry'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}