A package to get your/others IP information.
Project description
myIPaddress 🌎
Module Overview:
This module provides functionality to fetch IP information, including public and private IP addresses, location details, open ports, and more.
How to Use:
myIPaddress.{function_name}()
Public IP:
-
.info- Returns all public information in JSON format. -
.public_ip()- Returns the public IP address. -
.public_hostname()- Returns the public hostname. -
.public_city()- Returns the public city. -
.public_region()- Returns the public region. -
.public_country()- Returns the public country. -
.public_loc()- Returns the public location. -
.public_organization()- Returns the public organization. -
.public_postal()- Returns the public postal code. -
.public_fulladdress()- Returns a formatted string of public city, region, country, and postal code. -
.public_timezone()- Returns the public timezone.
Private IP:
.private_ip()- Returns the private IP address.
Other Networking Information:
-
.open_ports()- Returns a list of open ports on the local machine. -
.ip_probe(ip_address, indent=False)- Retrieves IP information for a specified IP address using the "https://ipinfo.io/{ip_address}/json" API.
Example Usage:
Example:
import myIPaddress as myip
ip_info = myip.public_ip()
print(f"Public IP Address: {ip_info}")
Output:
Public IP Address: 8.8.8.8
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 myipaddress-1.0.2.tar.gz.
File metadata
- Download URL: myipaddress-1.0.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b58c431f22a905e5f8f1873dbd753c2a0173fe07934d9fa6daf0ddbfaf929fbc
|
|
| MD5 |
a16882754a0f39be3912b91492c59e97
|
|
| BLAKE2b-256 |
aa9e9982b7d841715f83b55a458079354cf58a9f5383dc7cd98ce32c9aba1e12
|
File details
Details for the file myipaddress-1.0.2-py3-none-any.whl.
File metadata
- Download URL: myipaddress-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c27efcbfe4b8c43a9809631bb5bf10dba6c61f672d1f4941546340c7d98c07d
|
|
| MD5 |
7c902bfd197ffa882f9359a7d15c5601
|
|
| BLAKE2b-256 |
68e8c34ba7a68dbe0cb0c0193d60c74db95ed7d81f1c794589650229e5ddc657
|