aioring (Io Rings for asyncio)
aioring is a library that handles async fileIO. Currently we only support io_uring on linux, other operating systems fall back to a custom ring using python threads which is only intended for development purposes and should not be used in production.
from aioring import aio
async with await aio.open("file.name", "r") as f:
content = await f.read()
install
aioring can be installed with pip
pip install aioring
aos
in aos we expose async versions of functions defined in the 'os' module. currently we support:
aos.pread(fd: int, count: int, offset: int)aos.pwrite(fd: int, buffer: bytes, offset: int)aos.close(fd: int)aos.open(path: str, flags: int, mode: int=0o777, *, dir_fd=None)aos.fstat(fd: int)aos.stat(path: str)these functions should work the same way as their counterpart in the os module but need to be called with await.
aio
in aio we expose a async implementation of the cpython pyio module (https://github.com/python/cpython/blob/3.10/Lib/_pyio.py) usage is like normal io but with async/await
from aioring import aio
# read file
async with await aio.open("file.txt", "r") as f:
data = await f.read()
# write file
async with await aio.open("file.txt", "w") as f:
data = await f.write("test")
Plans
- fileIO
- Windows IoRing
- socketIO
Metadata
Release files for aioring 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aioring-0.1.3.tar.gz | 1.3 MB | Without provenance | Details for aioring-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aioring-0.1.3-cp313-cp313-win_amd64.whl | CPython 3.13 | CPython 3.13 | Windows x86-64 | Details for aioring-0.1.3-cp313-cp313-win_amd64.whl |
Total release size: 1.8 MB
Release files / aioring-0.1.3.tar.gz
| Download URL | aioring-0.1.3.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37cc44d3a6ca1b5e3346ab9d61f12f3aff15a958138521fedd2161a5883279f9
|
|
BLAKE2b-256 checksum How to use checksums |
c355fd9fa26281725b86556b75de323a7aac4ac8e28b0355a3864b88651c193d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Release files / aioring-0.1.3-cp313-cp313-win_amd64.whl
| Download URL | aioring-0.1.3-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 515.9 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
4059a7021c6ee2edd6cbede77d1bf39ec948bade62119eabf9370dc857e14131
|
|
BLAKE2b-256 checksum How to use checksums |
38d05762dae006a50faf992044ba384fa919d3a26ba42d79650a621fc958246d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.1
|
Security for aioring 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.