# python-trio/trio

Trio – a friendly Python library for async concurrency and I/O

Repository: https://github.com/python-trio/trio
Canonical: https://ross.abutalabs.com/products/trio
Homepage: https://trio.readthedocs.io
Language: Python
License: NOASSERTION
License Family: other
Topics: python, async, async-await, networking, io, trio, structured-concurrency
Last push: 2026-08-24T22:05:29+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 85, longevity 100
- inputs: {"age_days": 3516, "days_push": 9, "days_rel": 23, "gap_med": 69, "n_releases_24m": 8}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 7307, forks 416 (observed 2026-08-28T04:09:58.136409+00:00)

## What it is
Trio is a Python library for async/await-native concurrency and I/O, built around structured concurrency principles. It aims for production quality with an obsessive focus on usability and correctness, offering a simpler alternative to asyncio and Twisted.

## Use cases
- run many network requests concurrently in Python
- write an async web server or websocket handler
- fetch lots of web pages in parallel with a spider
- supervise multiple subprocesses asynchronously
- replace asyncio with a simpler, safer concurrency model
- manage timeouts and cancellation reliably in async code

## When to choose
- you want structured concurrency and sane cancellation semantics
- you're starting a new async Python project and aren't locked into asyncio
- you value correctness and usability in concurrent I/O code
- you need a mature, well-documented async I/O library

## When to avoid
- your project or dependencies already depend on asyncio's ecosystem
- you need CPU-bound parallelism rather than concurrent I/O
- you require drop-in asyncio API compatibility

## Facets
- artifact type: library
- maturity: stable
- function: concurrency, http-server, websocket, networking, file-system
- domain: developer-tools, networking, backend
- platform: python, cross-platform
- tags: async-await, structured-concurrency, io, asyncio-alternative, automation

## Member repositories
- python-trio/trio (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:58.136409+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:38:41.521910+00:00, confidence not recorded.
  - readme: https://github.com/python-trio/trio (fetched 2026-08-28T04:09:58.136409+00:00, sha f1aab945b673)
  - registry_pypi: https://pypi.org/pypi/trio/json (fetched 2026-08-29T08:34:32.488985+00:00, sha fe9ac8cb037e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
