Asynchronous file IO for Linux Posix and Wondows.
Project description
Python bindings for Linux AIO API and simple asyncio wrapper.
Example
import asyncio
from linux_aio import AsyncioAIOContext
loop = asyncio.get_event_loop()
async def main():
# max_requests=128 by default
ctx = AsyncioAIOContext(max_requests=128)
with open("test.file", "wb+") as fp:
fd = fp.fileno()
# Execute one write operation
await ctx.write(b"Hello world", fd, offset=0)
# Execute one read operation
print(await ctx.read(32, fd, offset=0))
# Execute one fdsync operation
await ctx.fdsync(fd)
op1 = ctx.write(b"Hello from ", fd, offset=0)
op2 = ctx.write(b"async world", fd, offset=11)
await asyncio.gather(op1, op2)
print(await ctx.read(32, fd, offset=0))
# Hello from async world
loop.run_until_complete(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file caio-0.5.0.tar.gz.
File metadata
- Download URL: caio-0.5.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5cc416aec59100dce532f5bdd2b58f864f2a8eae8a296554b0050dceff53704
|
|
| MD5 |
9c75d30258a977ad4dc5f3dc73da8d9b
|
|
| BLAKE2b-256 |
e9bf942aa7eeab15ecb2806114bb57e86be0bd4b614872570208f2c627e21444
|
File details
Details for the file caio-0.5.0-cp38-cp38-manylinux2014_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp38-cp38-manylinux2014_x86_64.whl
- Upload date:
- Size: 106.0 kB
- Tags: CPython 3.8
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5c534a75ab668d60fff02e454d942579837a1e5e3326daa4eed1f12a4e9438f
|
|
| MD5 |
76fc99aa56546baa4bb2a04283342283
|
|
| BLAKE2b-256 |
61d640353e12aa20a91b15a05b2384125680289860865c5fb1c4521bda8ec742
|
File details
Details for the file caio-0.5.0-cp38-cp38-manylinux2010_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp38-cp38-manylinux2010_x86_64.whl
- Upload date:
- Size: 106.0 kB
- Tags: CPython 3.8, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b421f938699ab0dbf599406ca4410893783f8d4884baf8f7d77360b9399e96eb
|
|
| MD5 |
d1e819c462d012e425f74afebe7caec2
|
|
| BLAKE2b-256 |
8ef1f4c9862f62c1f8e68e49a89927816b1e6391dfbefaac9c205d0e00ca5e3c
|
File details
Details for the file caio-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 41.8 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
035c0171cc04177feb12de51a25a81b573b1eb15e2f87db0cc580604afe718c9
|
|
| MD5 |
4b6e94c70d27ec7433eb58b85ebecea2
|
|
| BLAKE2b-256 |
825a071edf5933fa268cf5870d63d36fad9d5aaeefd9ca32a687690f9b1eddd2
|
File details
Details for the file caio-0.5.0-cp37-cp37m-manylinux2014_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp37-cp37m-manylinux2014_x86_64.whl
- Upload date:
- Size: 81.3 kB
- Tags: CPython 3.7m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa759e8b67ffaa6011e81e327f89ca7a620db26037c736c6967affc96ba7e4d6
|
|
| MD5 |
8c316d338945777b863e72d75a4c589f
|
|
| BLAKE2b-256 |
0637bbca3ff53481f03b9a3924ada3eda6a0f8f7f802ea42be0d4e2275b6a353
|
File details
Details for the file caio-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp37-cp37m-manylinux2010_x86_64.whl
- Upload date:
- Size: 81.3 kB
- Tags: CPython 3.7m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5153dbbf925238125368e8e3335384ffff12abc551fc53c5edaaf87ab2c8cac
|
|
| MD5 |
d99847645ac6065156eebbcdca4f75fd
|
|
| BLAKE2b-256 |
2fa482ed508cc0e44aa0b3831674b55bb97cb32ce9303805246d6028ffdee059
|
File details
Details for the file caio-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp37-cp37m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 31.7 kB
- Tags: CPython 3.7m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2158a68e9fc04e3cb0395e734079bc2ce941483d48255e3f45293120dea89db3
|
|
| MD5 |
6359ea29af7b016117f89d87103a3ced
|
|
| BLAKE2b-256 |
6095d4d84232396ac7aeb2cde2609184cff55614f5d10323313c6b20530389fc
|
File details
Details for the file caio-0.5.0-cp36-cp36m-manylinux2014_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp36-cp36m-manylinux2014_x86_64.whl
- Upload date:
- Size: 79.4 kB
- Tags: CPython 3.6m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0812f1d93c45db1d26b077b51c7d88ea78f56a22fae637696aefc25c8a907afa
|
|
| MD5 |
09ea39673da4adff59ed9de31c4aa8f6
|
|
| BLAKE2b-256 |
8bc18507956ce16ce44bf661f266c6aa96bcd34a4c771de0c68e2e1262e05b42
|
File details
Details for the file caio-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp36-cp36m-manylinux2010_x86_64.whl
- Upload date:
- Size: 79.4 kB
- Tags: CPython 3.6m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f5bd37d53f0f6dd560f000f12bbb26b306316729751d455476fe09fd8aaf7f1a
|
|
| MD5 |
5f1ebc74f2d0d140f2d974d6cb1fd3e3
|
|
| BLAKE2b-256 |
c6ea4aa07d8433f1524358a13813e8119bda4d49a4dca9dcd177bd54b72ee94d
|
File details
Details for the file caio-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp36-cp36m-macosx_10_9_x86_64.whl
- Upload date:
- Size: 31.7 kB
- Tags: CPython 3.6m, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f8b165cf82e44ad0cb08c2943e22e411995ebf6e54744bf953cd253d461859a
|
|
| MD5 |
b1e250992acfa57857eb8afa68850702
|
|
| BLAKE2b-256 |
8f5a5cc5ffbb5a91adf3c734f7287b87f2f65455831abb3cd58dfc8c75b8ae2c
|
File details
Details for the file caio-0.5.0-cp35-cp35m-manylinux2014_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp35-cp35m-manylinux2014_x86_64.whl
- Upload date:
- Size: 78.9 kB
- Tags: CPython 3.5m
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3000c35a2c531b0a1b38574ad8a87d87a84afec8cc4af10a7037c640a45755ef
|
|
| MD5 |
bed36b927a35efbd760e88bdc5be2e16
|
|
| BLAKE2b-256 |
8c47f0e60cb075ef0b887ada2c72dc678492a64c61638afad80ae301ed8b0c17
|
File details
Details for the file caio-0.5.0-cp35-cp35m-manylinux2010_x86_64.whl.
File metadata
- Download URL: caio-0.5.0-cp35-cp35m-manylinux2010_x86_64.whl
- Upload date:
- Size: 78.9 kB
- Tags: CPython 3.5m, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
443170939cb2c74151c05785badb615c1ad0561d9d70159835c78b4e90a09ef2
|
|
| MD5 |
d741eb76f127ed1e8ca84eac2d0929a0
|
|
| BLAKE2b-256 |
cb86634abf8b547b5ada34536b59cfd1bd31db77fd67d9c959b46ededcedd82a
|
File details
Details for the file caio-0.5.0-cp35-cp35m-macosx_10_6_intel.whl.
File metadata
- Download URL: caio-0.5.0-cp35-cp35m-macosx_10_6_intel.whl
- Upload date:
- Size: 37.3 kB
- Tags: CPython 3.5m, macOS 10.6+ Intel (x86-64, i386)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9de0a35ee34c065548bda227ebedb0ccd8b96275de90dad602cadaea4412fa7e
|
|
| MD5 |
3f0aa56fb58a9c48e860932adc7a6460
|
|
| BLAKE2b-256 |
1ae71e5de8bb6661badeaf7119086c590ab6a9cfd52377561a9b20fdcd980b3c
|