dlt-source-google-workspace
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.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dlt_source_google_workspace-0.0.6.tar.gz | 67.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dlt_source_google_workspace-0.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 77.0 kB
Release files / dlt_source_google_workspace-0.0.6.tar.gz
| Download URL | dlt_source_google_workspace-0.0.6.tar.gz |
|---|---|
| Size | 67.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0748a008c2346c48d232c2ccfdc3686dfbb68037ada021eff0a6037640adb1cb
|
|
BLAKE2b-256 checksum How to use checksums |
300525a6dff490300eb7e3ab52a5296cd8ca65672b3a50b83b3ae6f8d26f0b79
|
| 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 logRelease files / dlt_source_google_workspace-0.0.6-py3-none-any.whl
| Download URL | dlt_source_google_workspace-0.0.6-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4baa03cdd0a3a25916829cfae646e9e87998a1b88d7a229ab0868f8236df5ca
|
|
BLAKE2b-256 checksum How to use checksums |
5dd1683a2fa8f83723cc834726d1e8d58a57d866f8ab4e864777ff92fa583d1c
|
| 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