MagicStack / MagicStack/uvloop

Attach uvloop to a running libuv event loop

Open
#593 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Cython
Stars
11.9k
Forks
616
PR merge metrics
No merged PRs in 30d

Description

I am interested in uvloop for the following use case:

- I have a C++ application running libuv, embedding a Python interpreter running in the main thread
- I would like to use asyncio in the Python interpreter so that it uses the libuv event loop at hand, and does not block the main application.

Does uvloop's provide means to **attach the Python wrapper to an existing libuv event loop**? If it is a simple addition, would you consider such a feature - or accept a contribution enabling this use case ? (pointers welcome on where to get started).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing uvloop's existing asyncio event-loop entry points and how the Python interpreter currently reaches libuv; the issue names no files or tests. Determine whether attaching to an externally running libuv loop is supported or what API design would be required, then document a concrete contribution path and completion criteria.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.