# googleworkspace/python-samples

🐍 Python samples for Google Workspace APIs

Repository: https://github.com/googleworkspace/python-samples
Canonical: https://ross.abutalabs.com/products/python-samples
Language: Python
License: Apache-2.0
License Family: permissive
Topics: gsuite, python, samples, google-workspace
Last push: 2026-06-23T19:56:28+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 89, release rhythm 35, longevity 100
- inputs: {"age_days": 4683, "days_push": 71, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1403, forks 923 (observed 2026-08-28T04:04:37.885801+00:00)

## What it is
A collection of Python sample code and quickstarts for Google Workspace (formerly G Suite) APIs, including Gmail, Drive, Calendar, Sheets, Docs, Slides, Forms, Tasks, Classroom, and Admin SDK. It is maintained by Google as reference material to help developers learn how to authenticate and call these APIs.

## Use cases
- learn how to call the Gmail API from Python
- example code for uploading files to Google Drive
- quickstart for reading and writing Google Sheets with Python
- extract text from a Google Doc via the Docs API
- perform a mail merge using Docs and Sheets APIs
- authenticate with Google Workspace APIs using OAuth
- sample scripts for the Admin SDK Directory API

## When to choose
- you are getting started with any Google Workspace API in Python
- you want official, maintained example code to copy from
- you need a minimal working quickstart for OAuth setup with Google APIs

## When to avoid
- you need a production-ready client library or framework rather than samples
- you work with Google Workspace APIs from a language other than Python
- you need comprehensive app templates rather than small illustrative snippets

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, sdk, auth, api-framework
- domain: developer-tools, apis, tutorials
- platform: python, cross-platform
- tags: google-workspace, code-samples, gsuite, quickstarts, api-examples

## Member repositories
- googleworkspace/python-samples (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:37.885801+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:38:55.356470+00:00, confidence not recorded.
  - readme: https://github.com/googleworkspace/python-samples (fetched 2026-08-28T04:04:37.885801+00:00, sha 26ec286ead40)
- Data as of 2026-08-30T08:39:29.467469+00:00.
