gle_ip_info
glip is a module for retrieve ip address like local-ip, global-ip, external-ip as string.
Installation
Run the following to install:
'''python pip install gle_ip_info '''
Usage
''' from gle_ip_info import IP
Ip = IP() # Initialize the IP class
os = Ip.Os # To get your os info.
dev = Ip.devices # Gives connected devices as list.
local_ip = Ip.get_local_ip() # TO get your local ipaddress.
global_ip = Ip.get_global_ip() # To get your global ipaddress.
external_ip = Ip.get_external_ip() # To get external(of connected device) ipaddress, returns the ip address of 1st device '''
How it works
It use's --> ''' --> os module, --> requests module, --> platfrom module, --> upnpclient module.
***Local_IP is collected from the cmd(in Windows) or Bash-Terminal(in Linux) using 'ipconfig'/ 'hostname -I' command.So there is no need to get the hostname like socket module does and the accuracy of the output is 100% in Linux Os.
***Global_IP is collected by sending request to 'https://checkip.amazonaws.com' or 'https://www.wikipedia.org' using python requests module.So to get the global_ip a stable net connection is needed.
***External_IP of any router or alike devices can be collected using upnpclient module. It takes a little more time to get the external_ipaddress Compare to other two functions.Though it don't require stable Internet connection but requires a stable connection between the devices. '''
License
MIT License
Metadata
Release files for gle-ip-info 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gle_ip_info-0.1.1.tar.gz | 4.2 kB | Without provenance | Details for gle_ip_info-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gle_ip_info-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for gle_ip_info-0.1.1-py3-none-any.whl |
Total release size: 9.0 kB
Release files / gle_ip_info-0.1.1.tar.gz
| Download URL | gle_ip_info-0.1.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf5588491a4df114741edb173f08a5ff001e04c21e1afa38eaf425f45b7c5f4e
|
|
BLAKE2b-256 checksum How to use checksums |
d7bffc9a31a3c6beff7f321967022a2d4645b087b910dce2a764461d62ac5954
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Release files / gle_ip_info-0.1.1-py3-none-any.whl
| Download URL | gle_ip_info-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
875d1d41ddaba651292b9aa1f6f7b275f8f9a6ab8773bda019eb4a7fa11caac0
|
|
BLAKE2b-256 checksum How to use checksums |
35d1823782111bbde092d1bde9fa0d7548fe4e730ebce08c77b2f64c7de389f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
|
Security for gle-ip-info 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.