trio
A friendly Python library for async concurrency and I/O
Install
trio on PyPI
pip
pip install triouv
uv add triopoetry
poetry add trioPackage facts
| License | MIT OR Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 7 — attrs, sortedcontainers, idna, outcome, sniffio, cffi, exceptiongroup |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: trio-0.34.0-py3-none-any.whl
Keywords: async, io, networking, trio
About trio
from the package's own PyPI description — quoted content, verbatim
.. image:: https://img.shields.io/badge/chat-join%20now-blue.svg :target: https://gitter.im/python-trio/general :alt: Join chatroom
.. image:: https://img.shields.io/badge/forum-join%20now-blue.svg :target: https://trio.discourse.group :alt: Join forum
.. image:: https://img.shields.io/badge/docs-read%20now-blue.svg :target: https://trio.readthedocs.io :alt: Documentation
.. image:: https://img.shields.io/pypi/v/trio.svg :target: https://pypi.org/project/trio :alt: Latest PyPi version
.. image:: https://img.shields.io/conda/vn/conda-forge/trio.svg :target: https://anaconda.org/conda-forge/trio :alt: Latest conda-forge version
.. image:: https://codecov.io/gh/python-trio/trio/branch/main/graph/badge.svg :target: https://codecov.io/gh/python-trio/trio :alt: Test coverage
Trio – a friendly Python library for async concurrency and I/O
.. image:: https://raw.githubusercontent.com/python-trio/trio/9b0bec646a31e0d0f67b8b6ecc6939726faf3e17/logo/logo-with-background.svg :width: 200px :align: right
The Trio project aims to produce a production-quality, `permissively...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Trio is a Python async I/O library built on structured concurrency principles, enabling you to write programs that handle multiple concurrent tasks and parallelized I/O operations with simpler, more readable code than traditional async frameworks.
Installation is straightforward with low friction: the package ships as a pure-Python wheel and all seven runtime dependencies (attrs, sortedcontainers, idna, outcome, sniffio, cffi, exceptiongroup) are either pure Python or have pre-built wheels. The project is actively maintained with a release just 2 days old, 7305 GitHub stars, and a solid track record since first release in 2017.
Trio is permissively licensed under MIT OR Apache-2.0, giving you the choice of either license. This dual licensing poses no legal friction for commercial or open-source use and aligns with the project's stated goal of being permissively licensed.
Usage
import trio
async def main():
print("Hello from Trio")
await trio.sleep(0)
trio.run(main)
Python 3.10 or later is required; the package supports CPython and PyPy3 on Linux, macOS, Windows, and FreeBSD.
Verdict: Trio is a mature, well-maintained async I/O library with zero known vulnerabilities, permissive licensing, and minimal install friction. Its focus on structured concurrency and usability makes it a solid choice for building concurrent applications, backed by active development and strong community engagement.
Needs verification
- Whether the cffi dependency on Windows requires any special setup beyond wheel installation
- Real-world performance characteristics compared to asyncio for specific workload patterns
- Ecosystem maturity: availability and stability of third-party Trio-compatible libraries
Similar packages
permissive · top 100 on PyPI
outcomepermissive · top 1,000 on PyPI
sniffiopermissive · top 100 on PyPI
h11permissive · top 100 on PyPI
trio-websocketpermissive · top 1,000 on PyPI
httpx2permissive · top 1,000 on PyPI
uvicornpermissive · top 100 on PyPI
httpxpermissive · top 100 on PyPI
httpcorepermissive · top 100 on PyPI
ipythonpermissive · top 1,000 on PyPI