3 releases (breaking)

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

#812 in Development tools

Download history 1624/week @ 2024-04-02 379/week @ 2024-04-09 807/week @ 2024-04-16 414/week @ 2024-04-23 966/week @ 2024-04-30 674/week @ 2024-05-07 703/week @ 2024-05-14 525/week @ 2024-05-21 1152/week @ 2024-05-28 1579/week @ 2024-06-04 1603/week @ 2024-06-11 1208/week @ 2024-06-18 1775/week @ 2024-06-25 1074/week @ 2024-07-02 1120/week @ 2024-07-09 893/week @ 2024-07-16

5,513 downloads per month
Used in 6 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
~47K SLoC