This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Testing on CPython3.13a1+ | |
Requires some recent patches from main. | |
pip install hypercorn | |
Have successfully run the following apps: | |
- fastapi==0.99.0 | |
- Flask | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import annotations | |
__all__ = ["connect", "Connection", "Cursor"] | |
import sqlite3 | |
from collections.abc import Callable, Sequence | |
from functools import partial, wraps | |
from typing import Any | |
from anyio import CapacityLimiter, to_thread |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import trio | |
from .trio_loop import TrioLoop | |
async def foo(data): | |
await trio.sleep(1) | |
return data | |
with TrioLoop() as loop: | |
data = loop.wait(foo('hello world')) | |
print(data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import trio | |
import sys | |
import time | |
import httpx | |
from outcome import Error | |
import traceback | |
# Can't use PySide2 currently because of | |
# https://bugreports.qt.io/projects/PYSIDE/issues/PYSIDE-1313 | |
from PyQt5 import QtCore, QtWidgets |