Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Function decorators for asyncio synchronization primitives

Project description

aiodecorators

Function decorators based on asyncio Lock, Semaphore and BoundedSemaphore

Install

pip3 install aiodecorators

Usage

asyncio.Lock

from aiodecorators import Lock

@Lock
async def f():
    pass

asyncio.Semaphore

from aiodecorators import Semaphore

@Semaphore(n)
async def f():
    pass

asyncio.BoundedSemaphore

from aiodecorators import BoundedSemaphore

@BoundedSemaphore(n)
async def f():
    pass

Project details


Download files

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

Files for aiodecorators, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size aiodecorators-0.2.tar.gz (1.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page