Using python-genai with googleapis.com

Python integration

✓ Official SDK
Install
pip install python-genai
Quick start
import python-genai

# Use an OAuth2 access token
client = python_genai.Client(access_token="YOUR_ACCESS_TOKEN")
Retrieves a list of buckets for a given project.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://storage.googleapis.com/storage/v1/b
Returns metadata for the specified bucket.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://storage.googleapis.com/storage/v1/b/{bucket}
Retrieves a list of objects matching the criteria.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://storage.googleapis.com/storage/v1/b/{bucket}/o
SDK on GitHub 📄 API Docs
SDK
python-genai
Python
API
googleapis.com
googleapis.com:storage
At a glance
Language Python
Endpoints52
Base URLhttps://storage.googleapis.com/storage/v1
✓ Official