A CLI tool for getting information about an IP address using ipinfo.io
Project description
ipinfo-cli
A Command Line Interface (CLI) tool for retrieving information about IP addresses using the ipinfo.io API.
Installation
To install ipinfo-cli, ensure you have Python and pip installed on your system. Then, run the following command:
pip install ipinfo-cli
Usage
After installation, you can use ipinfo-cli to get information about a given IP address by running:
ipinfo-cli --ip <IP_ADDRESS>
A ipinfo.io token can be saved for further API information and negating rate limiting. This can be done by running:
ipinfo-cli --token <TOKEN>
# deleting the saved token
ipinfo-cli --delete-token
Saving the results to a JSON file can be done by running the following with the EXACT directory path and JSON file name:
ipinfo-cli --ip <IP_ADDRESS> --json <DIRECTORY>
# example
ipinfo-cli --ip <IP_ADDRESS> --json /path/to/file/output.json
| Argument | Description |
|---|---|
| --ip | Used to obtain information from a given IP address outputted in to readable data in the terminal. |
| --json | Saves the output to a JSON file in a given directory. |
| --token | Saves your ipinfo.io token to a file for future requests. |
| --delete-token | Deletes your ipinfo.io token to be replaced by another at another time. |
Author
License
Licenced under the MIT Licence
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ipinfo-cli-0.1.4.tar.gz.
File metadata
- Download URL: ipinfo-cli-0.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3853fa1f76c204ff720fa213c559a3a8791ccbeef2eaa6dc4ea5ce67f19ff983
|
|
| MD5 |
a4f68fab74893b6e60f994a8ab442860
|
|
| BLAKE2b-256 |
7f5c654c568bc1c962c74fd92e9407cd4278b80ff718feeca0d0702fca5fb986
|
File details
Details for the file ipinfo_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: ipinfo_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
598a4e8b6df5a28f9265cae19bbc10d762d5a35e4e5eff761abd1ac16777b781
|
|
| MD5 |
e37bf1044a9a857c3f53030d44878096
|
|
| BLAKE2b-256 |
37ee86f7dae6a0f2001d55e2ae99272422701c0617b74a77e4b86124372d6b1f
|