Skip to main content

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

Metadata

Release files for getdefgw 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getdefgw 0.0.2
File Size Uploaded Provenance
getdefgw-0.0.2.tar.gz 2.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for getdefgw 0.0.2
File Interpreter ABI Platform
getdefgw-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / getdefgw-0.0.2.tar.gz

Download URL getdefgw-0.0.2.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a7db66347e9ce47e30cb479809d96dae9b852fa5f3a79e99888948b1ca20721e
BLAKE2b-256 checksum
How to use checksums
bcb0bb73c066bf10e065c0a30f999e5039bd97a1aea63d0838b64288974db9ef
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / getdefgw-0.0.2-py3-none-any.whl

Download URL getdefgw-0.0.2-py3-none-any.whl
Size 3.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0e961a45c182e8db0d59a4498add02740417a81cf0863a45371a4e0debca663
BLAKE2b-256 checksum
How to use checksums
00e521c98ac1c7a178e1c9002c21b9c296b35b4c255e266f81fe545b6cc5f579
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for getdefgw 0.0.2

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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page