Skip to content

Conversation

@andypiper
Copy link

The Python bindings got badly out-of-sync with the functionality of the C library / Go code.

This PR:

  • removes the pinned backlevel version of pybind from the Makefile, and bumps CMake minimum version to 3.5
  • binds all the Python functions against the C code generated from the Go source, and adds definitions for anything that was previously missing (src/main.cpp)
  • rewrites tailscale/tsnet.py to be a more Pythonic representation of the API, and adds docstrings
  • cleans up and improves the examples/echo.py code to use the upgraded bindings (while keeping it aligned with the C sample)

@andypiper
Copy link
Author

andypiper commented Nov 15, 2025

Refers to / fixes tailscale/tailscale#10764

@andypiper andypiper changed the title Update Python bindings and example for current C code. Update Python bindings and example for current C code Nov 15, 2025
@andypiper andypiper changed the title Update Python bindings and example for current C code Update Python bindings and example to match C library functionality Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant