Registry / web-framework / xblock-poll

xblock-poll

JSON →
library1.15.1pypypi✓ verified 81d ago

An XBlock for creating polls and surveys in Open edX. Version 1.15.1, maintained by Open Craft. Release cadence is irregular, roughly 1-2 minor versions per year.

pip install xblock-poll
INSTALL
IMPORT
SIG · XBLOCK-POLL
X
xblock-poll
web-frameworkpythonv1.15.1
Install
9.1s avg
Import
Disk
136MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.15.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.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 126.7MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 9.1s · import 0.000s · 128MB
136MB installed
● package 136MB
Code
Verified usage

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

PollBlock
from poll import PollBlock
from poll import PollXBlock
SurveyBlock
from poll import SurveyBlock
poll
from poll import poll

Minimal instantiation of PollXBlock (for testing/development with XBlock SDK).

from poll import PollXBlock from workbench.runtime import WorkbenchRuntime runtime = WorkbenchRuntime() block = PollXBlock(runtime, scope_ids=runtime.id_generator.create_definition('poll')) print(type(block).__name__)
Debug
Known issues
deprecatedDjango 2.2 support was dropped; Django 3.2+ required in recent versions.
fix
Upgrade Django to 3.2 or later.
affects: >=1.12.0
breakingCelery upgrade (>=5.0) required for async tasks in v1.12.0+. The old celery 4.x API is no longer supported.
fix
Ensure your project uses Celery 5.0+.
affects: >=1.12.0
deprecatedPython 2.7 support removed after v1.9.x.
fix
Use Python 3.6+ (preferably 3.8+).
affects: >=1.10.0
gotchaIf you use the 'poll' block in an Open edX course, you must also enable the Poll XBlock in the advanced settings (Advanced Module List) of the course or globally via XBLOCK_SELECTION in settings.
fix
Add 'poll' to advanced_modules list in course settings or set XBLOCK_SELECTION in Django settings.
affects: all
Upgrade
Version history
1.15.1latest on PyPI · released May 20, 2025
Audit
Dependencies
XBlockrequiredCore framework required to run XBlocks.
Agent activity
49 hits · last 30 days
node
42
OpenAI (training)
1
Resources
xblock-poll — pip install xblock-poll · libregistry