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.
Source Distribution
File details
Details for the file tailscale-util-ns-1.0.1.tar.gz
.
File metadata
- Download URL: tailscale-util-ns-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
bb81cfc11230b111f9f618a748ab023a8c294b30d67b44253fd23b492a67008b
|
|
MD5 |
80ad5b7168b46344bcbe89722f69d616
|
|
BLAKE2b-256 |
8e16c96189cfff6fe10c29d65b72671e1bba70107d7e8f6c9e034007c39cf114
|