Asynchronous file operations.
AIOFile
Real asynchronous file operations with asyncio support.
Status
Development - Stable
Features
Since version 2.0.0 using caio, which contains linux libaio and two
thread-based implementations (c-based and pure-python).
AIOFile has no internal pointer. You should pass offset and
chunk_size for each operation or use helpers (Reader or Writer).
The simplest way is to use async_open for creating object with
file-like interface.
For Linux using implementation based on libaio.
For POSIX (MacOS X and optional Linux) using implementation
based on threadpool.
Otherwise using pure-python thread-based implementation.
Implementation chooses automatically depending on system compatibility.
Limitations
Linux native AIO implementation is not able to open special files.
Asynchronous operations against special fs like /proc/ /sys/ are not
supported by the kernel. It's not a aiofile's or caio issue.
In these cases, you might switch to thread-based implementations
(see Troubleshooting sect
- RPM
- python3-aiofile-3.9.0-1.lbn42.noarch.rpm
- Summary
- Asynchronous file operations.
- URL
- https://pypi.org/project/aiofile
- Group
- Unspecified
- License
- ZPL
- Source
-
python-aiofile-3.9.0-1.lbn42.src.rpm
- Checksum
- 62343736301183db28225a0b0c9f579d0935757a827b63b919a6068b5534490d
- Build Date
- 2025/09/14 21:54:42
- Requires
- Provides
-
python-aiofile = 3.9.0-1.lbn42
python3-aiofile = 3.9.0-1.lbn42
python3.13-aiofile = 3.9.0-1.lbn42
python3.13dist(aiofile) = 3.9
python3dist(aiofile) = 3.9
- Obsoletes