{"id":15663595,"url":"https://github.com/hellysmile/asyncio_monkey","last_synced_at":"2025-04-11T13:11:17.679Z","repository":{"id":44866908,"uuid":"91071012","full_name":"hellysmile/asyncio_monkey","owner":"hellysmile","description":"monkey patch asyncio modules for expected behaviour","archived":false,"fork":false,"pushed_at":"2022-01-21T18:59:24.000Z","size":21,"stargazers_count":7,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-25T01:32:26.654Z","etag":null,"topics":["asyncio","monkey-patching"],"latest_commit_sha":null,"homepage":"https://pypi.python.org/pypi/asyncio_monkey","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hellysmile.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-12T08:48:37.000Z","updated_at":"2023-12-14T11:42:45.000Z","dependencies_parsed_at":"2022-09-04T15:24:17.312Z","dependency_job_id":null,"html_url":"https://github.com/hellysmile/asyncio_monkey","commit_stats":null,"previous_names":["wikibusiness/asyncio_monkey"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellysmile%2Fasyncio_monkey","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellysmile%2Fasyncio_monkey/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellysmile%2Fasyncio_monkey/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellysmile%2Fasyncio_monkey/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellysmile","download_url":"https://codeload.github.com/hellysmile/asyncio_monkey/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229421559,"owners_count":18070351,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["asyncio","monkey-patching"],"created_at":"2024-10-03T13:38:34.925Z","updated_at":"2024-12-12T17:04:44.536Z","avatar_url":"https://github.com/hellysmile.png","language":"Python","readme":"asyncio_monkey\n==============\n\n:info: monkey patch asyncio modules for expected behaviour\n\n.. image:: https://img.shields.io/travis/wikibusiness/asyncio_monkey.svg\n    :target: https://travis-ci.org/wikibusiness/asyncio_monkey\n\n.. image:: https://img.shields.io/pypi/v/asyncio_monkey.svg\n    :target: https://pypi.python.org/pypi/asyncio_monkey\n\nInstallation\n------------\n\n.. code-block:: shell\n\n    pip install asyncio_monkey\n\nUsage\n-----\n\n.. code-block:: python\n\n    # it must be done before any import asyncio statement, once per project\n    # best place is __init__.py of You'r application\n    from asyncio_monkey import patch_all  # noqa isort:skip\n    patch_all()\n\nor call the one you need\n\n.. code-block:: python\n\n    # it must be done before any import asyncio statement, once per project\n    # best place is __init__.py of You'r application\n    import asyncio_monkey  # noqa isort:skip\n\n    asyncio_monkey.patch_gather()\n    asyncio_monkey.patch_log_destroy_pending()\n    asyncio_monkey.patch_get_event_loop()\n    asyncio_monkey.patch_lock()\n\nFeatures\n--------\n\n- Cancel pending tasks `gather` if any task fails, `source \u003chttps://bugs.python.org/issue31452\u003e`_\n\n- Disables `get_event_loop` returns currently running loop, even if `MainThread` loop is `None`, `docs \u003chttps://docs.python.org/3/library/asyncio-eventloops.html#asyncio.get_event_loop\u003e`_ , `source \u003chttps://bugs.python.org/issue28613\u003e`_\n\n- Disables silent destroying futures inside `asyncio.gather` `source \u003chttps://github.com/python/cpython/blob/3dc7c52a9f4fb83be3e26e31e2c7cd9dc1cb41a2/Lib/asyncio/tasks.py#L600\u003e`_\n\n- Prevents `asyncio.Lock` deadlock after cancellation  `source \u003chttp://bugs.python.org/issue27585\u003e`_\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellysmile%2Fasyncio_monkey","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellysmile%2Fasyncio_monkey","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellysmile%2Fasyncio_monkey/lists"}