Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

My common cli tool.

Project description


Build Status


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]...

  -v, --verbose  Enable verbose mode.
  -h, --help     Show this message and exit.

  ip  get ip info
  time  timestamp convert

ip info

Now you can use ip subcommand to get point ip info from

ik_cli ip

# the echo is:
ASN:             15169
COUNTRY:         United States
LATITUDE:        37.751
LONGITUDE:       -97.822
TIMEZONE:        America/Chicago

If you want get your host ip, you can do as follows:

ik_cli ip -m host

# echo
Your IP:
Method:   UDP

time convert

Now you can change string time (like: 2019-8-1 or 2019-8-2 12.09.11) to timestamp. Or change timestamp (like 1565007913) to string time.

Notice: the timezone depend on your machine's timezone.

ik_cli time '2019-08-05 13:14:11' 
# echo 
Timestamp:  1564982051
Time:       2019-08-05 13:14:11

ik_cli time 1564982100 
# echo
Timestamp:  1564982100
Time:       2019-08-05 13:15:00

Project details

Download files

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

Files for ik-cli, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size ik_cli-0.1.6-py2.py3-none-any.whl (7.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ik-cli-0.1.6.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page