Skip to main content

Pinter - Print INTERfaces

Pinter is a small CLI tool that prints your network interfaces and their IP addresses in a clean, colored table. Forget about digging through ifconfig or ip addr output.

By default it shows only the interfaces that usually matter (Ethernet, Wi-Fi, bridges, VPN tunnels) and hides noise such as loopback, Docker and other virtual interfaces.

Features

  • One line per interface, aligned columns, colored output
  • All IPv4 addresses of an interface, when it has more than one
  • Optional MAC addresses
  • Optional view of all interfaces, without filtering
  • Only one dependency: psutil

Installation

Install with pipx (preferred) or pip:

pipx install pinter
pip install pinter

Requires Python 3.8 or newer.

Usage

pinter [options]

Options are single letters and can be combined in one argument, for example pinter am:

Option Description
a Show all interfaces (no filtering)
m Also print MAC addresses
h Print help

Default view

Shows only the important interfaces:

$ pinter
enp1s0  192.168.1.23
        192.168.1.24
wlp2s0  192.168.1.57
tun0    10.8.0.2

Important addreses starts with: (br, eno, enp, eth, wl, tun). Other addresses are hidden.

All interfaces

$ pinter a
lo       127.0.0.1
enp1s0   192.168.1.23
wlp2s0   192.168.1.57
docker0  172.17.0.1

With MAC addresses

$ pinter m
enp1s0  192.168.1.23  52:54:00:12:34:56
wlp2s0  192.168.1.57  a4:c3:f0:65:43:21

All interfaces with MAC addresses

$ pinter am
lo       127.0.0.1     00:00:00:00:00:00
enp1s0   192.168.1.23  52:54:00:12:34:56
wlp2s0   192.168.1.57  a4:c3:f0:65:43:21
docker0  172.17.0.1    02:42:7a:1b:2c:3d

License

MIT, see LICENSE.

Metadata

Release files for pinter 0.2.0

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

Source distribution (sdist)

Source distribution for pinter 0.2.0
File Size Uploaded Provenance
pinter-0.2.0.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / pinter-0.2.0.tar.gz

Download URL pinter-0.2.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
758862754b36dcee821229222ebc64f6f0b2f6db42f88dd3bbe6adcffd9cb6df
BLAKE2b-256 checksum
How to use checksums
f791783aeb0b9aa2bba0211a3bfed76f79e01df27b6d172e472224fd7ba6380c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.4 Linux/7.0.0-38-generic

Release files / pinter-0.2.0-py3-none-any.whl

Download URL pinter-0.2.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6c895d7c671c7494da8ee896854bf2fdd1df15389c31940bd96a59dd7bcc249
BLAKE2b-256 checksum
How to use checksums
19adac438b5123536da1e437971c68777e3a56dfce8697cf3ca48b2be554f2f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.14.4 Linux/7.0.0-38-generic

Security for pinter 0.2.0

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.

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