3 releases (breaking)

0.3.0 Jun 25, 2024
0.2.0 Nov 26, 2023
0.1.0 Nov 26, 2023

#586 in Development tools

Download history 1897/week @ 2024-08-15 3161/week @ 2024-08-22 2109/week @ 2024-08-29 2089/week @ 2024-09-05 1440/week @ 2024-09-12 1757/week @ 2024-09-19 1825/week @ 2024-09-26 892/week @ 2024-10-03 596/week @ 2024-10-10 1056/week @ 2024-10-17 857/week @ 2024-10-24 729/week @ 2024-10-31 970/week @ 2024-11-07 2878/week @ 2024-11-14 938/week @ 2024-11-21 708/week @ 2024-11-28

5,547 downloads per month
Used in 8 crates (via breezyshim)

Apache-2.0

8KB
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

~2.5MB
~48K SLoC