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 = from;
let mut buf = ;
f.read_exact?;
This crate provides implementations of the Write, Seek, Read and AsRawFd
rust traits on top of file-likb objects in PyO3.
let f = py3o_filelike::PyBinaryFile::from(o);
let mut buf = [0u8; 4];
f.read_exact(&mut buf)?;