Skip to content

推荐一个EveryThing2EveryThing的Python第三方库 #34

@John-is-playing

Description

@John-is-playing

中文
everything2everything 是一个 Python 类型转换库,为所有标准数据类型(如 liststrint)和主流第三方库(NumPy、PyTorch、TensorFlow、Pandas、JAX、xarray 等)提供了统一的转换接口。告别记忆不同框架的 .numpy().from_numpy().cpu() 等繁琐语法,用 e2e_list()TypeConverter.convert() 就能轻松将任意对象转换为任意目标类型。它类型安全、内置缓存提升性能,并自动处理 CPU/GPU 设备,让你的代码更简洁、更可靠。

English
everything2everything is a Python library that provides a unified conversion interface for all standard data types (like list, str, int) and popular third‑party libraries such as NumPy, PyTorch, TensorFlow, Pandas, JAX, xarray, and more. Stop memorizing different .numpy(), .from_numpy(), or .cpu() calls – with e2e_list() or TypeConverter.convert() you can seamlessly transform any object into any target type. It’s type‑safe, fast (with built‑in caching), and automatically handles CPU/GPU devices, making your code cleaner and more robust.

Project Link: Everything to Everything

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions