3 releases (breaking)

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

#659 in Development tools

Download history 730/week @ 2024-10-21 870/week @ 2024-10-28 533/week @ 2024-11-04 2658/week @ 2024-11-11 1366/week @ 2024-11-18 848/week @ 2024-11-25 659/week @ 2024-12-02 769/week @ 2024-12-09 816/week @ 2024-12-16 725/week @ 2024-12-23 573/week @ 2024-12-30 651/week @ 2025-01-06 508/week @ 2025-01-13 477/week @ 2025-01-20 902/week @ 2025-01-27 1522/week @ 2025-02-03

3,443 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