Registry / gcp / xblock-google-drive

xblock-google-drive

JSON →
library0.8.2pypypi✓ verified 83d ago

An XBlock for embedding Google Documents (Docs, Sheets, Slides, Forms) and Google Calendar within an Open edX course. Current version 0.8.2, requires Python >=3.12, follows Open edX release cadence.

pip install xblock-google-drive
INSTALL
IMPORT
SIG · XBLOCK-GOOGLE-DRIV
X
xblock-google-drive
gcppythonv0.8.2
Install
9.0s avg
Import
—
Disk
134MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v0.7.1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 124.5MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 9.0s · import 0.000s · 126MB
134MB installed
● package 134MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GoogleCalendarBlock
✓ from google_drive import GoogleCalendarBlock
✗ from xblock_google_drive.google_drive import GoogleDriveBlock
GoogleDocumentBlock
✓ from google_drive import GoogleDocumentBlock
✗ from xblock_google_drive.google_drive import GoogleDriveBlock

Import the block classes and configure with Google document ID or calendar ID.

from xblock_google_drive.google_drive import GoogleDriveBlock from xblock_google_drive.google_calendar import GoogleCalendarBlock # Typically used within an edX modulestore; direct instantiation is rare. # Example configuration: block = GoogleDriveBlock() block.document_id = '1abc...' # Google Doc ID from URL block.display_name = 'My Doc'
Debug
Known issues
gotchaRequires Python >=3.12 as of v0.8.2. If your edX platform runs Python 3.8-3.11, pin to <=0.8.1 or use v0.8.0 which supports Python 3.8-3.11.
fix
Downgrade: pip install 'xblock-google-drive<=0.8.1'
affects: >=0.8.2
breakingRemoved locale files and Transifex integration in v0.7.0 (OEP-58). Translations now managed via Atlas; custom translation overrides may break.
fix
Use Atlas-compatible translation workflow; remove locale files from repo if previously used.
affects: >=0.7.0
breakingRemoved xblockutils dependency in v0.5.0. Code that relied on xblockutils compat wrappers (e.g., XBlockWithMixins) may need adaptation.
fix
Migrate to direct XBlock base class or include xblockutils explicitly if needed.
affects: >=0.5.0
deprecatedPython 3.8 support dropped in v0.8.0. Python 3.11 support dropped in v0.8.2. Ensure your Python versions are compatible.
fix
Upgrade Python environment to 3.12; or pin to older releases.
affects: >=0.8.0
Upgrade
Version history
0.8.2latest on PyPI · released Mar 9, 2026
Audit
Dependencies
XBlockrequiredCore dependency for all XBlocks
DjangorequiredWeb framework used by edX platform
Agent activity
51 hits · last 30 days
node
44
OpenAI (training)
1
Resources
xblock-google-drive — pip install xblock-google-drive · libregistry