get default gateway device / IP
Project description
defgw
Get default gateway interface / IP (for Linux)
Parses/decodes /proc/net/route and prints def gw information
Install
pip3 install getdefgw
Usage
$ getdefgw
192.168.100.245
$ getdefgw --dev
wlp8s0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getdefgw-0.0.2.tar.gz
(2.2 kB
view details)
Built Distribution
File details
Details for the file getdefgw-0.0.2.tar.gz
.
File metadata
- Download URL: getdefgw-0.0.2.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7db66347e9ce47e30cb479809d96dae9b852fa5f3a79e99888948b1ca20721e |
|
MD5 | 2ab32e03aad4e33be303ddeb0794c141 |
|
BLAKE2b-256 | bcb0bb73c066bf10e065c0a30f999e5039bd97a1aea63d0838b64288974db9ef |
File details
Details for the file getdefgw-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: getdefgw-0.0.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/6.0.0 pkginfo/1.9.6 requests/2.28.2 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0e961a45c182e8db0d59a4498add02740417a81cf0863a45371a4e0debca663 |
|
MD5 | af103a8179433031987beb6b899e0efb |
|
BLAKE2b-256 | 00e521c98ac1c7a178e1c9002c21b9c296b35b4c255e266f81fe545b6cc5f579 |