Look up location, ISP, and more about an IP address from multiple sources
Project description
iplooker
This script will perform a lookup for an IP address (IPv4 or IPv6) using multiple sources. It can be used to get more information about an IP address, including the country, region, city, ISP, and any organization that may be associated to it.
Usage
The script's primary purpose is looking up another IP address, but it can also tell you your current public IP address. You can combine the two to get a lookup for your public IP to see what other people might see if they were to look you up.
The script can also provide additional information from some services, including security-related information about an IP including whether it's a known VPN, proxy, Tor exit node, or datacenter. It can also provide ASN and IP ranges if available.
Here are the commands you can use:
# Running with no arguments will prompt for an IP
iplooker
# You can specify an IP as part of the command
iplooker 12.34.56.78
# You can use `-m` or `--me` to check your public IP
iplooker -m
iplooker --me
# You can do both with `-l` or `--lookup`
iplooker -l
iplooker --lookup
# Look up the ASN
iplooker -a
iplooker --asn
# Get the IP range the address is part of
iplooker -r
iplooker --range
Installation
Install from pip with:
pip install iplooker
Sources
It retrieves information from the following sources:
- ip-api.com
- ipapi.co
- ipapi.is
- ipdata.co
- ipgeolocation.io
- ipinfo.io
- iplocate.io
NOTE: The script currently uses my own API keys (obfuscated) for the lookups so that anyone can just download and go, but obviously this has potential for abuse. In the event that the script sees a lot of downloads or usage, I'll have to update it to default to free sources only with a bring-your-own-key approach, so please use responsibly!
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 iplooker-0.5.1.tar.gz.
File metadata
- Download URL: iplooker-0.5.1.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa619b041527a2ccd30ad020f1b0f517fc57a349b3a5d0b165237d89c18429ba
|
|
| MD5 |
0496f51cd834d7aaa47355bc1a1ac0fb
|
|
| BLAKE2b-256 |
b185d50923addf232bfe37764bd6095b1518d5a13f61c388b06a9308f90a9f91
|
Provenance
The following attestation bundles were made for iplooker-0.5.1.tar.gz:
Publisher:
python-publish.yml on dannystewart/iplooker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iplooker-0.5.1.tar.gz -
Subject digest:
fa619b041527a2ccd30ad020f1b0f517fc57a349b3a5d0b165237d89c18429ba - Sigstore transparency entry: 745417428
- Sigstore integration time:
-
Permalink:
dannystewart/iplooker@1ffddc65a8e0db037a913b715ffb41a1616e91e7 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/dannystewart
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1ffddc65a8e0db037a913b715ffb41a1616e91e7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file iplooker-0.5.1-py3-none-any.whl.
File metadata
- Download URL: iplooker-0.5.1-py3-none-any.whl
- Upload date:
- Size: 20.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac61e50270f7837cd80737be8442eb110433af99f119f03d91a7fb8596738fb5
|
|
| MD5 |
dcfbbeb2224c1b3d770d150cf45c9058
|
|
| BLAKE2b-256 |
462cb1e39818433d7eedfab9b7bf6ac480592b8f7c555e6e04a59a27b14c658a
|
Provenance
The following attestation bundles were made for iplooker-0.5.1-py3-none-any.whl:
Publisher:
python-publish.yml on dannystewart/iplooker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
iplooker-0.5.1-py3-none-any.whl -
Subject digest:
ac61e50270f7837cd80737be8442eb110433af99f119f03d91a7fb8596738fb5 - Sigstore transparency entry: 745417444
- Sigstore integration time:
-
Permalink:
dannystewart/iplooker@1ffddc65a8e0db037a913b715ffb41a1616e91e7 -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/dannystewart
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@1ffddc65a8e0db037a913b715ffb41a1616e91e7 -
Trigger Event:
push
-
Statement type: