Skip to main content

Async-based context manager that enforces FIFO processing

Project description

https://travis-ci.org/jbn/lockchain.svg?branch=master https://ci.appveyor.com/api/projects/status/9k78nhy88v51fd69?svg=true https://coveralls.io/repos/github/jbn/lockchain/badge.svg?branch=master https://img.shields.io/pypi/dm/lockchain.svg https://img.shields.io/pypi/v/lockchain.svg https://img.shields.io/badge/license-MIT-blue.svg https://img.shields.io/pypi/pyversions/lockchain.svg

What is lockchain?

A LockChain allows you to create a chain of critical regions, executed sequentially. The underlying Lock from asyncio would actually enforce this with a dequeue, so this library is mostly unnecessary. Had I read the code first, I would have either not needed this or found a different solution. Until I actually think about it though, it’s still here.

It’s still useful for limiting access to some set of resources in a namespace. If no coroutine is blocking for some resource, it’s you may get to close that resource (or reset a rate limit.)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lockchain-0.0.2.tar.gz (5.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page