Skip to main content

Various CLIs created from dt-* packages

Project description

dt-cli-tools

CLI tools using the dt suite of helpers (dt-misc, dt-console, dt-net)

For detailed usage information, supply -h or --help to command line.

ex:  ip-helper -h

ip-helper

Retrieve IP information on Local and Internet IP addresses.

This utility interfaces with the free ipinfo.io site. The ipinfo.io site requires a user token which is free.

Features:

- IP Cache for to increase perfomance and and limit calls to ipinfo.io
- Command line interface, or console prompt menu.
- Commands to manage cache (list, clean, search,...)
- Cached IP entry will auto-refresh if it is more than 48 hours old.

lan-clients

Create report of all identified clients on local network.

Entries are identified thru Address Resolution Protocal (ARP) cache or broadcast. Default approach is ARP cache, however Broadcast (-b parameter) is more thorough, but takes more time.

Features:

  • Identifies LAN Clients and displays associated details:

    • IP Address
    • Hostname
    • MAC Address
    • MAC Vendor
  • Uses ARP Cache or ARP Broadcast to identify clients

  • Can output results into a pipe '|' delimited file

port-check

This module checks for open[/closed] ports on target host(s).

Features:

- Check a port, a list of ports, range of ports or common ports
- Limit output to only show open ports
- Check multiple hosts via an input file of hostnames(and ports)
- Threaded to improve performance for large number of ports

set-api-tokens

This module creates the token file and stores the tokens used for 3rd party interfaces.

Visit the Token registration URL to aquire a FREE token for the desired service, then run set-api-tokens (from dt-foundation package) to cache the token locally for the dt-* routines.

Service Function Token registration URL
ip-info.io Retrieve IP metadata https://ipinfo.io/missingauth
weatherapi.com Current weather conditions https://www.weatherapi.com/signup.aspx
geocode.maps.co GeoCode lookup based on address, ip, etc.. https://geocode.maps.co/join/

speak

Speak text from command-line or text file.

Features:

- Input from command line or file
- Selectable accents (see --list option for values)
- Control cadence/speed of voice

weather-cli

Weather command line interface

Get weather for any location from your command line!

Features:

  • Get weather (current, forecast or alerts)
  • Specify location as GPS coordinates, an address, a landmark, or from your internet IP location
  • Specify future dates for weather forecast
  • Have device 'speak' the weather

wol-cli

Send Wake-on-LAN (WOL) packet to device.

WOL is a standard for Ethernet and Token-Ring which allows a computer to be turned on or awakened from sleep-mode via a network message.

A 'magic' packet is sent to the MAC address of the target device, which if enabled, will signal the device to wake-up.

This module allows the user to send WOL to hostnames and IPs in addition to the MAC address. This is accomplished by leveraging a cache that this program maintains which relates the MAC to IP and hostname.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dt_cli_tools-0.1.30.tar.gz (26.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dt_cli_tools-0.1.30-py3-none-any.whl (33.5 kB view details)

Uploaded Python 3

File details

Details for the file dt_cli_tools-0.1.30.tar.gz.

File metadata

  • Download URL: dt_cli_tools-0.1.30.tar.gz
  • Upload date:
  • Size: 26.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.9 Windows/10

File hashes

Hashes for dt_cli_tools-0.1.30.tar.gz
Algorithm Hash digest
SHA256 a330f75aa18597e67cb69cb36fb699a98bb0b924deb2161f620ced0c35ff51a6
MD5 38e40e3059e613ffe5e00c94d86bb8b8
BLAKE2b-256 e2242971f0036d8fecc3c4e15aa06fcbdfe4d672ad0b08def6b9a68e56b595bc

See more details on using hashes here.

File details

Details for the file dt_cli_tools-0.1.30-py3-none-any.whl.

File metadata

  • Download URL: dt_cli_tools-0.1.30-py3-none-any.whl
  • Upload date:
  • Size: 33.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.11.9 Windows/10

File hashes

Hashes for dt_cli_tools-0.1.30-py3-none-any.whl
Algorithm Hash digest
SHA256 c5997cabfa476d6a33bd46bee0218a8731031c93c57132c0656af035d32ccc8d
MD5 00152e3abab9fbc012115e1212534d70
BLAKE2b-256 cc0df46d340ba9ff907445f04538f30f18c90561b19c20b2aff9fd07b9fce2d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page