Python samples
๐ Python samples for Google Workspace APIs
Python samples for [Google Workspace APIs](https://developers.google.com/gsuite/) docs. The project is written primarily in Python, distributed under the Apache License 2.0 license, first published in 2013. It has gained significant community traction with 1,397 stars and 926 forks on GitHub. Key topics include: google-workspace, gsuite, python, samples.
Google Workspace Python Samples 
Python samples for Google Workspace APIs docs.
APIs
Admin SDK
Apps Script
Calendar
Classroom
Docs
- Quickstart
- Output Doc as JSON:
Dump the contents of a Google Doc as formatted JSON - Extract text:
Extract only the text of a Google Doc - Mail merge:
Perform mail merges from plain text or Google Sheets data sources
Drive V3
- Quickstart
- DriveApp: A simple app that uploads a file to Google Drive.
Forms
Gmail
Sheets
Slides
Tasks
Lint
pylint filename.py
Contributors
Showing top 12 contributors by commit count.
This article is auto-generated from googleworkspace/python-samples via the GitHub API.Last fetched: 6/27/2026
