3 releases (breaking)

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

#622 in Development tools

Download history 2382/week @ 2024-09-24 857/week @ 2024-10-01 644/week @ 2024-10-08 1088/week @ 2024-10-15 870/week @ 2024-10-22 679/week @ 2024-10-29 910/week @ 2024-11-05 2851/week @ 2024-11-12 1034/week @ 2024-11-19 659/week @ 2024-11-26 721/week @ 2024-12-03 848/week @ 2024-12-10 785/week @ 2024-12-17 547/week @ 2024-12-24 757/week @ 2024-12-31 166/week @ 2025-01-07

2,741 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