Ik-cli
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
time timestamp convert
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
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
Metadata
Release files for ik-cli 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ik-cli-0.1.6.tar.gz | 6.4 kB | Without provenance | Details for ik-cli-0.1.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ik_cli-0.1.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ik_cli-0.1.6-py2.py3-none-any.whl |
Total release size: 13.7 kB
Release files / ik-cli-0.1.6.tar.gz
| Download URL | ik-cli-0.1.6.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e2c0f3fc73578c75271e7bd811c8b92d956bcde4d755c3ffa87c7026583f3a9
|
|
BLAKE2b-256 checksum How to use checksums |
8c76200f279a057384b5472e6a2845750da5f2a001ee3c4d56440312fa41db7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
|
Release files / ik_cli-0.1.6-py2.py3-none-any.whl
| Download URL | ik_cli-0.1.6-py2.py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
3539080f7e0158f18d9345987c5a1f9ae907faba3ef90207756eec8d7712abca
|
|
BLAKE2b-256 checksum How to use checksums |
346a50aeb28b913b0f1618e4859d3eb0d0b60d1de4f7bb044d73512183c021e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8
|
Security for ik-cli 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.