{"id":13501459,"url":"https://github.com/containers/podman-py","last_synced_at":"2025-05-14T14:08:14.655Z","repository":{"id":37848011,"uuid":"237641786","full_name":"containers/podman-py","owner":"containers","description":"Python bindings for Podman's RESTful API","archived":false,"fork":false,"pushed_at":"2025-05-06T11:07:03.000Z","size":1160,"stargazers_count":302,"open_issues_count":39,"forks_count":107,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-14T02:42:59.787Z","etag":null,"topics":["libpod","podman","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-01T16:19:43.000Z","updated_at":"2025-05-11T06:02:23.000Z","dependencies_parsed_at":"2022-06-23T00:28:08.169Z","dependency_job_id":"479b7672-74f1-427e-975b-bc4fde151f4f","html_url":"https://github.com/containers/podman-py","commit_stats":{"total_commits":384,"total_committers":63,"mean_commits":6.095238095238095,"dds":0.8333333333333334,"last_synced_commit":"d3dd1543591f163f6e5665dba7be9481de6a1590"},"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fpodman-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fpodman-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fpodman-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fpodman-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containers","download_url":"https://codeload.github.com/containers/podman-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254102707,"owners_count":22015139,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["libpod","podman","python"],"created_at":"2024-07-31T22:01:38.455Z","updated_at":"2025-05-14T14:08:14.650Z","avatar_url":"https://github.com/containers.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# podman-py\n[![PyPI Latest Version](https://img.shields.io/pypi/v/podman)](https://pypi.org/project/podman/)\n\nThis python package is a library of bindings to use the RESTful API of [Podman](https://github.com/containers/podman).\nIt is currently under development and contributors are welcome!\n\n## Installation\n\n\u003cdiv class=\"termy\"\u003e\n\n```console\npip install podman\n```\n\n\u003c/div\u003e\n\n---\n\n**Documentation**: \u003ca href=\"https://podman-py.readthedocs.io/en/latest/\" target=\"_blank\"\u003ehttps://podman-py.readthedocs.io/en/latest/\u003c/a\u003e\n\n**Source Code**: \u003ca href=\"https://github.com/containers/podman-py\" target=\"_blank\"\u003ehttps://github.com/containers/podman-py\u003c/a\u003e\n\n---\n\n## Dependencies\n\n* For runtime dependencies, see \\[dependencies\\] in [pyproject.toml](https://github.com/containers/podman-py/blob/main/pyproject.toml)\n* For testing and development dependencies, see \\[project.optional.dependencies\\] in [pyproject.toml](https://github.com/containers/podman-py/blob/main/pyproject.toml)\n  * The package is split in \\[progress\\_bar\\], \\[docs\\], and \\[test\\]\n\n## Example usage\n\n```python\n\"\"\"Demonstrate PodmanClient.\"\"\"\nimport json\nfrom podman import PodmanClient\n\n# Provide a URI path for the libpod service.  In libpod, the URI can be a unix\n# domain socket(UDS) or TCP.  The TCP connection has not been implemented in this\n# package yet.\n\nuri = \"unix:///run/user/1000/podman/podman.sock\"\n\nwith PodmanClient(base_url=uri) as client:\n    version = client.version()\n    print(\"Release: \", version[\"Version\"])\n    print(\"Compatible API: \", version[\"ApiVersion\"])\n    print(\"Podman API: \", version[\"Components\"][0][\"Details\"][\"APIVersion\"], \"\\n\")\n\n    # get all images\n    for image in client.images.list():\n        print(image, image.id, \"\\n\")\n\n    # find all containers\n    for container in client.containers.list():\n        # After a list call you would probably want to reload the container\n        # to get the information about the variables such as status.\n        # Note that list() ignores the sparse option and assumes True by default.\n        container.reload()\n        print(container, container.id, \"\\n\")\n        print(container, container.status, \"\\n\")\n\n        # available fields\n        print(sorted(container.attrs.keys()))\n\n    print(json.dumps(client.df(), indent=4))\n```\n\n## Contributing\n\nSee [CONTRIBUTING.md](https://github.com/containers/podman-py/blob/main/CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Fpodman-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainers%2Fpodman-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Fpodman-py/lists"}