Skip to main content

Python wrapper for AIO

Python bindings for Linux AIO API and simple asyncio wrapper.

Example

import asyncio
from caio import AsyncioContext

loop = asyncio.get_event_loop()

async def main():
    # max_requests=128 by default
    ctx = AsyncioContext(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())

Metadata

Release files for caio 0.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for caio 0.6.1
File Size Uploaded Provenance Actions
caio-0.6.1.tar.gz 16.7 kB Without provenance Details for caio-0.6.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for caio 0.6.1
File Actions
caio-0.6.1-cp38-cp38-manylinux2010_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.12+ x86-64 Details for caio-0.6.1-cp38-cp38-manylinux2010_x86_64.whl
caio-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64 Details for caio-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl
caio-0.6.1-cp37-cp37m-manylinux2010_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64 Details for caio-0.6.1-cp37-cp37m-manylinux2010_x86_64.whl
caio-0.6.1-cp37-cp37m-macosx_10_9_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64 Details for caio-0.6.1-cp37-cp37m-macosx_10_9_x86_64.whl
caio-0.6.1-cp36-cp36m-manylinux2010_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64 Details for caio-0.6.1-cp36-cp36m-manylinux2010_x86_64.whl
caio-0.6.1-cp36-cp36m-macosx_10_9_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64 Details for caio-0.6.1-cp36-cp36m-macosx_10_9_x86_64.whl
caio-0.6.1-cp35-cp35m-manylinux2010_x86_64.whl CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64 Details for caio-0.6.1-cp35-cp35m-manylinux2010_x86_64.whl
caio-0.6.1-cp35-cp35m-macosx_10_6_intel.whl CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386) Details for caio-0.6.1-cp35-cp35m-macosx_10_6_intel.whl

Total release size: 506.0 kB

Release files / caio-0.6.1.tar.gz

Download URL caio-0.6.1.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5f7af99181c757115f219a4bf9dc9c87de434e43bb5f089b3d8ec217f4aad567
BLAKE2b-256 checksum
How to use checksums
ab96412ad3f1f26d6a50e825455455866f6676617aacd7a08210df08737ad97c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp38-cp38-manylinux2010_x86_64.whl

Download URL caio-0.6.1-cp38-cp38-manylinux2010_x86_64.whl
Size 104.6 kB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
3204d834e2371051cdb244fae8d0ee5fccfda69d16345783993bbc93088f4a2c
BLAKE2b-256 checksum
How to use checksums
43b1ac165e257f93b41cdd559adeee06db3dd3c03ef69ce9b19afcc9b2ac2b48
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl

Download URL caio-0.6.1-cp38-cp38-macosx_10_9_x86_64.whl
Size 42.4 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
4879b72a7804b5da633b64e94b2531b9abc059fc6853ce35611d0a4ad393c14f
BLAKE2b-256 checksum
How to use checksums
4496f2f2db077dffee82b6d0dc2c55023cd54e4fddc64e338d719729abfbde5a
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp37-cp37m-manylinux2010_x86_64.whl

Download URL caio-0.6.1-cp37-cp37m-manylinux2010_x86_64.whl
Size 82.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
8a46d57704114afd1f228b9a27a7b265f1e7ca38c0e1a0d35c29b1a4f1a9f915
BLAKE2b-256 checksum
How to use checksums
febf39b09dee353dc7fce95b59afe1af28c41d5b83c25ee6accb4dad4cc6cc21
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL caio-0.6.1-cp37-cp37m-macosx_10_9_x86_64.whl
Size 32.4 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
5a2dcf77fc43693449f9e3961d17bcb75a87cc75ca8866279c32acf845e57da8
BLAKE2b-256 checksum
How to use checksums
cec1cf5fe97c90a318367ccb67f28f95f366ab7f5259d99a6344529e35e775c9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp36-cp36m-manylinux2010_x86_64.whl

Download URL caio-0.6.1-cp36-cp36m-manylinux2010_x86_64.whl
Size 77.0 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
36b0b3242f8b0207e4b432ff2967d386cc21895e8b3da906415997cbe11b57ec
BLAKE2b-256 checksum
How to use checksums
5de251275b4d3aa1ddca9de64aa824babd52c626db14519df9f867148f346685
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp36-cp36m-macosx_10_9_x86_64.whl

Download URL caio-0.6.1-cp36-cp36m-macosx_10_9_x86_64.whl
Size 32.4 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
cb955712ad6a8b4c326af03c11fc08b902b7bfebc53ab458bd42bb2ac6dd77fa
BLAKE2b-256 checksum
How to use checksums
2be1efba1c2f9ee5d7c727f15603417b054077054a91a2960c2ccf8c6b88dc18
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp35-cp35m-manylinux2010_x86_64.whl

Download URL caio-0.6.1-cp35-cp35m-manylinux2010_x86_64.whl
Size 80.1 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
06a926dc744fc3f3c767be1230e2f421f0a862f67ba7a5639e2c288b7c0dc6e8
BLAKE2b-256 checksum
How to use checksums
4e03a635c627c224c9d3a3f5772b91eb611263c4e31f3728ef4eea86ee2625c1
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / caio-0.6.1-cp35-cp35m-macosx_10_6_intel.whl

Download URL caio-0.6.1-cp35-cp35m-macosx_10_6_intel.whl
Size 38.0 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
8ca6b28c51646433017b02eeb412464adc67c7c20577c4a4e74229169769a896
BLAKE2b-256 checksum
How to use checksums
6d1a20ffd13145bfe7c43db4445d13fb48ed8398b2e2ab5856cca52198521362
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for caio 0.6.1

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.

Release history Release notifications | RSS feed

This release

0.6.1 This release

9 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page