Registry / serialization / sprig
library0.5.1pypypiunverified

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.

pip install sprig
INSTALL
IMPORT
SIG · SPRIG
S
sprig
serializationpythonv0.5.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

compose
✓ import sprig; sprig.compose
✗ from sprig import compose

Compose two functions and apply to an argument.

from sprig import compose, pipe add_one = lambda x: x + 1 square = lambda x: x * x add_then_square = compose(square, add_one) result = add_then_square(5) # 36 print(result)
Debug
Known issues
breakingVersion 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.
fix
Replace removed imports with alternatives or vendor the code.
affects: < 0.5.0
deprecatedThe 'curry' function is deprecated in 0.5.0 and may be removed in a future release.
fix
Use 'functools.partial' or manual currying instead.
affects: >= 0.5.0, < next major
gotchaThe library is unstable and not intended for production use. Expect frequent breaking changes between minor versions.
fix
Pin to exact version and test thoroughly on upgrade.
affects: all
Upgrade
Version history
0.5.1latest on PyPI · released Sep 21, 2021
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
sprig — pip install sprig · libregistry