Crates.io | pyo3-filelike |
lib.rs | pyo3-filelike |
version | 0.3.0 |
source | src |
created_at | 2023-11-26 18:54:21.418107 |
updated_at | 2024-06-25 09:33:49.025914 |
description | Rust access to Python file-like objects |
homepage | https://github.com/jelmer/pyo3-filelike |
repository | |
max_upload_size | |
id | 1049366 |
size | 8,707 |
This crate provides implementations of the Write
, Seek
, Read
and AsRawFd
rust traits on top of file-likb objects in PyO3.
let f = py3o_filelike::PyBinaryFile::from(o);
let mut buf = [0u8; 4];
f.read_exact(&mut buf)?;