You are here: Home / LBN / Up2date / Data Science / BastionLinux 36 / python3-google-genai-1.14.0-1.lbn36.noarch

python3-google-genai-1.14.0-1.lbn36.noarch

Package Attributes
RPM  python3-google-genai-1.14.0-1.lbn36.noarch.rpm Architecture  noarch Size  1793177 Created  2025/05/19 12:49:45 UTC
Package Specification
Summary GenAI Python SDK
Group Unspecified
License ZPL
Home Page https://pypi.org/project/google-genai
Description

Google Gen AI SDK

Documentation: https:/googleapis.github.io/python-genai/ Google Gen AI Python SDK provides an interface for developers to integrate Google's generative models into their Python applications. It supports the Gemini Developer API and Vertex AI APIs. Installation pip install google-genai

Imports from google import genai from google.genai import types

Create a client Please run one of the following code blocks to create a client for different services (Gemini Developer API or Vertex AI).

client = genai.Client(api_key=GEMINI_API_KEY)

client = genai.Client( vertexai=True, project=your-project-id, location=us-central1 )

(Optional) Using environment variables: You can create a client by configuring the necessary environment variables. Configuration setup instructions depends on whether you're using the Gemini Developer API or the Gemini API in Vertex AI. Gemini Developer A

Requires
(python3.10dist(google-auth) < 3~~ with python3.10dist(google-auth) >= 2.14.1)  
(python3.10dist(typing-extensions) < 5~~ with python3.10dist(typing-extensions) >= 4.11)  
(python3.10dist(websockets) < 15.1~~ with python3.10dist(websockets) >= 13)  
rpmlib(FileDigests)  
(python3.10dist(pydantic) < 3~~ with python3.10dist(pydantic) >= 2)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
(python3.10dist(anyio) < 5~~ with python3.10dist(anyio) >= 4.8)  
rpmlib(PayloadFilesHavePrefix)  
(python3.10dist(requests) < 3~~ with python3.10dist(requests) >= 2.28.1)  
rpmlib(RichDependencies)  
rpmlib(PayloadIsZstd)  
(python3.10dist(httpx) < 1~~ with python3.10dist(httpx) >= 0.28.1)  
rpmlib(TildeInVersions)  
Provides
python-google-genai
python3-google-genai
python3.10-google-genai
python3.10dist(google-genai)
python3dist(google-genai)
Obsoletes
python-google-genai

Document Actions