BSD Ports

devel/py-nest-asyncio2 1.7.2 FreeBSD

Patch asyncio to allow nested event loops

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD2CLAUSE
Categories
devel, python
Package size
14.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

SystemPortVersion
FreeBSDdevel/py-nest-asyncio21.7.2
NetBSDdevel/py-nest-asyncio21.7.2
MidnightBSDdevel/py-nest-asyncio21.7.2
HardenedBSDdevel/py-nest-asyncio21.7.2
GhostBSDdevel/py-nest-asyncio21.7.2

Install

Binary package:

pkg install py312-nest-asyncio2

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-nest-asyncio2>0:devel/py-nest-asyncio2

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.7.21.7.2--1.7.2
FreeBSD:14:quarterly1.7.21.7.2n/a-1.7.2
FreeBSD:15:latest1.7.21.7.2n/a--
FreeBSD:15:quarterly1.7.21.7.2n/an/an/a
FreeBSD:16:latest1.7.21.7.2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 7

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
nest_asyncio2-1.7.2.tar.gz147431921d70b92cc4612c374928d081552efb59b83d91b2b789d935c665fa01729a8
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.