google-cloud-containeranalysis
Google Cloud Containeranalysis API client library
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-containeranalysisuv
uv add google-cloud-containeranalysispoetry
poetry add google-cloud-containeranalysisInstalling 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
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
grafeasPython client library for the Grafeas API,…
permissive · top 15,000 on PyPI
google-cloud-artifact-registryPython client library for Google Cloud Artifact…
permissive · top 5,000 on PyPI
google-cloud-containerProvides a Python client library for…
permissive · top 1,000 on PyPI
google-cloud-resource-managerProvides a Python client for Google Cloud…
permissive · top 1,000 on PyPI
azure-containerregistryClient library for managing container images,…
permissive · top 5,000 on PyPI
google-cloud-monitoringPython client library for Google Cloud…
permissive · top 1,000 on PyPI
google-cloud-runPython client library for the Google Cloud Run…
permissive · top 1,000 on PyPI
google-cloud-bigquery-loggingPython client library for Google Cloud BigQuery…
permissive · top 15,000 on PyPI
google-cloud-service-usageProvides a Python client for Google Cloud…
permissive · top 15,000 on PyPI
google-cloud-buildPython client library for Google Cloud Build…
permissive · top 1,000 on PyPI