Function decorators based on asyncio Lock, Semaphore and BoundedSemaphore
pip3 install aiodecorators
from aiodecorators import Lock
@Lock()
async def f():
pass
from aiodecorators import Semaphore
@Semaphore(n)
async def f():
pass
from aiodecorators import BoundedSemaphore
@BoundedSemaphore(n)
async def f():
pass