Google Drive Python connector
This package implements searchFiles, getFile, readFileText, and
uploadFile for Dex Python applications. Both Google OAuth and Workspace
domain delegation use manifest-generated credential refresh and Dex project
storage. Configure google / google-drive-files in Dex Web Connections,
following the connector authorization guide. Do not put
access or refresh tokens in Flow input.
File timestamps follow Go JSON timestamp validation, including rejection of
hour 24 before a file Result is stored.
The text copy example searches by exact source name,
reads bounded UTF-8 text, uploads one copy behind a durable dispatch fence,
and reads its metadata back. It wires only the successful branch of each
operation. Save connections.json from Dex Web and use its path below.
From connectors/google/drive/python, generate the strict FDG 2.0 graph:
uv sync --locked
dexcli visualize examples/text_copy/flow.py --language python \
--schema-version 2.0 --json --out build/google-drive-python-text-copy \
--python .venv/bin/python
Start Dex with the generated graph, then run the Worker and Client entrypoints from separate terminals:
dexcli dev -flow-rendering-dir build
DEX_FLOW_SERVICE_ADDRESS=127.0.0.1:8801 \
DEX_CONNECTOR_CONFIG_FILE=/path/to/connections.json \
uv run python -m examples.text_copy.main
DEX_FLOW_SERVICE_ADDRESS=127.0.0.1:8801 \
DEX_CONNECTOR_CONFIG_FILE=/path/to/connections.json \
uv run python -m examples.text_copy.start \
google-drive-text-copy-001 examples/text_copy/sample-input.json
Use a new Flow ID for each start. The source must be a text file or a Google
Workspace document with a text export. The copy is written to My Drive root.
The example's CONNECTION_NAME remains google-drive-files.
The Go-recorded provider scenarios and generated refresh agreement run with:
uv run pytest
With a real dexcli dev service at DEX_FLOW_SERVICE_ADDRESS, run the
checked-in Worker and Client integration test:
DEX_FLOW_SERVICE_ADDRESS=127.0.0.1:8801 \
uv run pytest examples/text_copy/integration_test.py
That test binds its fake provider to an OS-assigned free port. The OAuth consent and Workspace delegated authorization flows against real Google accounts have not been verified for this Python port.
Metadata
Release files for dex-connector-google-drive 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dex_connector_google_drive-0.1.0.tar.gz | 89.2 kB | Without provenance | Details for dex_connector_google_drive-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dex_connector_google_drive-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for dex_connector_google_drive-0.1.0-py3-none-any.whl |
Total release size: 123.4 kB
Release files / dex_connector_google_drive-0.1.0.tar.gz
| Download URL | dex_connector_google_drive-0.1.0.tar.gz |
|---|---|
| Size | 89.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7e79385f90165548cf37033c6efe6e6f2c2ff2d0d60f23fde9d74eb9747c133
|
|
BLAKE2b-256 checksum How to use checksums |
4d323b91d71b84aa909e1eac3f3c6b5fa588d2a095c269b24b45544bb375b338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / dex_connector_google_drive-0.1.0-py3-none-any.whl
| Download URL | dex_connector_google_drive-0.1.0-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69d4b7d8b5be85267473e52e6ad36a2fec036d25fac3c438d559f6be126a1b9b
|
|
BLAKE2b-256 checksum How to use checksums |
cbc3702dbddd99d04e6bdbcb29a739f52da274e596db7309571ca376a8a85d6c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for dex-connector-google-drive 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.