{"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":[{"wrong":"from sprig import compose","symbol":"compose","correct":"import sprig; sprig.compose"}],"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,"search_vec":"'0.5.1':30 'cadenc':38 'chain':28 'collect':9 'composit':26,47 'develop':44 'earli':43 'elsewher':18 'fit':16 'function':22,46 'helper':24,48 'latest':33 'librari':6 'like':25 'miscellan':11 'neat':17 'often':19 'program':23 'project':40 'provid':7 'python':5 'regular':37 'releas':34 'sprig':1,2 'use':20 'util':12,45 'version':29","created_at":"2026-05-09T05:54:38.898082+00:00","updated_at":"2026-05-09T05:54:38.898082+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nAttributeError: module 'sprig' has no attribute 'compose'"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/apljungquist/sprig","docs":null,"changelog":null,"pypi":"https://pypi.org/project/sprig/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}