TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

PyO3: Python Rust binding

138 pointsby blacksmythealmost 8 years ago

5 comments

fafhrd91almost 8 years ago
I also wrote asyncio event loop, based on tokio-rs, using this binding. So it is possible to write complex python extensions in Rust.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;PyO3&#x2F;tokio" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PyO3&#x2F;tokio</a>
kevinnkalmost 8 years ago
Very cool! Good binding libraries between C++ and Python have been super useful for my projects in the past, and I&#x27;m glad to see something similar developed for Rust.<p>For anyone reading the comments first, this is a fork of rust-cpython. The motivation for the fork is linked from the Readme: <a href="https:&#x2F;&#x2F;github.com&#x2F;PyO3&#x2F;pyo3&#x2F;issues&#x2F;55" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;PyO3&#x2F;pyo3&#x2F;issues&#x2F;55</a>
Steeevealmost 8 years ago
It looks like you forked because rust-cpython was abandoned. I see that Dan Grunwald pushed a commit in today after no activity since May. He probably just went on summer vacation.
评论 #14861153 未加载
welderalmost 8 years ago
So this is for running Rust code from Python... Just curious, is there an existing way to do the opposite and run Python code from Rust?
评论 #14861906 未加载
Cieplakalmost 8 years ago
pybind11 is a similar library, but for interfacing with C++ from Python:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;pybind&#x2F;pybind11" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pybind&#x2F;pybind11</a>