GitHub – diegojromerolopez/gelidum: Freeze your objects in python

Inspired by the method freeze found in other languages like Javascript, this package tries to make immutable objects to make it easier avoiding accidental modifications in your code.

See more comments about this project in this Show HN.

Major highlights
freeze method creates objects with the same attributes of inputs that cannot be expanded or modified.
Frozen object creation is thread-safe.
Structural sharing: any frozen object is shared by all of its user objects. There is no copy performed, only reference.
cpython and pypy support.