skillfed

google-compute-engine

Google Compute Engine

google-compute-engine v2.8.13 156.4K downloads/30d#10,785 on PyPI369
Permissive license Apache Software License Abandoned released

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-engine

uv

uv add google-compute-engine

poetry

poetry add google-compute-engine

Installing 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

Development Status :: 5 - Production/StableEnvironment :: No Input/Output (Daemon)Intended Audience :: DevelopersIntended Audience :: System AdministratorsLicense :: OSI Approved :: Apache Software LicenseOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: InternetTopic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Installation/SetupTopic :: System :: Systems Administration

Tags

google compute engine python librarygce metadata server accessgoogle cloud vm guest environmentcompute engine instance metadatagce python clientgoogle cloud linux guest tools
deprecatedgce-legacy

More Python Modules packages

idna

Converts domain names between Unicode and…

permissive · top 100 on PyPI

setuptools

Setuptools is a Python build backend and…

permissive · top 100 on PyPI

PyYAML

PyYAML parses and emits YAML 1.1 data format,…

permissive · top 100 on PyPI

pydantic

Pydantic validates Python data structures…

permissive · top 100 on PyPI

annotated-types

Provides reusable metadata objects for use with…

permissive · top 100 on PyPI

typing-inspection

Provides runtime tools to inspect and…

permissive · top 100 on PyPI

gcloud

Provides Python client libraries for Google…

permissive · top 15,000 on PyPI

google-cloud-compute

Python client library for Google Compute Engine…

permissive · top 1,000 on PyPI

google-cloud-os-config

Python client library for Google Cloud OS…

permissive · top 5,000 on PyPI

python-rrmngmnt

Manages remote Linux machines and services over…

copyleft · top 15,000 on PyPI

google-cloud-os-login

Python client library for Google Cloud OS…

permissive · top 1,000 on PyPI

hyperlight-sandbox-python-guest

Provides a Python guest runtime for the…

permissive · top 15,000 on PyPI

google-cloud-dns

Python client library for Google Cloud DNS API…

permissive · top 15,000 on PyPI

google-cloud

A deprecated umbrella package that once…

permissive · top 5,000 on PyPI

opentelemetry-resourcedetector-gcp

Automatically detects and reports GCP resource…

permissive · top 5,000 on PyPI

gcloud-rest-auth

Provides Python client libraries for Google…

permissive · top 15,000 on PyPI