google-compute-engine
Google Compute Engine
What it is and what it does
This is a legacy Python package that provided the guest environment tooling historically installed on Google Compute Engine Linux images. It includes scripts and daemons that read the GCE metadata server to configure virtual machines on the platform—handling hostname setup, system initialization, and other on-boot configuration tasks. The package is now deprecated and archived; Google has moved these functions into separate packages distributed as native system packages rather than PyPI modules.
The PyPI version exists mainly as a legacy artifact. It targets Python 2.6 through 3.7 and has received no updates since 2019-01-24. If you are running a GCE instance, the native system packages installed by Google's repositories are the current standard. This PyPI package should only be considered if you have a specific reason to use the old Python-based guest environment code.
Use it for:
- Troubleshooting or inspecting legacy GCE instances running very old images that still use the Python-based guest environment.
- Accessing GCE metadata server from a custom Python script on an older instance where native packages are not available.
- Historical reference or porting work when migrating from very old GCE deployments to modern infrastructure.
- Development or testing of GCE metadata interaction patterns in environments where native packages cannot be installed.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python bindings and utilities for interacting with Google Compute Engine metadata and guest environment configuration on Linux VMs.
No. This package is abandoned (last commit 2021-10-28, last release 2019-01-24) and targets end-of-life Python versions. Install this only if you are maintaining a legacy system that explicitly requires the old Python-based guest environment code. For any new or modern GCE workload, use the native system packages from Google Cloud repositories instead.
Install
google-compute-engine on PyPI
pip
pip install google-compute-engineuv
uv add google-compute-enginepoetry
poetry add google-compute-engineInstalling google-compute-engine
Before you install
High install friction; the package is abandoned (last commit 2021-10-28) and has not been updated since 2019-01-24. It targets Python 2.6–3.7, which are end-of-life versions.
License in practice
Licensed under Apache Software License (permissive). No restrictions on commercial or private use, modification, or redistribution provided the license is included.
Quickstart
pip install google-compute-engine==2.8.13
import google_compute_engine
# Access GCE metadata and guest environment configuration
Targets Python 2.6–3.7 (end-of-life versions); modern Python interpreters may not support this package.
Verify before relying
- Whether this package remains functional with modern Python versions or GCE API changes since its last release.
- Whether the metadata server communication channel still works with current GCE instances.
- Recommended replacement path for new projects beyond the deprecated-packages table.
Package facts
| License | Apache Software License (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,759 days since the last release |
| Last repo commit | (repository archived) |
| First released | |
| Downloads | 156,422/month — #10,785 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: google-compute-engine-2.8.13.tar.gz
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
gcloudProvides Python client libraries for Google…
permissive · top 15,000 on PyPI
google-cloud-computePython client library for Google Compute Engine…
permissive · top 1,000 on PyPI
google-cloud-os-configPython client library for Google Cloud OS…
permissive · top 5,000 on PyPI
python-rrmngmntManages remote Linux machines and services over…
copyleft · top 15,000 on PyPI
google-cloud-os-loginPython client library for Google Cloud OS…
permissive · top 1,000 on PyPI
hyperlight-sandbox-python-guestProvides a Python guest runtime for the…
permissive · top 15,000 on PyPI
google-cloud-dnsPython client library for Google Cloud DNS API…
permissive · top 15,000 on PyPI
google-cloudA deprecated umbrella package that once…
permissive · top 5,000 on PyPI
opentelemetry-resourcedetector-gcpAutomatically detects and reports GCP resource…
permissive · top 5,000 on PyPI
gcloud-rest-authProvides Python client libraries for Google…
permissive · top 15,000 on PyPI