Skip to main content

получение подробной информации о ip, с поддержкой прокси

Project description

че это

получение подробной информации о ip.

поддерживает прокси: socks5/4, https(s).

асинхронный и синхронный вариант.

как использовать:

сначала установить: pip install prlps_ipinfo

пример использования:

# асинхронный вариант:
from prlps_ipinfo import async_ipinfo

async def your_async_func():
    my_ip = await async_ipinfo()  # информация о текущем ip соединения
    print(my_ip)
    proxy_ip = await async_ipinfo(proxy='socks5://prolaps.io:13115')  # информация о ip через прокси
    print(proxy_ip)
    someone_ip = await async_ipinfo(ip='34.106.124.244')  # информация о чужом ip
    print(someone_ip)


# асинхронный вариант с созданием экземпляра класса:
from prlps_ipinfo import IpInfo

async def your_another_async_func():
    my_ip_info = IpInfo()
    print(my_ip_info.get_ip_info())
    print(my_ip_info.ip)
    
    proxy_ip_info = IpInfo(proxy='http://127.0.0.1:8080')
    print(proxy_ip_info.get_ip_info())
    print(proxy_ip_info.ip)
    
    someone_ip_info = IpInfo(ip='34.106.124.244')
    print(someone_ip_info.get_ip_info())
    print(someone_ip_info.ip)


# синхронный вариант:
from prlps_ipinfo import sync_ipinfo

my_ip = sync_ipinfo()  # информация о текущем ip соединения
print(my_ip)
proxy_ip = sync_ipinfo(proxy='socks5://prolaps.io:13115')  # информация о ip через прокси
print(proxy_ip)
someone_ip = sync_ipinfo(ip='34.106.124.244')  # информация о чужом ip
print(someone_ip)

играйся 😊

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

prlps_ipinfo-0.0.1b0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

prlps_ipinfo-0.0.1b0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file prlps_ipinfo-0.0.1b0.tar.gz.

File metadata

  • Download URL: prlps_ipinfo-0.0.1b0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.2

File hashes

Hashes for prlps_ipinfo-0.0.1b0.tar.gz
Algorithm Hash digest
SHA256 b9bc79f9c7682aed83faaf86f8d32406212517c830d6b3881591b4a3a4b7c850
MD5 bfcc7e73664ca014582c4366f944bc88
BLAKE2b-256 b1354e1b0dbb120eac30ece4e9cfda1d558c07354d7ddcf0810b30a087907eb7

See more details on using hashes here.

File details

Details for the file prlps_ipinfo-0.0.1b0-py3-none-any.whl.

File metadata

File hashes

Hashes for prlps_ipinfo-0.0.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c440c5e1de375551f1729c79c8cf6a3718b8b39e58a89d9f6eaa5f7c240492
MD5 8cddddd56e3f50ebfbb68b30953cc86f
BLAKE2b-256 057d5890dc42dc5d2d8aeeac4b2ad1d4f868d6af70c2095c6cc0aea8608d7ed6

See more details on using hashes here.

Supported by

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