Knio / dominate

Dominate is a Python library for creating and manipulating HTML documents using an elegant DOM API. It allows you to write HTML pages in pure Python very concisely, which eliminate the need to learn another template language, and to take advantage of the more powerful features of Python.
GNU Lesser General Public License v3.0
1.72k stars 108 forks source link

Support for asyncio? #127

Closed shawwwn closed 4 years ago

shawwwn commented 4 years ago

https://github.com/Knio/dominate/blob/4cb622103ce32055eec6808d622953d5d9ad4480/dominate/dom_tag.py#L46-L50

Looks like dominate currently only support native thread and greenlet but not asyncio. Given the popularity of asyncio, any plan to support it in the future?

Knio commented 4 years ago

Unfortunately, I haven't found a way to get a simple context ID out of the asyncio API yet, and it may not exist. If you have any suggestions, please post.