2 unstable releases
0.2.0 | Nov 26, 2023 |
---|---|
0.1.0 | Nov 26, 2023 |
#879 in Development tools
3,715 downloads per month
Used in 6 crates
(via breezyshim)
7KB
163 lines
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)?;
Dependencies
~3–9.5MB
~65K SLoC