Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement HTTP bindings for Python #176

Open
Angelmmiguel opened this issue Jul 12, 2023 · 0 comments
Open

Implement HTTP bindings for Python #176

Angelmmiguel opened this issue Jul 12, 2023 · 0 comments
Labels
🚀 enhancement New feature or request 🔨 sdks Issues related to language SDKs

Comments

@Angelmmiguel
Copy link
Contributor

Angelmmiguel commented Jul 12, 2023

Is your feature request related to a problem? Please describe.

The goal for this task is to allow Python workers to perform HTTP requests using the new bindings from #165. Note that wws was using the Python runtimes from Wasm Language Runtimes. Since we plan to start adding custom features for Wasm Workers Server, we need to create now a Python kit.

To create this kit, we will reuse the assets from Wasm Language Runtimes. In this specific case, we want to reuse the libpython Wasm library and load it in a kit based on Rust. Then, we will use a crate like pyo3 to interact with the library.

This article explains how to embed libpython in Rust. Other kits like JavaScript uses a similar approach, but changing libpython with QuickJS. The outcome will be very similar and we will publish it as a new version.

Describe the solution you'd like

I want a new Python kit that allows me to perform HTTP requests. All my existing workers should work without any modification. The kit should use WIT files to define the required bindings, so it's easy to extend it in the future.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 enhancement New feature or request 🔨 sdks Issues related to language SDKs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant