skillfed

google-cloud-containeranalysis

Google Cloud Containeranalysis API client library

google-cloud-containeranalysis v2.22.1 102.3K downloads/30d#12,876 on PyPI5,373
Permissive license Apache-2.0 Active released

What it is and what it does

This is the official Python client for Google Cloud Container Analysis, a service that stores and retrieves metadata about software artifacts and integrates with vulnerability scanning in Artifact Registry and GKE. It implements the Grafeas API standard, providing a structured way to query and manage artifact metadata across your container infrastructure.

The library wraps Google Cloud's gRPC APIs and handles authentication, serialization, and connection management. It's designed for developers building container security workflows, artifact governance systems, or vulnerability management tools that need programmatic access to container metadata and scanning results. Installation is straightforward for modern Python environments (3.10+), though it requires prior setup of a Google Cloud project with the Container Analysis service enabled.

Use it for:

  • Query vulnerability scan results from Artifact Registry to build custom security dashboards or compliance reports.
  • Retrieve artifact metadata and attestations for policy enforcement in CI/CD pipelines.
  • Integrate GKE runtime vulnerability scanning data into centralized security monitoring systems.
  • Automate artifact governance by querying and filtering container images by metadata attributes.
  • Build custom tooling to correlate container images with their known vulnerabilities across deployments.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for Google Cloud Container Analysis API, enabling querying and retrieval of artifact metadata and vulnerability scanning integration with Artifact Registry and GKE.

Yes, if you are working with Google Cloud container infrastructure and need programmatic access to artifact metadata or vulnerability scanning results. The library is actively maintained, has no known vulnerabilities, supports current Python versions, and carries a permissive license. Install only if you have a Google Cloud project with Container Analysis enabled and a clear use case for querying artifact metadata or scanning data.

Install

google-cloud-containeranalysis on PyPI

pip

pip install google-cloud-containeranalysis

uv

uv add google-cloud-containeranalysis

poetry

poetry add google-cloud-containeranalysis

Installing google-cloud-containeranalysis

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of 8 days ago with recent commits and production-stable status. Requires Python >= 3.10 and depends on standard Google Cloud libraries (google-api-core, google-auth, protobuf, grpcio).

License in practice

Licensed under Apache-2.0 (permissive), allowing commercial use, modification, and distribution with minimal restrictions—suitable for most projects.

Quickstart

pip install google-cloud-containeranalysis

from google.cloud import containeranalysis_v1

client = containeranalysis_v1.ContainerAnalysisClient()
# Query artifact metadata or vulnerability information

Requires Google Cloud project setup, billing enabled, Container Analysis API enabled, and authentication credentials configured (service account or application default credentials).

Verify before relying

  • Specific API methods and their signatures beyond the client instantiation pattern.
  • Performance characteristics when querying large artifact metadata sets.
  • Integration complexity with existing Artifact Registry or GKE deployments.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 7 — google-api-core, google-auth, grafeas, grpcio, proto-plus, protobuf, grpc-google-iam-v1
Maintenance actively maintained — 8 days since the last release
Last repo commit
First released
Downloads 102,262/month — #12,876 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: google_cloud_containeranalysis-2.22.1-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Internet

Tags

google cloud container analysis clientartifact metadata queryingvulnerability scanning integrationgrafeas api implementationcontainer registry metadataartifact analysis scanninggke vulnerability insights
google-cloudcontainer-securityartifact-metadata

More Internet packages

botocore

Botocore provides low-level, data-driven access…

permissive · top 100 on PyPI

aiobotocore

Provides an async client for AWS services using…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

filelock

Provides a platform-independent file locking…

permissive · top 100 on PyPI

fastapi

FastAPI is a Python web framework for building…

permissive · top 100 on PyPI

googleapis-common-protos

Provides common Protocol Buffer message…

permissive · top 100 on PyPI

grafeas

Python client library for the Grafeas API,…

permissive · top 15,000 on PyPI

google-cloud-artifact-registry

Python client library for Google Cloud Artifact…

permissive · top 5,000 on PyPI

google-cloud-container

Provides a Python client library for…

permissive · top 1,000 on PyPI

google-cloud-resource-manager

Provides a Python client for Google Cloud…

permissive · top 1,000 on PyPI

azure-containerregistry

Client library for managing container images,…

permissive · top 5,000 on PyPI

google-cloud-monitoring

Python client library for Google Cloud…

permissive · top 1,000 on PyPI

google-cloud-run

Python client library for the Google Cloud Run…

permissive · top 1,000 on PyPI

google-cloud-bigquery-logging

Python client library for Google Cloud BigQuery…

permissive · top 15,000 on PyPI

google-cloud-service-usage

Provides a Python client for Google Cloud…

permissive · top 15,000 on PyPI

google-cloud-build

Python client library for Google Cloud Build…

permissive · top 1,000 on PyPI