A library for communicating with a Podman server
Reason this release was yanked:
deprecated
Project description
podman - pythonic library for working with varlink interface to Podman
Status: Active Development
See libpod
Overview
Python podman library.
Provide a stable API to call into.
Releases
To build the podman egg and install as user:
cd ~/python-podman
python3 setup.py clean -a && python3 setup.py sdist bdist
python3 setup.py install --user
Code snippets/examples:
Show images in storage
import podman
with podman.Client() as client:
list(map(print, client.images.list()))
Show containers created since midnight
from datetime import datetime, time, timezone
import podman
midnight = datetime.combine(datetime.today(), time.min, tzinfo=timezone.utc)
with podman.Client() as client:
for c in client.containers.list():
created_at = podman.datetime_parse(c.createdat)
if created_at > midnight:
print('Container {}: image: {} created at: {}'.format(
c.id[:12], c.image[:32], podman.datetime_format(created_at)))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
podman-0.11.1.1-py3-none-any.whl
(21.3 kB
view hashes)
Close
Hashes for podman-0.11.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5729e9478d7b820eeb1a0fc5d01cabc1b245104bc1c2d3c54006b07b176e84f |
|
MD5 | 26297de70dbae0282a133e69f7fc5a13 |
|
BLAKE2b-256 | 654292a65fddad0b01997abcd95ce2f77079c754cc30979bed745278a1e25e3d |