
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
PyIPe is a Python library for retrieving location information and implementing anti-VPN measures.
Install PyIPe via pip:
pip install PyIPe
How to Use
Get Your IP Address
from PyIPe import PyAD
ad = PyAD()
my_ip = ad.ip()
print(my_ip)
Get IP Latitude and Longitude
from PyIPe import PyLO
lo = PyLO()
ip_address = "IP ADDRESS HERE"
lat, lon = lo.get_location(ip_address)
print(lat, lon)
Get IP Country and Capital
from PyIPe import PyCU
cu = PyCU()
country, region = cu.get_country(ip_address)
print(f"Country: {country}, Region: {region}")
Implement Anti-VPN
from PyIPe import PyLT
lt = PyLT()
while True:
try:
if lt.check_ip():
pass
else:
print("IP address has changed.")
break
except Exception:
continue
Note
Replace "IP ADDRESS HERE" with the actual IP address you want to query.
This README provides a brief overview of PyIPe functionalities. For more detailed documentation and examples, please visit the documentation page.
Replace `URL_TO_DOCUMENTATION` with the actual URL to your documentation page if you have one. This README structure should display neatly on PyPI and provide users with clear instructions on how to install and use your library.
FAQs
library to get everything about location and anti vpn
We found that PyIPe demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.