{"id":24501,"library":"quill-delta","title":"quill-delta","description":"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.","status":"active","version":"1.0.3","language":"python","source_language":"en","source_url":"https://github.com/forgeworks/delta-py","tags":["operational-transformation","quill","rich-text","ot"],"install":[{"cmd":"pip install quill-delta","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Optional for YAML serialization of deltas","package":"PyYAML","optional":true}],"imports":[{"note":"Package uses underscore, not dot.","wrong":"from quill.delta import Delta","symbol":"Delta","correct":"from quill_delta import Delta"}],"quickstart":{"code":"from quill_delta import Delta\n\ndelta = Delta()\ndelta.retain(5)\ndelta.insert('Hello')\ndelta.delete(2)\nprint(delta.ops)\n# Output: [{'retain': 5}, {'insert': 'Hello'}, {'delete': 2}]","lang":"python","description":"Create a Delta, apply operations, and inspect ops."},"warnings":[{"fix":"Always use Delta methods (insert, delete, retain) to build operations.","message":"Delta ops are mutable lists; modifying in-place can break OT assumptions.","severity":"gotcha","affected_versions":"all"},{"fix":"Use delta1 + delta2 instead of delta1.compose(delta2).","message":"The 'compose' method is deprecated in favor of __add__ for composing deltas.","severity":"deprecated","affected_versions":">=0.5.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use: from quill_delta import Delta","cause":"Incorrect import path using dot instead of underscore.","error":"ImportError: No module named quill.delta"},{"fix":"Use Delta(ops=[...]) or build via methods: Delta().insert('a').delete(1)","cause":"Creating Delta with a plain list of ops without using the Delta constructor correctly.","error":"AttributeError: 'list' object has no attribute 'ops'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}