A library to interact 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
Requirements
- Python 3.5+
- OpenSSH 6.7+
- Python dependencies in requirements.txt
Building
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 Distribution
podman-0.12.0.tar.gz
(26.9 kB
view hashes)
Built Distribution
Close
Hashes for podman-0.12.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c1941df05110306d0efa60dac42ddbd93bdba0228f4986030aa5c3dbbf6c8f7 |
|
MD5 | 81d8c543f67b2b1676abf6565718a748 |
|
BLAKE2b-256 | dc948332c2980d4067fed79daa6bb0f1962dd4f263734d1b9a300e4ac30999d4 |