TailScale util to get device details
Project description
This is a tailscale plugin for getting IP Address of specific device.
Installation
pip install tailscale-util-ns
Usage
How to get auth url to login?
from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp
if TailScaleDeviceIp.needs_login():
TailScaleDeviceIp.log('Login using web browser with URL: ' + TailScaleDeviceIp.auth_url())
How to up Tailscale?
from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp
TailScaleDeviceIp.prepare()
How to get IP Address of device?
from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp
print(TailScaleDeviceIp.get_ip_for_device(device_name='device name'))
License
This project is licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.