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.1.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.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for crowdstrike_aidr_google_genai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3bb9b89e942fd8b6a76ee606e9ad056b34951c8482d5ac9a05f6b40d837485c0
MD5 8068afad2f4d426e157c3c21131b1168
BLAKE2b-256 627058763676396bf7a3573a99374528681ef90605240c5a98da978948af0e94

See more details on using hashes here.

Provenance

The following attestation bundles were made for crowdstrike_aidr_google_genai-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for crowdstrike_aidr_google_genai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be77c371909abb8a72fe1efeb114cb969681b1df3d5c1303c2a10310c0223835
MD5 c8468422c077a405ba00933a4e29adb4
BLAKE2b-256 47c9b44ae359cb3278631aeeac58d7fb70704c1a479bc8144b6494486662ac99

See more details on using hashes here.

Provenance

The following attestation bundles were made for crowdstrike_aidr_google_genai-0.1.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