Skip to content

dflupu/aiodecorators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Function decorators based on asyncio Lock, Semaphore and BoundedSemaphore

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages