Skip to main content

High-performance distributed shared lock service client driver

Project description

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.

Project 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 hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page