--- id: cufile-python version: "0.2.0" license: MIT license_treatment: permissive maintenance: aging --- # cufile-python — A basic Python wrapper for the NVidia cuFile API License: permissive · Maintenance: aging · Downloads: 108.7K/mo ## What it is and what it does cufile-python is a thin Python binding to NVIDIA's cuFile API, which enables direct I/O between storage and GPU memory, bypassing the host CPU and system RAM. The package exposes both a high-level context manager interface (CuFile class) for common read/write operations and low-level bindings for direct libcufile access via ctypes. The wrapper is minimal with no Python runtime dependencies, making installation straightforward. It targets Linux (POSIX) and supports Python 3.6 and later. Development has slowed—the last commit was 305 days ago—but the repository remains active and not archived. The codebase is small, making stability plausible for its narrow use case. Use it for: - Load large tensors directly into GPU memory from disk in machine learning frameworks without copying through host RAM. - Implement high-throughput data pipelines where I/O is a known bottleneck. - Access raw GPU memory buffers from files in scientific computing or data-parallel applications. - Benchmark GPU-direct storage performance on systems with NVIDIA GPUs and cuFile support. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Python wrapper around the NVIDIA cuFile API to read and write files directly to and from GPU memory without staging through host RAM. Yes, if you have NVIDIA cuFile installed and need GPU-direct file I/O in Python. The package is lightweight, permissively licensed under MIT, and solves a specific performance problem. No, if you don't have cuFile available on your system or don't need direct GPU storage access. Verify that your NVIDIA driver and cuFile version are compatible before relying on it in production. ## Install pip install cufile-python uv add cufile-python poetry add cufile-python ## Installing cufile-python Before you install: Low install friction with a pure Python wheel and no runtime dependencies. Maintenance status is aging—last commit was 305 days ago with minimal repository activity (3 stars), though the repository remains active and not archived. License in practice: MIT license permits unrestricted use, modification, and distribution with minimal legal friction. Quickstart: pip install cufile-python from cufile import CuFile import ctypes with CuFile("test.bin", "r") as f: f.read(ctypes.c_void_p(buffer_ptr), buffer_size) NVIDIA cuFile library must be installed and available on the system; Linux (POSIX) only; requires Python 3.6 or later. Verify before relying: - Whether the underlying NVIDIA cuFile library must be installed separately on the system for this wrapper to function. - Whether GPU compute capability or CUDA version constraints exist beyond the Python 3.6+ requirement. - Actual test coverage and stability of the wrapper against different cuFile API versions. - Performance characteristics and real-world throughput gains compared to standard file I/O. ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: aging - Downloads: 108.7K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags gpu direct file io, nvidia cufile python wrapper, cuda gpu memory file access, direct gpu storage read write, cuda file operations, gpu-acceleration, nvidia-cuda, high-performance-io [View on SkillFed](https://skillfed.io/packages/cufile-python) · [View on PyPI](https://pypi.org/project/cufile-python/)