Skip to main content

I just updated the instructions in case you want to use my updated code

Installation

#windows/ Linux
pip install ipwho
#linux & termux if above does not work
pip3 install ipwho
# OR
$ git clone https://github.com/techdjay/ipwho
$ cd ipwhois && pip3 install requests
$ clear && python3 main.py

using command line type ipwho ip-address

Please Note that this has been updated to show only the below instructions, as most people want this output regularly

# ipwhois 8.8.8.8
IP: 8.8.8.8
Organization: Google LLC
ISP: Google LLC

using import package from ipwhois import ipwhois

>>> from ipwhois import ipwhois
>>>
>>> ipwhois('0') # zero string default local IP
{
"asn":"AS4818",
"city": "Batu Pahat",
"completed_requests": 2,
"continent": "Asia",
"continent_code": "AS",
"country": "Malaysia",
"country_capital": "Kuala Lumpur",
"country_code": "MY",
"country_flag": "https://cdn.ipwhois.io/flags/my.svg",
"country_neighbours": "BN,TH,ID",
"country_phone": "+60",
"currency": "Malaysian Ringgit",
"currency_code": "MYR",
"currency_plural": "Malaysian ringgits",
"currency_rates": "4.146",
"currency_symbol": "RM",
"ip": "115.164.173.247",
"isp": "DiGi Telecommunications Sdn Bhd., Digi Internet Exchange",
"latitude": "1.849442",
"longitude": "102.9288341",
"org": "DiGi Telecommunications Sdn Bhd., Digi Internet Exchange",
"region": "Johor",
"success": true,
"timezone": "Asia/Kuala_Lumpur",
"timezone_dstOffset": "0",
"timezone_gmt": "GMT +8:00",
"timezone_gmtOffset": "28800",
"timezone_name": "Malaysia Time",
"type": "IPv4",
}

Metadata

Release files for ipwho 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipwho 0.1.2
File Size Uploaded
ipwho-0.1.2.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ipwho 0.1.2
File Interpreter ABI Platform
ipwho-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 14.0 kB

Release files / ipwho-0.1.2.tar.gz

Download URL ipwho-0.1.2.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bb2a62a2d4f940676f2dd7087665c83517005908f69ad92db3a498dd6bb6a953
BLAKE2b-256 checksum
How to use checksums
c562f9a38c5014615e3ce873134155808c757ea85777e7e84f00589c33f76ce1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.14

Release files / ipwho-0.1.2-py3-none-any.whl

Download URL ipwho-0.1.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fdb9d11f22a10d2a087df24c17d238720313054b78f096cf4a94911f58e7ac9e
BLAKE2b-256 checksum
How to use checksums
b6bf7aa6e9335ed10c609e5b29cd93116a53ed41d6b0a68267582fbc5f9c655b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.14

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page