# aiofiles

> Asynchronous local file access for Python asyncio apps

Source: https://talira.ai/catalog/aiofiles-86s40f56
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / python](https://talira.ai/categories/languages/python)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^2]
- Pricing notes: Free and open source (Apache-2.0).
- Free tier: yes[^2]
- Backed by: [Tin Tvrtković](https://talira.ai/orgs/tin-tvrtkovic.md)

aiofiles is a Python library that gives asyncio applications asynchronous versions of local files, so reading and writing a file doesn't block the event loop. Its aiofiles.open() mirrors the built-in open() and hands each blocking operation to a thread pool. It also has async interfaces to the tempfile module and to pathlib.Path, and supports async iteration over a file's lines.

## Links

- GitHub: https://github.com/Tinche/aiofiles

## Problems it solves

- reading files in my asyncio web server blocks every other request
- write logs and uploads to disk from async Python code without stalling the event loop
- use pathlib-style file operations with await in an async app

## Features

- aiofiles.open() with an API like the built-in open()
- buffered and unbuffered binary files and buffered text files
- async iteration over lines
- async tempfile interface
- async pathlib.Path

## Limitations

- Works by handing each file operation to a thread pool, not through native asynchronous file I/O.[^1]

## Trust

Overall: 0.47 out of 1.
Signals: maintenance 0.50, adoption 0.70, momentum 0.42, community 0.67, backing 0.30, extensibility 0.00.

- last commit 40 days ago
- 8 commits in the last 90 days
- latest release v25.1.0 13 months ago
- 3.3k GitHub stars
- 47 contributors
- accepts sponsorship (Github, Tidelift)
- backed by Tin Tvrtković

## Sources

[^1]: https://github.com/Tinche/aiofiles/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/Tinche/aiofiles/blob/main/LICENSE (checked 29 Nov 2026)
