Metadata-Version: 2.1
Name: tailscale-util-ns
Version: 2.0.1
Summary: TailScale util to get device details
Home-page: https://github.com/nishithcitc/tailscale-util-ns
Author: Nishith Shah
Author-email: nshthshah@gmail.com
License: UNKNOWN
Platform: UNKNOWN
License-File: LICENSE

tailscale-util-ns
=================

|PyPI version| |Downloads| |MIT license| |tailscale|

This is a tailscale plugin for getting IP Address of specific device.

Installation
------------

::

   pip install tailscale-util-ns

Usage
-----

Add ``tailscale.ini`` file into the root directory.

::

   [config]
   tskey : <tskey-xxxxxxxxx>
   advertise-tags : tag:<tag_name>

How to up Tailscale?
~~~~~~~~~~~~~~~~~~~~

.. code:: python

       from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

       TailScaleDeviceIp()

How to get IP Address for DNS?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

       from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

       TailScaleDeviceIp().get_ip_for_dns('prtg02').strip()

How to get IP Address for Device?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: python

       from tailscale_ns.tailscale_device_ip import TailScaleDeviceIp

       TailScaleDeviceIp().get_ip_for_device(device_name='PRTG02')

Author
------

Nishith Shah - `github <https://github.com/nishithcitc>`__

License
-------

This project is licensed under the `MIT license </LICENSE>`__.

.. |PyPI version| image:: https://badge.fury.io/py/tailscale-util-ns.svg
   :target: https://badge.fury.io/py/tailscale-util-ns
.. |Downloads| image:: https://pepy.tech/badge/tailscale-util-ns
   :target: https://pepy.tech/project/tailscale-util-ns
.. |MIT license| image:: http://img.shields.io/badge/license-MIT-brightgreen.svg
   :target: /LICENSE
.. |tailscale| image:: https://img.shields.io/badge/tailscale-%3E%3D0.2.0-blue.svg
   :target: https://img.shields.io/badge/tailscale-%3E%3D0.2.0-blue.svg


