Skip to content

Latest commit

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

pyslock

High-performance distributed sync service and atomic DB. Provides good multi-core support through lock queues, high-performance asynchronous binary network protocols. Can be used for spikes, synchronization, event notification, concurrency control. https://github.com/snower/slock

Install

pip install pyslock

Event

importredisimportpyslockslock_client=pyslock.Client("localhost")
event=slock_client.Event("test", 5, 120, False)
event.set()
importasyncioimportpyslockasyncdefrun():
slock_client=pyslock.AsyncClient("localhost")
event=slock_client.Event("test", 5, 120, False)
awaitevent.set()
loop=asyncio.get_event_loop()
loop.run_until_complete(run())

License

slock uses the MIT license, see LICENSE file for the details.

About

slock python client

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages