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 details)

Uploaded Source

File details

Details for the file fetchip-1.0.tar.gz.

File metadata

  • Download URL: fetchip-1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for fetchip-1.0.tar.gz
Algorithm Hash digest
SHA256 4f0112ec17907d3f6913a19132be6fda133f8ad721c43be1e1006f9d6baf9ece
MD5 25039d36ce5cc564fd29a9ece0578310
BLAKE2b-256 8a03cda42e1c75ce18e7eb36c2c58739a640b05a0e41b252d9009a22b79a4c16

See more details on using hashes here.

Supported by

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