BSD Ports

devel/py-nest-asyncio2 1.7.2 DragonFly

Patch asyncio to allow nested event loops

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
devel, python
Package size
13.7 KiB, 56.8 KiB installed

Description

nest-asyncio2 is a fork of the unmaintained nest_asyncio.

All interfaces are kept as they are. To migrate, you just need to change the package and module name to nest_asyncio2.

By design asyncio does not allow its event loop to be nested. This presents a practical problem: When in an environment where the event loop is already running it's impossible to run tasks and wait for the result. Trying to do so will give the error "RuntimeError: This event loop is already running".

The issue pops up in various environments, such as web servers, GUI applications and in Jupyter notebooks.

This module patches asyncio to allow nested use of asyncio.run and loop.run_until_complete.

In the other systems

The newest version among them is 1.7.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/py-nest-asyncio21.7.2 newestnone known-[email protected]-
FreeBSDdevel/py-nest-asyncio21.7.2 newestnone known-[email protected]-
NetBSDdevel/py-nest-asyncio21.7.2 newestnone known-[email protected]2026-10-12
MidnightBSDdevel/py-nest-asyncio21.7.2 newestno data-[email protected]2026-11-04
HardenedBSDdevel/py-nest-asyncio21.7.2 newestno data-[email protected]-
GhostBSDdevel/py-nest-asyncio21.7.2 newestno data-[email protected]-

Compare across BSDs

Version history 1

  1. 1.7.2

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install py312-nest-asyncio2

From DPorts:

cd /usr/dports/devel/py-nest-asyncio2 && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1
Required by 1