Install & Compatibility
Where this runs
tested against v0.6.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
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.178s · 30.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.5s · import 0.170s · 31MB
30MB installed
● package 30MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Schema
✓ from prosemirror.model import Schema
✗ from prosemirror import Schema
Schema is in the model subpackage
DOMParser
✓ from prosemirror.model import DOMParser
Transform
✓ from prosemirror.transform import Transform
✗ from prosemirror import Transform
Transform is in the transform subpackage
Step
✓ from prosemirror.transform import Step
schema
✓ from prosemirror.schema_basic import schema
✗ from prosemirror import schema
The basic schema is in the schema_basic subpackage
Parse HTML into a ProseMirror document using the basic schema.
from prosemirror.model import Schema, DOMParser
from prosemirror.schema_basic import schema
# Create a document from HTML
dom_parser = DOMParser.from_schema(schema)
doc = dom_parser.parse('<p>Hello, world!</p>')
print(doc.to_json())
# Output: {'type': 'doc', 'content': [{'type': 'paragraph', 'content': [{'type': 'text', 'text': 'Hello, world!'}]}]}
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'prosemirror'
Package not installed or installed under a different name.
fixRun `pip install prosemirror`.
ImportError: cannot import name 'Schema' from 'prosemirror'
Trying to import Schema from the top-level package instead of subpackage.
fixUse `from prosemirror.model import Schema`.
KeyError: 'is_text_block'
Using old attribute name `is_text_block` which was renamed in v0.5.0.
fixUse `is_textblock` instead.
Upgrade
Version history
0.6.1latest on PyPI · released Feb 21, 2026
Audit
Dependencies
No dependency data recorded yet.