Skip to main content

My common cli tool.

Project description

Ik-cli

Build Status

Introduction

This application provides some common command line tools for me.

Install

You can use pip to install this tool.

pip install ik-cli

Usage

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 ip.sb.

ik_cli ip 8.8.8.8

# the echo is:
IP:              8.8.8.8
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

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

ik-cli-0.1.4.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

ik_cli-0.1.4-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ik-cli-0.1.4.tar.gz.

File metadata

  • Download URL: ik-cli-0.1.4.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for ik-cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 9f87e52618fff9c24f7c9175a120607c41cd9d584b3748ff8208a18dcbf88ebe
MD5 91bd7fae7f6ee0ba6c6c179cd8e6c5c9
BLAKE2b-256 0c1b38ae1891b7f5efd4b788f7b2a02cad4a9d67a182e7023c18647b12a8eae5

See more details on using hashes here.

File details

Details for the file ik_cli-0.1.4-py2.py3-none-any.whl.

File metadata

  • Download URL: ik_cli-0.1.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for ik_cli-0.1.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a31eef24af2f4632b3916ef883cb847add3a63962ad642d00c09d9911dcd3086
MD5 70473fd02ba79f94853846b301347162
BLAKE2b-256 20ea93a577561b7b4a4045ccbbfc62ad6a4b08326abf042d010488b214ae8c5e

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