MCPcopy Create free account
hub / github.com/GitsSaikat/PyGen / get_api_key

Function get_api_key

pygen/generate_package.py:5–10  ·  view source on GitHub ↗

Retrieve the Google API key from an environment variable or user input.

()

Source from the content-addressed store, hash-verified

3from typing import Dict, List, Optional
4
5def get_api_key() -> str:
6 """Retrieve the Google API key from an environment variable or user input."""
7 api_key = os.environ.get("GOOGLE_API_KEY")
8 if not api_key:
9 api_key = input("Please enter your Google API key: ").strip()
10 return api_key
11
12def parse_generated_content(content: str) -> Dict[str, str]:
13 """

Callers 1

generate_python_packageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected