{"library":"sprig","title":"Sprig","type":"library","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.","language":"python","status":"active","last_verified":"Sat May 09","install":{"commands":["pip install sprig"],"cli":null},"imports":["from sprig import compose","from sprig import identity","from sprig import pipe"],"auth":{"required":false,"env_vars":[]},"links":{"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},"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.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}