podman-py icon indicating copy to clipboard operation
podman-py copied to clipboard

Question/Information required on some aspects of podman-py module

Open mrbazzan opened this issue 2 years ago • 2 comments

Hello,

I'm using podman-py for some container action, and I have a couple of questions;

  1. Is it possible to get real-time logging of what is happening during image build(from PodmanClient().images.build) in podman-py. I noticed that the option is available for pull(from PodmanClient().images.pull) with stream=True

  2. Does the PodmanClient support some kind of event loop that could be subscribed to, and receive the “stdout/stderr” as events regardless of podman command/method (build/pull) used?

  3. There is an issue (I think) with this line. The API doesn’t respect the REST endpoint, the REST returns a simple integer instead of JSON/dict. This prompts a TypeError, int object is not subscriptable

libpod

mrbazzan avatar Jun 29 '22 14:06 mrbazzan

@rhatdan I would like to submit a PR to take care of no. 3

@jwhonce @mwhahaha @msisj Also, what do you think about 1&2?

mrbazzan avatar Jul 06 '22 20:07 mrbazzan

SGTM

rhatdan avatar Jul 07 '22 17:07 rhatdan