Skip to main content

Get your public IP address and there Details

Project description

Public IP

Get your public IP address and there Details

Install

$ pip install fetchip

Usage

Get Public IP:

import fetchip

fetchip.get_public_ip()
#=> 157.51.77.248

By using this user can easly get there public ip address.

Get Local ip

import fetchip

print(fetchip.get_public_ip())
#=> 192.168.1.18

By using this user can easly get there local private ip address.

Get IP region

import fetchip

print(fetchip.get_region())
#=> New Delhi

By using this user can easly get there ip region.

Get IP internet provider

import fetchip

print(fetchip.get_internet_provider())
#=> Airtel Broadband

By using this user can easly get there ip internet provider.

Get IP timezone

import fetchip

print(fetchip.get_timezone())
#=> Asia/Kolkata

By using this user can easly get there ip timezone.

Get IP country

import fetchip

print(fetchip.get_country())
#=> IN

By using this user can easly get there ip country.

Get IP Details as Dictionary

import fetchip

print(fetchip.get_dic_result())
#=> {'ip':'192.168.18.2','public_ip':'157.51.77.248','region':'New Delhi','contry':'IN','internet provider': 'Airtel Broadband','timezone':'Asia/Kolkata'}

By using this user can easly get there ip country.

Get Help

There are few ways to get help:

  1. Please post questions on Stack Overflow. You can open issues with questions, as long you add a link to your Stack Overflow question.

  2. For bug reports and feature requests, open issues.

  3. For direct and quick help, you can email me.

Thanks!

License

MIT

Copyright 2020 lenin Royal

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

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

Source Distribution

fetchip-1.0.tar.gz (3.6 kB view hashes)

Uploaded Source

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