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
The easiest way to get the library is through pypi:
$ pip install tailscale
In development
If you want to use the module from within this repo, 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:
&&