Asynchronous client for the Tailscale API.
Repo frenck/python-tailscale, read from GitHub 3 h ago. frenck has not joined Take My Repo.
The client now covers the whole Tailscale API. Every endpoint is checked against the official OpenAPI spec, and tested against a real tailnet.
device_id, node_id, hostname, and name are always set. Other fields are None when the API leaves them out, which it does a lot for devices shared in from another tailnet. Lists are empty then, and is_external is False.None, not False or a made up default.tailnet_lock_key is gone, as the API has no such field on users. profile_pic_url is filled now; it was always empty.TailscaleResponseError, with the HTTP status and the reason the API gave. A 401 raises TailscaleUnauthorizedError and a 403 TailscalePermissionError; both are still a TailscaleAuthenticationError. A 403 no longer throws away the OAuth token.., or .. raises a ValueError.tailscale-api instead of tailscale, so it no longer clashes with the official Tailscale client.tailscale-api dump <endpoint> prints the raw API response, for debugging and test fixtures.