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.5.5

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.5.5
File Size Uploaded
caio-0.5.5.tar.gz 16.6 kB Details

Built distributions (wheels)

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

Total release size: 509.6 kB

Release files / caio-0.5.5.tar.gz

Download URL caio-0.5.5.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
34482eeede9185bc367e655cb8384a375706a239ad6abf5f55d78772386d7d51
BLAKE2b-256 checksum
How to use checksums
3d25f56e036940874e770e2acd51f1116bd77c32fe622fb4401c158913d6fc85
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.5.5-cp38-cp38-manylinux2010_x86_64.whl

Download URL caio-0.5.5-cp38-cp38-manylinux2010_x86_64.whl
Size 106.8 kB
Tags CPython 3.8 Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
b2741962549fceb8d4c856f90a99eb865d3514cfdd2878e776e8ab88daf86a3d
BLAKE2b-256 checksum
How to use checksums
15b6d926bc27d3046ebbc57dfa643dbdd3e4bab6186887738faa216c2b38f05c
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.5.5-cp38-cp38-macosx_10_9_x86_64.whl

Download URL caio-0.5.5-cp38-cp38-macosx_10_9_x86_64.whl
Size 42.3 kB
Tags CPython 3.8 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3b5e1b7a26fa02837a7f0be84375fea08a43257a291e797b21897bf0aeeb3152
BLAKE2b-256 checksum
How to use checksums
a70e3a360c5de26d83ed91241d08867f84bfafb86b3d8d6857ddd10cf47d9106
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.5.5-cp37-cp37m-manylinux2010_x86_64.whl

Download URL caio-0.5.5-cp37-cp37m-manylinux2010_x86_64.whl
Size 81.9 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
733942025b4aaab9da72dac556fd291cb173034aa18e4e7758f0bf5bfbca6a54
BLAKE2b-256 checksum
How to use checksums
30804d0acb01c3a9fabf4c6d70f1edc4297bcd80538859abea92c74ea49ed708
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.5.5-cp37-cp37m-macosx_10_9_x86_64.whl

Download URL caio-0.5.5-cp37-cp37m-macosx_10_9_x86_64.whl
Size 32.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
514c7c73305d36b449043b85d4f0583dd7a92c84e722b49a79c5aca1bd3d0c8e
BLAKE2b-256 checksum
How to use checksums
629cd14379ece1bb8f5c872c3a5e9464a8bb206381557d4a022182e235b2ea0b
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.5.5-cp36-cp36m-manylinux2010_x86_64.whl

Download URL caio-0.5.5-cp36-cp36m-manylinux2010_x86_64.whl
Size 80.1 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
934e5d2ee4970792656e1899277c3df8586a57babf3e9e4072edaec0d28b904e
BLAKE2b-256 checksum
How to use checksums
41f24739a80386a49aec47d0ededa6b15c8ba72c96820ab92463ca02ffc2f6d0
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.5.5-cp36-cp36m-macosx_10_9_x86_64.whl

Download URL caio-0.5.5-cp36-cp36m-macosx_10_9_x86_64.whl
Size 32.2 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
1e652c6d202332457ef68c47f9eeaf34d545d52a8566623c5ba0bf84732dd8ba
BLAKE2b-256 checksum
How to use checksums
2fb7b27d24fc7f22ac5c221faba55770cd6b755ea9ef7176f1766544042772d6
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.5.5-cp35-cp35m-manylinux2010_x86_64.whl

Download URL caio-0.5.5-cp35-cp35m-manylinux2010_x86_64.whl
Size 79.7 kB
Tags CPython 3.5 CPython 3.5 pymalloc Linux glibc 2.12+ x86-64
SHA-256 checksum
How to use checksums
29f5864ea351872fb85de800cc84cf135390b6c7ac29f6da0f3a8301eb3960ce
BLAKE2b-256 checksum
How to use checksums
b2ede952d8a4001b3d1787bb36f154b03a69e3c88c7cfa0dd6e02d941b90d6ce
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.5.5-cp35-cp35m-macosx_10_6_intel.whl

Download URL caio-0.5.5-cp35-cp35m-macosx_10_6_intel.whl
Size 37.8 kB
Tags CPython 3.5 CPython 3.5 pymalloc macOS 10.6+ Intel (x86-64, i386)
SHA-256 checksum
How to use checksums
1a9f56b311c0e76fa8709ea85db6d664e3fcf6e9e63507101c7654eacd078217
BLAKE2b-256 checksum
How to use checksums
d187ca86ea76093c99dcd4835193d1da7e40cff5facdf139872de7030153722a
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 history Release notifications | RSS feed

0.9.8

10 release files

0.9.7

10 release files

0.9.6

11 release files

0.9.4

7 release files

0.8.4

10 release files

0.8.3

6 release files

0.8.2

6 release files

0.8.1

9 release files

0.7.0

10 release files

0.6.3

11 release files

0.6.1

9 release files

0.6.0

9 release files

0.5.6

9 release files

This release

0.5.5 This release

9 release files

0.5.3

13 release files

0.5.2

13 release files

0.5.0

13 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.0.4

1 release file

0.0.3

1 release file

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