2 unstable releases

0.2.0 Nov 26, 2023
0.1.0 Nov 26, 2023

#879 in Development tools

Download history 121/week @ 2023-12-31 156/week @ 2024-01-07 136/week @ 2024-01-14 414/week @ 2024-01-21 363/week @ 2024-01-28 316/week @ 2024-02-04 437/week @ 2024-02-11 452/week @ 2024-02-18 367/week @ 2024-02-25 637/week @ 2024-03-03 774/week @ 2024-03-10 434/week @ 2024-03-17 846/week @ 2024-03-24 1267/week @ 2024-03-31 1025/week @ 2024-04-07 534/week @ 2024-04-14

3,715 downloads per month
Used in 6 crates (via breezyshim)

Apache-2.0

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