strands-google
strands-google is a universal Google API integration tool that provides access to 200+ Google APIs (Gmail, Drive, Calendar, YouTube, Sheets, Docs, and more) directly from your Strands agent.
Installation
Section titled “Installation”pip install strands-googlefrom strands import Agentfrom strands_google import use_google, gmail_send, gmail_reply
agent = Agent(tools=[use_google, gmail_send, gmail_reply])
# Send an emailagent("Send an email to friend@example.com saying hello")
# Search Gmailagent("Find all unread emails from last week")
# List Google Drive filesagent("Show me my recent Drive files")
# List calendar eventsagent("What meetings do I have today?")Key Features
Section titled “Key Features”- Universal Google API Access: Gmail, Drive, Calendar, YouTube, Sheets, Docs, and 200+ more via the Discovery API
- Flexible Authentication: OAuth 2.0, Service Accounts, and API Keys
- Gmail Helpers: Easy email sending and replying with automatic encoding
- Dynamic Scopes: Configure OAuth scopes on-the-fly
- Safety Prompts: Mutative operations require confirmation by default
Configuration
Section titled “Configuration”GOOGLE_OAUTH_CREDENTIALS=~/gmail_token.json # OAuth token pathGOOGLE_APPLICATION_CREDENTIALS=~/service-key.json # Service account pathGOOGLE_API_KEY=your_api_key # API key for public APIsGOOGLE_API_SCOPES=gmail.readonly,drive.file # Default OAuth scopesRun the authentication helper to set up OAuth:
python -m strands_google.google_auth