Registry / gcp / google-cloud-jupyter-config

google-cloud-jupyter-config

JSON →
library0.0.13pypypiunverified

google-cloud-jupyter-config is a Python library that provides utilities for Jupyter environments to retrieve configuration information directly from the Google Cloud SDK (gcloud CLI) and Google Cloud metadata server. It's designed to be a reusable helper for other Jupyter extensions and applications, enabling seamless access to details like project IDs and authentication tokens. The current version is 0.0.12, with releases being infrequent and often tied to the broader 'jupyter-extensions' project.

pip install google-cloud-jupyter-config
INSTALL
IMPORT
SIG · GOOGLE-CLOUD-JUPYT
G
google-cloud-jupyter-config
gcppythonv0.0.13
Install
8.0s avg
Import
Disk
67MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.13 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 67.5MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 8.0s · import 0.000s · 65MB
67MB installed
● package 67MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

project
from google.cloud.jupyter_config import project
from jupyter_config import project

This quickstart demonstrates how to retrieve the Google Cloud project ID and an access token using the library. These functions attempt to read from environment variables (e.g., `GCLOUD_PROJECT`), the `gcloud` CLI configuration, and the Google Cloud metadata server (if running on GCP).

import os from google_cloud_jupyter_config import project from google_cloud_jupyter_config import token # Ensure gcloud CLI is configured, or environment variables are set # For example, by running 'gcloud auth application-default login' or setting GCLOUD_PROJECT project_id = project.get_project_id() if project_id: print(f"Google Cloud Project ID: {project_id}") else: print("Could not retrieve Google Cloud Project ID. Is gcloud SDK configured or GCLOUD_PROJECT env var set?") access_token = token.get_access_token() if access_token: print(f"Google Cloud Access Token (first 10 chars): {access_token[:10]}...") else: print("Could not retrieve Google Cloud Access Token. Is gcloud SDK authenticated?")
Debug
Known issues
gotchaPrior to version 0.0.12, Jupyter sessions integrated with this library could experience authentication token expiration during long-running connections, leading to interrupted workflows.
fix
Upgrade to version 0.0.12 or later (`pip install --upgrade google-cloud-jupyter-config`) to ensure tokens are refreshed automatically.
affects: <0.0.12
gotchaThe library heavily relies on the Google Cloud SDK (gcloud CLI) being installed and correctly configured and authenticated on the system where Jupyter is running. Without it, many utility functions may return `None` or fail.
fix
Ensure the Google Cloud SDK is installed and initialized (e.g., `gcloud init`). Authenticate with `gcloud auth login` or `gcloud auth application-default login` for appropriate credentials.
affects: All versions
deprecatedThe root `google-cloud` PyPI package is deprecated. Users should install product-specific client libraries like `google-cloud-jupyter-config` instead of the umbrella package.
fix
Always install specific `google-cloud-*` packages like `google-cloud-jupyter-config` directly, rather than the deprecated `google-cloud` package.
affects: N/A (affects `google-cloud` not this specific library)
Upgrade
Version history
0.0.13latest on PyPI · released May 20, 2026
Audit
Dependencies
google-cloud-sdkrequiredThis library relies on the `gcloud` command-line tool for configuration retrieval. While not a direct Python dependency, it's a functional requirement for full utility.
Python >=3.8requiredMinimum Python version required.
Agent activity
33 hits · last 30 days
node
30
OpenAI (training)
2
Resources
google-cloud-jupyter-config — pip install google-cloud-jupyter-config · libregistry