Staff Graded XBlock

raw JSON →
4.0.0 verified Fri May 01 auth: no python

An XBlock for Open edX that allows staff to manually grade student submissions. Version 4.0.0 is current; releases follow an irregular cadence driven by upstream edX platform changes.

pip install staff-graded-xblock
error ModuleNotFoundError: No module named 'staff_graded_xblock'
cause Trying to import the deprecated module name with underscores.
fix
Use 'from staff_graded import StaffGradedXBlock' (note: no underscore after 'staff').
error ImportError: cannot import name 'StaffGradedXBlock' from 'staff_graded_xblock'
cause Incorrect import path.
fix
Use: from staff_graded import StaffGradedXBlock
breaking v3.0.0 dropped support for Python 3.8 and replaced pkg_resources with importlib_resources.
fix Upgrade to >=3.0.0 and ensure Python >=3.9.
deprecated The package name on PyPI changed from 'staff-graded-xblock' to 'staff-graded-xblock' with dashes only. The old name with underscores may still resolve but is deprecated.
fix Use 'staff-graded-xblock' (all dashes) in requirements and pip commands.
gotcha This XBlock does not include a default student view; it relies on the Open edX platform to render grading UI.
fix Ensure you have the proper platform integration and Studio configuration.

Instantiate the XBlock (requires full runtime for actual use).

from staff_graded import StaffGradedXBlock
block = StaffGradedXBlock(runtime=None, field_data=None, scope_ids=None)
print(block.display_name)