docker-py is a Python bindings library for the Docker API that can also communicate with Podman's compatibility service. It lets Python programs perform container operations otherwise available through Podman commands. section 9.3 section 9.3.1
Point DockerClient at the Podman socket with an explicit base URL, or set DOCKER_HOST and use docker.from_env(). The latter keeps the socket path outside the script and supports environment-based configuration. section 9.3.1
List images through Podman
Set DOCKER_HOST to unix://$XDG_RUNTIME_DIR/podman/podman.sock, create a client with docker.from_env(), and call client.images.list(all=True). The result lists images available through the Podman service.
Table 9.4 Podman-py vs. docker-py (view table figure)
Compare docker-py and podman-py by Docker daemon support, Podman service support, pod support, and advanced Podman features. section 9.3.3
