PyIPe
PyIPe is a Python library for retrieving location information and implementing anti-VPN measures.
Installation
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.
Release files for PyIPe 1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PyIPe-1.1.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PyIPe-1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.1 kB
Release files / PyIPe-1.1.tar.gz
| Download URL | PyIPe-1.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e3139200025f1f31e9eda5d172506c85c30b8df5806534df5d8591cf7ce6159
|
|
BLAKE2b-256 checksum How to use checksums |
d030455d8f56da45afd54b1fc6a211ce720d9cb388196d2fb5e7386db99d84ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / PyIPe-1.1-py3-none-any.whl
| Download URL | PyIPe-1.1-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
19d4b708ed3e17c0457d5705aad4c02689922bd1421aacac37fc9448e965c475
|
|
BLAKE2b-256 checksum How to use checksums |
8c226f10cf8b1897ca41db6f2b9311b9fe0beb1606ff529af99df1c9289352d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|