Skip to main content

CatioX - Async I/O for Python, powered by C++

Project description

catiox

Python binding for Catio - Async I/O library powered by C++

GitHub License Python C++

Installation

pip install catiox

Qucik example

import catiox

catiox.catiox_init(5)

def on_success(data):
    print(data)

reader = catiox.catiox_async_read()
reader.async_readfile("./", "config.conf",
    catiox.read_type.catiox_read_kv,
    on_io_failed=print,
    on_io_success=on_success
)

import time
time.sleep(0.5)

Teachincal details

CatioX is powered by Catio, a high-performance C++ library featuring:

Async I/O - Non-blocking file operations

Thread Pool - Efficient task scheduling

Event Loop - Based on poll() system call High Performance - Direct file I/O with minimal overhead

KV Parser - Built-in key-value config parsing

Thread-safe - Mutex-protected shared data

Architecture

Python Code → pybind11 → C++ catio → Thread Pool → File I/O → Callback → Python

C++ 20 standard

RAII resource management

Smart pointers for memory safety

Move semantics for zero-copy operations

Documentation

For detailed documentation, examples, and source code:

> https://github.com/kloveme/catiox

License

MIT © 2026 Kloveme

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

catiox-0.1.6-py3-none-manylinux_2_31_x86_64.whl (1.8 MB view details)

Uploaded Python 3manylinux: glibc 2.31+ x86-64

File details

Details for the file catiox-0.1.6-py3-none-manylinux_2_31_x86_64.whl.

File metadata

File hashes

Hashes for catiox-0.1.6-py3-none-manylinux_2_31_x86_64.whl
Algorithm Hash digest
SHA256 e5ad2b5c24d83a031ac82d15482891107cca94cfbab69d813c0a94f12cb96fb1
MD5 f2849401f7a986c40743fdfb6cd7d990
BLAKE2b-256 472b8a2cdd0029956769eaf04b524b1ae89585d6c373e88522f578f2866a3421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page