Skip to main content

asyncio_monkey

info:

monkey patch asyncio modules for expected behaviour

https://img.shields.io/travis/wikibusiness/asyncio_monkey.svg https://img.shields.io/pypi/v/asyncio_monkey.svg

Installation

pip install asyncio_monkey

Usage

# it must be done before any import asyncio statement, once per project
# best place is __init__.py of You'r application
from asyncio_monkey import patch_all  # noqa isort:skip
patch_all()

or call the one you need

# it must be done before any import asyncio statement, once per project
# best place is __init__.py of You'r application
import asyncio_monkey  # noqa isort:skip

asyncio_monkey.patch_gather()
asyncio_monkey.patch_log_destroy_pending()
asyncio_monkey.patch_get_event_loop()
asyncio_monkey.patch_lock()

Features

  • Cancel pending tasks gather if any task fails, source

  • Disables get_event_loop returns currently running loop, even if MainThread loop is None, docs , source

  • Disables silent destroying futures inside asyncio.gather source

  • Prevents asyncio.Lock deadlock after cancellation source

Metadata

Release files for asyncio_monkey 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for asyncio_monkey 0.1.1
File Size Uploaded Provenance
asyncio_monkey-0.1.1.tar.gz 4.0 kB Without provenance Details

Release files / asyncio_monkey-0.1.1.tar.gz

Download URL asyncio_monkey-0.1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0743e7852edc3f854eff2c1f3591d965a09e252c587b7d3fe19b5d56b256237e
BLAKE2b-256 checksum
How to use checksums
ec6abf58745119e289cfb399113357b8073d76e150e601c80921621f1729731c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for asyncio_monkey 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page