extism / python-pdk

Write Extism plugins in Python
https://extism.org
BSD 3-Clause "New" or "Revised" License
12 stars 1 forks source link

Proof-of-Concept Python PDK: Which runtime / path to go down? #2

Closed bhelx closed 2 months ago

bhelx commented 1 year ago

Get a python PDK proof of concept working using cpython

bhelx commented 1 year ago

Currently debugging why python can't find its system libraries right now, but have a path forward to the proof of concept. Will be updating here and get a PR up soon.

XavierGeerinck commented 8 months ago

Any update on this? Any chance of merging it with componentize-py?

bhelx commented 8 months ago

I don't have time to pick this up at the moment. But I think we're close with regards to this path forward working. Although I think @chrisdickinson may have some other ideas in mind as he's dug deep into componentize-py.

vincent-lecrubier-skydio commented 7 months ago

Hi, we'd love to help, could you open a Draft PR or something?

bhelx commented 7 months ago

Thank you! Yes, I'll push up the code today into main and write up a readme. It's been a while though, so open to different paths on solving the problem.

bhelx commented 7 months ago

@vincent-lecrubier-skydio i just realized that the code is in the poc branch: https://github.com/extism/python-pdk/tree/poc

The build instructions are in build.sh.

Come find me in the #python-pdk channel in our Discord if you want to chat about it in real time https://extism.org/discord

bhelx commented 5 months ago

Some other options: https://github.com/extism/python-pdk/issues/3#issue-2335500430

bhelx commented 5 months ago

Note that I have gotten a POC to work with pyo3. The branch is here: https://github.com/extism/python-pdk/tree/pyo3-poc

https://www.loom.com/share/ada29670159143eea905836593674b27

Someone in Discord has started poking around on going down this path so i'd recommend reaching out in discord if you want to help them

zshipko commented 2 months ago

Just replaced the main branch with pyo3-poc - I have most of the Extism host function hooked up, I just need to get imports working!