py-mysql-lock
MySQL Backed Locking Primitive
Repository Video ▶️py-mysql-lock provides locking primitive based on MySQL's GET_LOCK
Though there are mature locking primitives provided by systems like Zookeeper and etcd, when you have an application which is primarily dependent on MySQL for its uptime and health, added resiliency provided by systems just mentioned doesn't add much benefit. py-mysql-lock helps when you have multiple application instances which are backed by a common mysql instance and you want only one of those application instances to hold a lock and do certain tasks.
Demo google drive: https://drive.google.com/drive/folders/1XDa0OXVfoAcY4RQt5Zmb_MpZxutvqTx-?usp=sharing
that's a wrap. managed to add couple more feature today and published 0.2.0 on pypi and uploaded the video.
forgot to include one feature but that;s ok I think. upload takes too much time :/
CI setup/ 91+% cod cov
:party_parrot:
PyMySQLLock now supported the three most popular mysql libraries and optionally can take a custom connect function as an argument.
Docs live (though not completely populated) at https://py-mysql-lock.readthedocs.io/en/latest/
Base code and classes ready with approriate docstrings.
Bare minimum library ready with functionality. (an MVP?) Lot to do still though
Repo created: https://github.com/sanketplus/py-mysql-lock
Project created by Sanket Patel