Skip to main content

Function decorators based on 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.

Source Distribution

aiodecorators-0.2.1.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

aiodecorators-0.2.1-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file aiodecorators-0.2.1.tar.gz.

File metadata

  • Download URL: aiodecorators-0.2.1.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for aiodecorators-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cd07d5d14c9656934b6bab95729db83e05795097019737f049444d3ee4cd79e5
MD5 02bca3ad9d502d7da4bd5ddf3de3e74a
BLAKE2b-256 d066283cf17c0de8932b920d22b3ffeee4bf74d80bc2e44b4705bd1c0a3a2bc4

See more details on using hashes here.

File details

Details for the file aiodecorators-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aiodecorators-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 79291f5c339fc0d08fbf91aac1a4568a7d505ba19fa7c08e7bfc2a72357dd4af
MD5 4bb540ee722c5c9c062fc44c84a03722
BLAKE2b-256 4b886675e4158d85324348286aec7312a949c87614a6e105cbf3e1274254eb5f

See more details on using hashes here.

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