{"library":"anyio","install":[{"cmd":"pip install anyio","imports":["import anyio\nanyio.run(main)","from anyio import create_task_group\nasync with create_task_group() as tg:\n    tg.start_soon(fn)","from anyio import create_memory_object_stream\nsend, recv = create_memory_object_stream[int](max_buffer_size=10)","from anyio.from_thread import start_blocking_portal\nwith start_blocking_portal() as portal:\n    portal.call(async_fn)","from anyio import to_thread\nawait to_thread.run_sync(blocking_fn, abandon_on_cancel=True)","from anyio import CancelScope\nwith CancelScope(deadline=...) as scope:\n    ...","from anyio import Path\npath = Path('/tmp/file')\ncontent = await path.read_text()","from anyio import get_cancelled_exc_class\ntry:\n    await something()\nexcept get_cancelled_exc_class():\n    raise"]},{"cmd":"pip install anyio[trio]","imports":[]},{"cmd":"pip install anyio[trio] pytest-anyio","imports":[]}]}