RustPython icon indicating copy to clipboard operation
RustPython copied to clipboard

Looking for a Proxy implementation similar to quickjs_runtime

Open BharathIO opened this issue 6 months ago • 1 comments

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.

BharathIO avatar Jun 25 '25 07:06 BharathIO

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

BharathIO avatar Jun 26 '25 14:06 BharathIO