All Projects → containers → podman-py

containers / podman-py

Licence: Apache-2.0 license
Python bindings for Podman's RESTful API

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to podman-py

snc
Single Node Cluster creation scripts for OpenShift 4.x as used by CodeReady Containers
Stars: ✭ 84 (-40%)
Mutual labels:  podman
Podman Compose
a script to run docker-compose.yml using podman
Stars: ✭ 2,414 (+1624.29%)
Mutual labels:  podman
coretoolbox
"pet container" tool using podman
Stars: ✭ 22 (-84.29%)
Mutual labels:  podman
microk8s-kata-containers
Kata Containers with MicroK8s
Stars: ✭ 32 (-77.14%)
Mutual labels:  podman
Molecule
Molecule aids in the development and testing of Ansible roles
Stars: ✭ 3,262 (+2230%)
Mutual labels:  podman
autoportforward
Bidirectional port-forwarding for docker, podman and kubernetes
Stars: ✭ 282 (+101.43%)
Mutual labels:  podman
cni-plugins
CNI Plugins compatible with nftables
Stars: ✭ 29 (-79.29%)
Mutual labels:  podman
podman-static
static podman binaries and container image
Stars: ✭ 108 (-22.86%)
Mutual labels:  podman
Kind
Kubernetes IN Docker - local clusters for testing Kubernetes
Stars: ✭ 8,932 (+6280%)
Mutual labels:  podman
podman-gitlab-runner
Use Podman as a custom executor for your Gitlab CI
Stars: ✭ 87 (-37.86%)
Mutual labels:  podman
udm-utilities
A collection of things I have made to make the Unifi Dream Machine more useful
Stars: ✭ 2,228 (+1491.43%)
Mutual labels:  podman
X11docker
Run GUI applications and desktops in docker and podman containers. Focus on security.
Stars: ✭ 3,797 (+2612.14%)
Mutual labels:  podman
fosdem20
Demo material used for the Podman talk at FOSDEM 2020
Stars: ✭ 22 (-84.29%)
Mutual labels:  podman
molecule-podman
Molecule Podman Driver allows use of podman as backend for testing.
Stars: ✭ 48 (-65.71%)
Mutual labels:  podman
gnome-shell-extension-sermon
A GNOME Shell extension for monitoring and managing systemd services, cron jobs, docker and poman containers
Stars: ✭ 27 (-80.71%)
Mutual labels:  podman
podman-api-rs
Rust interface to Podman (libpod).
Stars: ✭ 37 (-73.57%)
Mutual labels:  podman
distrobox
Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
Stars: ✭ 4,371 (+3022.14%)
Mutual labels:  podman
docker-pushrm
"Docker Push Readme" - a Docker CLI plugin to update container repo docs
Stars: ✭ 100 (-28.57%)
Mutual labels:  podman
pyrex
Seamless container setup for developing with OpenEmbedded/Yocto Project
Stars: ✭ 27 (-80.71%)
Mutual labels:  podman
vs-code-container-with-ssl
Launch your own Code Server container with preloaded SDKs for React, Python, C#, Cloud CLIs, secured by SSL Reverse Proxy.
Stars: ✭ 54 (-61.43%)
Mutual labels:  podman

podman-py

Build Status

This python package is a library of bindings to use the RESTful API of Podman. It is currently under development and contributors are welcome!

Dependencies

Example usage

"""Demonstrate PodmanClient."""
import json
from podman import PodmanClient

# Provide a URI path for the libpod service.  In libpod, the URI can be a unix
# domain socket(UDS) or TCP.  The TCP connection has not been implemented in this
# package yet.

uri = "unix:///run/user/1000/podman/podman.sock"

with PodmanClient(base_url=uri) as client:
    version = client.version()
    print("Release: ", version["Version"])
    print("Compatible API: ", version["ApiVersion"])
    print("Podman API: ", version["Components"][0]["Details"]["APIVersion"], "\n")

    # get all images
    for image in client.images.list():
        print(image, image.id, "\n")

    # find all containers
    for container in client.containers.list():
        first_name = container['Names'][0]
        container = client.containers.get(first_name)
        print(container, container.id, "\n")

        # available fields
        print(sorted(container.attrs.keys()))

    print(json.dumps(client.df(), indent=4))

Contributing

See CONTRIBUTING.md

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].