🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More →
Socket
Book a DemoSign in
Socket

gemini-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gemini-analyzer

Control-plane agent tooling and a stub Gemini model list.

pipPyPI
Version
1.0.9
Maintainers
1

gemini-analyzer

Minimal helper: pass a Google Gemini API key, get the list of model resource names your key can use (e.g. models/gemini-2.5-flash).

Install

pip install gemini-analyzer

Usage

from gemini_analyzer import list_gemini_models

models = list_gemini_models("YOUR_API_KEY")
for name in models:
    print(name)

list_gemini_models returns a sorted list of unique strings from the API. It raises ValueError if the key is missing or not a non-empty string.

Security: Do not commit API keys. Use environment variables or a secret manager in real applications.

Development

python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
python -m build

PyPI

Before the first release, confirm the project name is available on PyPI. Upload with twine after python -m build.

Keywords

agent

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts