Registry / serialization / quill-delta

quill-delta

JSON →
library1.0.3pypypiunverified

Python port of the quill.js delta library for representing rich text documents and supporting operational transformation (OT). Version 1.0.3, stable release with no major recent updates.

pip install quill-delta
INSTALL
IMPORT
SIG · QUILL-DELTA
Q
quill-delta
serializationpythonv1.0.3
Install
2.6s avg
Import
Disk
17MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v1.0.3 · 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 · 19.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 2.6s · import 0.000s · 20MB
17MB installed
● package 17MB
Code
Verified usage

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

Delta
from quill_delta import Delta
from quill.delta import Delta
Package uses underscore, not dot.

Create a Delta, apply operations, and inspect ops.

from quill_delta import Delta delta = Delta() delta.retain(5) delta.insert('Hello') delta.delete(2) print(delta.ops) # Output: [{'retain': 5}, {'insert': 'Hello'}, {'delete': 2}]
Debug
Known issues
gotchaDelta ops are mutable lists; modifying in-place can break OT assumptions.
fix
Always use Delta methods (insert, delete, retain) to build operations.
affects: all
deprecatedThe 'compose' method is deprecated in favor of __add__ for composing deltas.
fix
Use delta1 + delta2 instead of delta1.compose(delta2).
affects: >=0.5.0
Upgrade
Version history
1.0.3latest on PyPI · released Oct 20, 2020
Audit
Dependencies
PyYAMLoptionalOptional for YAML serialization of deltas
Agent activity
2 hits · last 30 days
node
2
Resources
quill-delta — pip install quill-delta · libregistry