pyo3-filelike

Crates.iopyo3-filelike
lib.rspyo3-filelike
version0.3.0
sourcesrc
created_at2023-11-26 18:54:21.418107
updated_at2024-06-25 09:33:49.025914
descriptionRust access to Python file-like objects
homepagehttps://github.com/jelmer/pyo3-filelike
repository
max_upload_size
id1049366
size8,707
Jelmer Vernooij (jelmer)

documentation

README

Rust compatible wrappers for file-like objects in Python

This crate provides implementations of the Write, Seek, Read and AsRawFd rust traits on top of file-likb objects in PyO3.

Example


let f = py3o_filelike::PyBinaryFile::from(o);

let mut buf = [0u8; 4];
f.read_exact(&mut buf)?;
Commit count: 0

cargo fmt