A library for creating Pythonic object-mutator transforms as pure functions. Version 0.3.0 supports Python 3.10–3.14. Current release cadence is irregular.
pip install purifyVerified import paths — ran on the pinned version, not inferred.
Decorate a class with @purify to make all instance methods return new objects instead of mutating the original.
Upgrade to Python >=3.10 or pin purify<0.3.0.
Ensure your class __init__ only sets attributes directly (e.g., self.x = x). Avoid property setters or custom __setattr__.
Reassign the result: p = p.update_name('Bob') instead of p.update_name('Bob').Remove any return statements from __init__ and avoid overriding __new__.
Use 'from purify import purify' and ensure you have purify >=0.2.0.
No dependency data recorded yet.