ts_python
Python bindings for tailscale-rs.
At the moment, this exposes facilities for connecting to a tailnet and binding network sockets that have access to the tailnet.
Code Sample
# connect to the tailnet:
= await
# bind a udp socket on this node's ipv4 address:
= await
= await
# send a message to a peer once per second
await
await
To run this demo:
$ TS_RS_EXPERIMENT=this_is_unstable_software python demo.py
Building and Usage
We're not up on pypi, so you can't pip install tailscale yet. To use the module, you'll
need to build it. The best way to do that is with maturin:
# In the project where you want to use the tailscale bindings:
# Then in tailscale-rs:
&&