PyO3 / PyO3/pyo3

Simplify calling python from rust

Open
#5,527 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
16.2k
Forks
1k
Avg merge
2d 6h
Merged PRs (30d)
66

Description

Hi!
It seems that pyo3 was mostly focussed on creating binary python libraries using rust code. It also is able to call python from rust, but it somehow never really felt easy.

So I just created an own crate, based on pyo3 to make simplify calls:
https://github.com/marcomq/async_py

I created an own thread for python and used tokio channels to communicate to the thread. Not sure if this overhead was really necessary, but it kind of simplified things for me.

Anyway, I just wanted to let you know that I created this crate. If you like to, you can use the code. Or maybe somebody else is interested in this too.

If you like to you can immediately close this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No PyO3 file, test, or entry point is named. Start by reviewing the linked async_py crate and comparing its proposed Rust/Python calling API with PyO3; the issue provides no concrete acceptance criteria beyond considering whether the crate’s approach should be used.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, rust
Domain
developer-experience
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.