Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
If a thread holds a lock (so is in a with DDBSession(): block) for longer than 30 seconds, its hold is automatically revoked, but DDBSession.write doesn't detect this case. I would definitely recommend using operating system functions designed for file locking instead.
Why would one prefer it over https://github.com/davidlatwe/montydb?
Wait, https://github.com/mkrd/DictDataBase/blob/master/dictdatabase/locking.py#L90 this looks quite prone to races. Have you tried https://github.com/tox-dev/py-filelock/blob/main/src/filelock/_unix.py something like this?
Very cool. This looks somewhat similar to https://github.com/manimino/ducks which I'm using in some stuff