My common cli tool.
This application provides some common command line tools for me.
You can use pip to install this tool.
pip install ik-cli
You can use main command to show all subcommands.
ik_cli -h # the echo are: Usage: ik_cli [OPTIONS] COMMAND [ARGS]... Options: -v, --verbose Enable verbose mode. -h, --help Show this message and exit. Commands: ip get ip info
Now you can use
ip subcommand to get point ip info from
ik_cli ip 126.96.36.199 # the echo is: IP: 188.8.131.52 ASN: 15169 CONTINENT_CODE: NA COUNTRY: United States COUNTRY_CODE: US LATITUDE: 37.751 LONGITUDE: -97.822 ORGANIZATION: Google LLC TIMEZONE: America/Chicago
If you want get your host ip, you can do as follows:
ik_cli ip -m host # echo Your IP: 192.168.0.2 Method: UDP
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for ik_cli-0.1.4-py2.py3-none-any.whl