# Tinche/aiofiles

File support for asyncio

Repository: https://github.com/Tinche/aiofiles
Canonical: https://ross.abutalabs.com/products/aiofiles
Language: Python
License: Apache-2.0
License Family: permissive
Topics: asyncio
Last push: 2026-08-26T10:45:19+00:00

## Health v2 (maintenance only)
Score: 71/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 19, longevity 100
- inputs: {"age_days": 4175, "days_push": 7, "days_rel": 328, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3255, forks 167 (observed 2026-08-28T04:07:52.298629+00:00)

## What it is
aiofiles is an Apache-2.0 licensed Python library providing asynchronous file I/O for asyncio applications by delegating blocking file operations to a thread pool. It mirrors the standard Python file API with async/await support, including async tempfile and os interfaces.

## Use cases
- read and write files without blocking an asyncio event loop
- asynchronously iterate over lines in a file
- use tempfile in async Python code
- async access to stdin/stdout/stderr
- port blocking file IO code to asyncio

## When to choose
- you have an asyncio application doing local disk file IO
- you want an API identical to Python's built-in open but awaitable
- you need async tempfile or os.path operations

## When to avoid
- you need true non-blocking OS-level async IO rather than thread-pool delegation
- your application is not asyncio-based
- you need async network or remote file system access

## Facets
- artifact type: library
- maturity: stable
- function: file-system, concurrency, developer-tools
- domain: developer-tools, backend
- platform: python, cross-platform
- tags: asyncio, async-file-io, thread-pool, tempfile, automation

## Member repositories
- Tinche/aiofiles (main) score 71

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:52.298629+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-30T07:23:20.094251+00:00, confidence not recorded.
  - readme: https://github.com/Tinche/aiofiles (fetched 2026-08-28T04:07:52.298629+00:00, sha 3dd5123673c5)
  - registry_pypi: https://pypi.org/pypi/aiofiles/json (fetched 2026-08-29T09:36:51.662726+00:00, sha 8b0195c0cbb4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
