3 releases (breaking)

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

#1138 in Development tools

Download history 2533/week @ 2024-11-15 915/week @ 2024-11-22 728/week @ 2024-11-29 762/week @ 2024-12-06 715/week @ 2024-12-13 792/week @ 2024-12-20 585/week @ 2024-12-27 682/week @ 2025-01-03 554/week @ 2025-01-10 466/week @ 2025-01-17 383/week @ 2025-01-24 1506/week @ 2025-01-31 3433/week @ 2025-02-07 4320/week @ 2025-02-14 1220/week @ 2025-02-21 4956/week @ 2025-02-28

14,099 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