{"id":28092493,"url":"https://github.com/containers/containerimage-py","last_synced_at":"2026-03-14T18:40:53.254Z","repository":{"id":287610738,"uuid":"965248156","full_name":"containers/containerimage-py","owner":"containers","description":"A python library for interacting with container images and container image registries","archived":false,"fork":false,"pushed_at":"2025-05-20T14:28:47.000Z","size":5605,"stargazers_count":2,"open_issues_count":7,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-20T15:42:09.487Z","etag":null,"topics":[],"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":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-12T18:29:40.000Z","updated_at":"2025-05-15T01:50:03.000Z","dependencies_parsed_at":"2025-04-15T00:25:05.563Z","dependency_job_id":"3a8aa09e-f30b-455f-92f2-7bda1034b52b","html_url":"https://github.com/containers/containerimage-py","commit_stats":null,"previous_names":["whatsacomputertho/containerimage-py","containers/containerimage-py"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/containers/containerimage-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fcontainerimage-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fcontainerimage-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fcontainerimage-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fcontainerimage-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containers","download_url":"https://codeload.github.com/containers/containerimage-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2Fcontainerimage-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267505099,"owners_count":24098346,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-05-13T13:18:01.406Z","updated_at":"2026-03-14T18:40:53.192Z","avatar_url":"https://github.com/containers.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![containerimage-py](https://raw.githubusercontent.com/containers/containerimage-py/main/doc/source/_static/container-image-py.png)\n\n# containerimage-py\n\n[![Test](https://github.com/containers/containerimage-py/actions/workflows/test.yaml/badge.svg)](https://github.com/containers/containerimage-py/actions/workflows/test.yaml) [![Sec](https://github.com/containers/containerimage-py/actions/workflows/sec.yaml/badge.svg)](https://github.com/containers/containerimage-py/actions/workflows/sec.yaml) [![Doc](https://github.com/containers/containerimage-py/actions/workflows/doc.yaml/badge.svg)](https://github.com/containers/containerimage-py/actions/workflows/doc.yaml) [![Build](https://github.com/containers/containerimage-py/actions/workflows/build.yaml/badge.svg)](https://github.com/containers/containerimage-py/actions/workflows/build.yaml)\n\nA python library for interacting with container images and container image registries\n\n**Docs**: https://containers.github.io/containerimage-py/\n\n**Contributing**: [CONTRIBUTING.md](https://github.com/containers/containerimage-py/blob/main/CONTRIBUTING.md)\n\n## Quick Example\n\nHere is a quick motivating example for how you might use `containerimage-py` in your python scripts to fetch basic information about a container image.\n```python\nfrom image.containerimage import ContainerImage\n\n# Initialize a ContainerImage given a tag reference\nmy_image = ContainerImage(\"registry.k8s.io/pause:3.5\")\n\n# Display some basic information about the container image\nprint(\n    f\"Size of {str(my_image)}: \" + \\\n    my_image.get_size_formatted(auth={}) # 499.91 MB\n)\nprint(\n    f\"Digest for {str(my_image)}: \" + \\\n    my_image.get_digest(auth={}) # sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07\n)\n\n# Inspect the container image image for a more consolidated summary\nprint(\n    f\"Inspect for {str(my_image)}:\\n\" + \\\n    str(my_image.inspect(auth={})) # Same as skopeo inspect docker://registry.k8s.io/pause:3.5\n)\n```\n\nTo run this example, simply execute the following from the root of this repository\n```sh\npython3 examples/quick-example.py\n```\n\n## Installation\n\n### Using Pip\n\nRun the following command to install the latest version of this package\n\n```\npip install containerimage-py\n```\n\n### Local Install\n\n1. Clone this repository\n2. [Build the project from source](#build)\n3. Locate the `.whl` (wheel) file in the `dist` folder\n    - It should be named something like so: `containerimage_py-0.1.0-py3-none-any.whl`\n4. Run the following command from the root of the repository, replacing the name of the `.whl` file if necessary\n    ```\n    pip install dist/containerimage_py-0.1.0-py3-none-any.whl\n    ```\n\n## Build\n\nFrom the root of this repository, execute\n```sh\nmake build\n```\n\nUnder the hood, this will execute `python3 -m build` and produce a `.whl` (wheel) and `.tgz` (TAR-GZip archive) file in the `dist` subdirectory.  For more on this project's make recipes, see [CONTRIBUTING.md](https://github.com/containers/containerimage-py/blob/main/CONTRIBUTING.md#other-make-recipes).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Fcontainerimage-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainers%2Fcontainerimage-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Fcontainerimage-py/lists"}