edgevpn icon indicating copy to clipboard operation
edgevpn copied to clipboard

python bindings?

Open thiswillbeyourgithub opened this issue 1 year ago • 2 comments

Hi,

Is there a plan to make python bindings? Given how easy to use the shell api is i'm guessing it could be quite easy. I can see this really be used a ton for many python projects that are multiuser.

This combined with conflict free replicated data types really opens up a lot of possibilities :)

Thanks and have a nice day!

thiswillbeyourgithub avatar Aug 05 '24 06:08 thiswillbeyourgithub

I figured the easiest way if nothing is done on edgevpn's side to increase usability is to simply expose a service on all the devices and make them interact this way.

https://mudler.github.io/edgevpn/docs/concepts/overview/services/

Would be awesome if there were more details on how to use edgevpn as a library. Any help or example would help as I might be able to extend this via LLMs?

thiswillbeyourgithub avatar Dec 20 '24 13:12 thiswillbeyourgithub

I just found out about a neat python library called sh that seems to allow exactly what I had in mind: https://sh.readthedocs.io/en/latest/sections/asynchronous_execution.html#background

So i'm addinv to my todo list to do that someday.

The idea is to have a python class that calls edgevpn and opens a port. Then we can have pure python remote script to script connections!

thiswillbeyourgithub avatar Feb 09 '25 21:02 thiswillbeyourgithub

I stumbled upon a great example by prime-iroh of how to use two single string IDs to identify uniquely two nodes to create an encrypted communication channel with hole punching etc:

https://github.com/PrimeIntellect-ai/prime-iroh/blob/main/python/examples/bidirectional.py

So it solves my use case I think.

thiswillbeyourgithub avatar Oct 27 '25 09:10 thiswillbeyourgithub