Name | PyIPe JSON |
Version |
1.1
JSON |
| download |
home_page | None |
Summary | library to get everything about location and anti vpn |
upload_time | 2024-03-25 19:49:48 |
maintainer | None |
docs_url | None |
author | twinsszi |
requires_python | >=3.6 |
license | None |
keywords |
ip
location
country
latitude
longitude
vpn
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# PyIPe
PyIPe is a Python library for retrieving location information and implementing anti-VPN measures.
## Installation
Install PyIPe via pip:
```bash
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.
Raw data
{
"_id": null,
"home_page": null,
"name": "PyIPe",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "ip, location, country, latitude, longitude, vpn",
"author": "twinsszi",
"author_email": "adhm90879@email.com",
"download_url": "https://files.pythonhosted.org/packages/d0/30/455d8f56da45afd54b1fc6a211ce720d9cb388196d2fb5e7386db99d84ce/PyIPe-1.1.tar.gz",
"platform": null,
"description": "# PyIPe\r\n\r\nPyIPe is a Python library for retrieving location information and implementing anti-VPN measures.\r\n\r\n## Installation\r\n\r\nInstall PyIPe via pip:\r\n\r\n```bash\r\npip install PyIPe\r\n\r\n\r\n\r\n\r\nHow to Use\r\n\r\nGet Your IP Address\r\n\r\nfrom PyIPe import PyAD\r\n\r\nad = PyAD()\r\nmy_ip = ad.ip()\r\nprint(my_ip)\r\n\r\n\r\n\r\nGet IP Latitude and Longitude\r\n\r\nfrom PyIPe import PyLO\r\n\r\nlo = PyLO()\r\nip_address = \"IP ADDRESS HERE\"\r\nlat, lon = lo.get_location(ip_address)\r\nprint(lat, lon)\r\n\r\n\r\nGet IP Country and Capital\r\n\r\n\r\nfrom PyIPe import PyCU\r\n\r\ncu = PyCU()\r\ncountry, region = cu.get_country(ip_address)\r\nprint(f\"Country: {country}, Region: {region}\")\r\n\r\n\r\nImplement Anti-VPN\r\n\r\n\r\nfrom PyIPe import PyLT\r\n\r\nlt = PyLT()\r\n\r\nwhile True:\r\n try:\r\n if lt.check_ip():\r\n pass\r\n else:\r\n print(\"IP address has changed.\")\r\n break\r\n except Exception:\r\n continue\r\n\r\n\r\n\r\nNote\r\nReplace \"IP ADDRESS HERE\" with the actual IP address you want to query.\r\n\r\nThis README provides a brief overview of PyIPe functionalities. For more detailed documentation and examples, please visit the documentation page.\r\n\r\n\r\nReplace `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.\r\n\r\n",
"bugtrack_url": null,
"license": null,
"summary": "library to get everything about location and anti vpn",
"version": "1.1",
"project_urls": null,
"split_keywords": [
"ip",
" location",
" country",
" latitude",
" longitude",
" vpn"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8c226f10cf8b1897ca41db6f2b9311b9fe0beb1606ff529af99df1c9289352d0",
"md5": "58ca53f5b62c67d55168ae6ba7a7b81a",
"sha256": "19d4b708ed3e17c0457d5705aad4c02689922bd1421aacac37fc9448e965c475"
},
"downloads": -1,
"filename": "PyIPe-1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "58ca53f5b62c67d55168ae6ba7a7b81a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 2617,
"upload_time": "2024-03-25T19:49:46",
"upload_time_iso_8601": "2024-03-25T19:49:46.991837Z",
"url": "https://files.pythonhosted.org/packages/8c/22/6f10cf8b1897ca41db6f2b9311b9fe0beb1606ff529af99df1c9289352d0/PyIPe-1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d030455d8f56da45afd54b1fc6a211ce720d9cb388196d2fb5e7386db99d84ce",
"md5": "50029c31c0565814b482dde2ac622545",
"sha256": "5e3139200025f1f31e9eda5d172506c85c30b8df5806534df5d8591cf7ce6159"
},
"downloads": -1,
"filename": "PyIPe-1.1.tar.gz",
"has_sig": false,
"md5_digest": "50029c31c0565814b482dde2ac622545",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 2515,
"upload_time": "2024-03-25T19:49:48",
"upload_time_iso_8601": "2024-03-25T19:49:48.165453Z",
"url": "https://files.pythonhosted.org/packages/d0/30/455d8f56da45afd54b1fc6a211ce720d9cb388196d2fb5e7386db99d84ce/PyIPe-1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-25 19:49:48",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "pyipe"
}