A custom Powerline segment for displaying the current state of Podman containers. Inspired by powerline-docker.
This segment also requires the Podman REST API service to be running:
podman system service -t 0 &
See Podman docs for more details.
Installation
Using uv
uv pip install powerline-podman
Using pip
pip install powerline-podman
Configuration
Colorscheme
Add the following config items to your Powerline colorscheme config file (usually located at ~/.config/powerline/colorschemes/),
see Powerline Colorschemes for more info.
{
"podman": { "fg": "gray8", "bg": "darkestpurple", "attrs": [] },
"podman_created": { "fg": "yellow", "bg": "darkestpurple", "attrs": [] },
"podman_exited": { "fg": "brightred", "bg": "darkestpurple", "attrs": [] },
"podman_paused": { "fg": "brightestorange", "bg": "darkestpurple", "attrs": [] },
"podman_running": { "fg": "green", "bg": "darkestpurple", "attrs": [] },
"podman_unknown": { "fg": "gray10", "bg": "darkestpurple", "attrs": [] },
"podman:divider": { "fg": "gray4", "bg": "darkestpurple", "attrs": [] }
}
Segment
Add the following config item to your Powerline segments config file, see Powerline Segment reference for more info.
The segment tries to connect to the libpod service at unix:///run/user/1000/podman.sock, which is where it lives on most Unix systems. You can change the URI with the uri argument.
Additionally, you can hide containers with specific states e.g. don't show exited containers by adding it to the ignore_states argument list.
The valid states are created, exited, paused, running, and unknown.
{
"function": "powerline_podman.podman",
"priority": 30,
"args": {
"uri": "unix:///run/user/1000/podman.sock",
"ignore_states": ["exited", "paused"]
}
}
- If adding the segment to the shell, edit
~/.config/powerline/themes/shell/default.json. - If adding the segment to the tmux status line, edit
~/.config/powerline/themes/tmux/default.json.
Metadata
Release files for powerline-podman 1.0.4
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 |
|---|---|---|---|---|
| powerline_podman-1.0.4.tar.gz | 14.9 kB | With provenance | Details for powerline_podman-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powerline_podman-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for powerline_podman-1.0.4-py3-none-any.whl |
Total release size: 19.4 kB
Release files / powerline_podman-1.0.4.tar.gz
| Download URL | powerline_podman-1.0.4.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
053fb12684f7922d5e3879857c1537becaf6f1d6c180532decc672dae270a0e8
|
|
BLAKE2b-256 checksum How to use checksums |
7b385ca3b6c9acb1b149973ef09ce6eab66b512e6b751d1485254c761c7461e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2025.
Transparency logRelease files / powerline_podman-1.0.4-py3-none-any.whl
| Download URL | powerline_podman-1.0.4-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1bc5cbc2b68506952bf8cd34990db3347ff5e908a5008c22c2ec059155d8c10f
|
|
BLAKE2b-256 checksum How to use checksums |
d240b245a4fb357c733820625b6bd61a39e463daebaf6c42fdb9b9e906944be9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2025.
Transparency logSecurity for powerline-podman 1.0.4
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for powerline_podman-1.0.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 21, 2025.
Transparency logA 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.