Is there a Python equivalent to Ruby’s officer gem? It is a distributed locking server, basically allows you to have locks across a network rather than just between threads.
I’ve been looking at elock which has a Python library for it, however elock is unlicensed so we can’t really use it for commercial software (also it has more or less been abandoned).
Ideally the equivalent will fit into twisted, but that’s not necessary.
I ended up solving this by using memcached since it has atomic updates.
The solution is fairly simple: