Skip to main content

A wrapper around the Google GenAI Python SDK

Project description

CrowdStrike AIDR + Google Gen AI SDK

A wrapper around the Google Gen AI SDK that wraps the Gemini API with CrowdStrike AIDR. Supports Python v3.12 and greater.

Installation

pip install -U crowdstrike-aidr-google-genai

Usage

import os

import crowdstrike_aidr_google_genai as genai

client = genai.CrowdStrikeAidrClient(
    api_key=os.environ.get("GEMINI_API_KEY"),
    crowdstrike_aidr_api_token=os.environ.get("CROWDSTRIKE_AIDR_API_TOKEN"),
    crowdstrike_aidr_base_url_template=os.environ.get("CROWDSTRIKE_AIDR_BASE_URL_TEMPLATE"),
)

response = client.models.generate_content(
    model="gemini-2.5-flash",
    contents="Explain how AI works in a few words",
)
print(response.text)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crowdstrike_aidr_google_genai-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

crowdstrike_aidr_google_genai-0.2.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file crowdstrike_aidr_google_genai-0.2.0.tar.gz.

File metadata

File hashes

Hashes for crowdstrike_aidr_google_genai-0.2.0.tar.gz
Algorithm Hash digest
SHA256 631448a3137b26fac40289d8fe748cd4d0769c1ab607014e275e47be7e10a557
MD5 6dd35a76bf55c25197dddcf07b966efa
BLAKE2b-256 cf1bca85fea6dbbd83bd24de682810caf446e8b11278cbd471ee50d5fc487440

See more details on using hashes here.

Provenance

The following attestation bundles were made for crowdstrike_aidr_google_genai-0.2.0.tar.gz:

Publisher: publish.yml on CrowdStrike/aidr-google-python-genai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file crowdstrike_aidr_google_genai-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crowdstrike_aidr_google_genai-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1684cc7176a90dfd221c3f98361f5f7e6f71ff31b1fc48d67393f9fcb3424a7
MD5 22b437d23a77d089d5dcb38513896918
BLAKE2b-256 b2b4520acbd598c80448610de951e19df2581d1be7e4a5d78c571973f975ffff

See more details on using hashes here.

Provenance

The following attestation bundles were made for crowdstrike_aidr_google_genai-0.2.0-py3-none-any.whl:

Publisher: publish.yml on CrowdStrike/aidr-google-python-genai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page