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
import redis
import pyslock
slock_client = pyslock.Client("localhost")
event = slock_client.Event("test", 5, 120, False)
event.set()
import asyncio
import pyslock
async def run():
slock_client = pyslock.AsyncClient("localhost")
event = slock_client.Event("test", 5, 120, False)
await event.set()
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
License
slock uses the MIT license, see LICENSE file for the details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyslock-0.0.1.tar.gz
(9.5 kB
view details)
File details
Details for the file pyslock-0.0.1.tar.gz.
File metadata
- Download URL: pyslock-0.0.1.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f7a4e7939237a164ddcc207f8c53653b5d3d130ff637683869b4f3593dfcbc4
|
|
| MD5 |
3dfbf292de522f18a46d91c03b9816de
|
|
| BLAKE2b-256 |
351cd939df8830f09d621b1399ed7fae0ea5631bce105ae094ced957ef870230
|