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)))
CHANGES
- Fix pypi deployment by using documentation at markdown format
v0.0.2
- Fix up pushing to pypi
v0.0.1
- Pull image function throws KeyError for id
- Secure Travis
- Introduce travis-ci and autodeployments on tags
- Improve packaging by using PBR
- Add base requirements to README.md
- Remove pypodman to python-pypodman repo
- Update module to align with varlink API changes
- Use GetVersion instead of Ping, as recommended
- Improve README
- pypodman: add options to handle ssh host keys
- Update README.md
- add missing bits
- Initial copy from containers/libpod
- Initial commit
Anders F Björklund anders.f.bjorklund@gmail.com Brent Baude bbaude@redhat.com Daniel J Walsh dwalsh@redhat.com Dhanisha Phadate phadate.d@husky.neu.edu Hervé Beraud hberaud@redhat.com Jhon Honce jhonce@redhat.com Jhon Honce jwhonce@gmail.com
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.0.3.tar.gz
(26.9 kB
view hashes)
Built Distribution
podman-0.0.3-py2.py3-none-any.whl
(22.4 kB
view hashes)
Close
Hashes for podman-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66fd7a0b5019dbb0c2b599b14b5d4e8ac93b90d8f57fea3428e6f08c6459f8fa |
|
MD5 | 2fe16c53e6d1acfb761bde1ab12ba012 |
|
BLAKE2b-256 | 67aa894b49efe10c0ec8ee750ee05fcaf46d5f6e14e16c2eb0d05906e63d1e71 |