Skip to main content

dlt-source-google-workspace

PyPI version

DLT source for Google Workspace.

Currently loads the following data:

Table Contains
users All users in the organization
calendar_events Primary-calendar events per active root-OU user
gmail_messages Gmail messages with a configured label, per fixed mailbox

Usage

Create a .dlt/secrets.toml with your API credentials (service_account):

google_workspace_service_account_info = "{ ... }"

and a .dlt/config.toml with your admin email address:

admin_user_email = "some-admin@your-domain.com"

gmail_messages additionally requires two config values — a fixed mailbox list (NOT every domain user) and the label name(s) to scope the sync to:

gmail_mailboxes = ["someone@your-domain.com", "someone-else@your-domain.com"]
gmail_label_names = ["Some Label"]

or the equivalent env vars, GMAIL_MAILBOXES / GMAIL_LABEL_NAMES, each a JSON array string — e.g. GMAIL_MAILBOXES='["someone@your-domain.com"]'. The domain-wide-delegation service account needs the https://www.googleapis.com/auth/gmail.readonly scope authorized in the Workspace Admin console (Security -> API controls -> Domain-wide delegation) alongside the existing Calendar/Directory scopes — this is a manual step, not something this package can do for you.

and then run the default source with optional list references:

from dlt_source_google_workspace import source as google_workspace_source

pipeline = dlt.pipeline(
   pipeline_name="google_workspace_pipeline",
   destination="duckdb",
   dev_mode=True,
)
google_workspace_data = google_workspace_source()
pipeline.run(google_workspace_data)

Development

This project is using devenv.

Commands:

Command What does it do?
format Formats & lints all code
sample-pipeline-run Runs the sample pipeline.
sample-pipeline-show Starts the streamlit-based dlt hub

Metadata

Release files for dlt-source-google-workspace 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dlt-source-google-workspace 0.0.7
File Size Uploaded
dlt_source_google_workspace-0.0.7.tar.gz 67.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dlt-source-google-workspace 0.0.7
File Interpreter ABI Platform
dlt_source_google_workspace-0.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 77.4 kB

Release files / dlt_source_google_workspace-0.0.7.tar.gz

Download URL dlt_source_google_workspace-0.0.7.tar.gz
Size 67.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28a599d4b8a52bfa7e7af01fb65ba2290833a94411a3a3c1dfe66ded520b80fd
BLAKE2b-256 checksum
How to use checksums
2273a9367981ea0a15553bc1fc4a67251de86efa8031fa148c37b733904d2325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Release files / dlt_source_google_workspace-0.0.7-py3-none-any.whl

Download URL dlt_source_google_workspace-0.0.7-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7746cdfe17de4c7d6de3a0342ab662dd34a5c21262d792351670931af78f0eb
BLAKE2b-256 checksum
How to use checksums
53fe1906d81f32f6cd87165828b1dd8423173abd88f49040d2cda0ec0ef76f49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 12, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.8

2 release files

This release

0.0.7 This release

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page