RustPython / RustPython/RustPython

Looking for a Proxy implementation similar to quickjs_runtime

Open
#5,835 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
22.4k
Forks
1.5k
Avg merge
16h 33m
Merged PRs (30d)
165

Description

Summary

I have implemented a JS proxy using quickjs_runtime where i have my own custom classes and methods implemented in rust and can be callable from javascript methods.

https://github.com/HiRoFa/quickjs_es_runtime

Ex: I have

Javscript code
class PdfDocument {

}

this.doc = new io.pdf.PdfDocument(__id__, docProps);

io.pdf.PdfDocument is a proxy and implemenation in rust using JsProxy of quickjs_runtime.

Rust code
 let proxy = JsProxy::new()
                .namespace(&["io", "pdf"])
                .name("PdfDocument")

Is there any similar way to implement python as well?

Ex: Implementaion should be completely in rust where as calling is from Python.

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

The issue does not name a RustPython file, test, or entry point. Start by locating RustPython’s existing mechanisms for exposing Rust-implemented classes to Python, then compare them with the requested proxy behavior shown in the issue. Done would require a documented feasibility answer or an agreed implementation scope.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.