Skip to main content

library to get everything about location and anti vpn

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyIPe-1.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyIPe-1.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file PyIPe-1.1.tar.gz.

File metadata

  • Download URL: PyIPe-1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for PyIPe-1.1.tar.gz
Algorithm Hash digest
SHA256 5e3139200025f1f31e9eda5d172506c85c30b8df5806534df5d8591cf7ce6159
MD5 50029c31c0565814b482dde2ac622545
BLAKE2b-256 d030455d8f56da45afd54b1fc6a211ce720d9cb388196d2fb5e7386db99d84ce

See more details on using hashes here.

File details

Details for the file PyIPe-1.1-py3-none-any.whl.

File metadata

  • Download URL: PyIPe-1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for PyIPe-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 19d4b708ed3e17c0457d5705aad4c02689922bd1421aacac37fc9448e965c475
MD5 58ca53f5b62c67d55168ae6ba7a7b81a
BLAKE2b-256 8c226f10cf8b1897ca41db6f2b9311b9fe0beb1606ff529af99df1c9289352d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page