{ "info": { "author": "Brantley Harris", "author_email": "brantley@forge.works", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Text Processing :: Markup" ], "description": "\n# Delta (Python Port)\n\nPython port of the javascript Delta library for QuillJS: https://github.com/quilljs/delta\n\nSome basic pythonizing has been done, but mostly it works exactly like the above library.\n\nThere is no other python specific documentation at this time, sorry. Please see the tests\nfor reference examples.\n\n## Install with [Poetry](https://poetry.eustace.io/docs/#installation)\n\nWith HTML rendering:\n\n > poetry add -E html quill-delta\n\nWithout HTML rendering:\n\n > poetry add quill-delta\n\n## Install with pip\n\nNote: If you're using `zsh`, see below.\n\nWith HTML rendering:\n\n > pip install quill-delta[html]\n\nWith HTML rendering (zsh):\n\n > pip install quill-delta\"[html]\"\n\nWithout HTML rendering:\n\n > pip install quill-delta\n\n\n# Rendering HTML in Python\n\nThis library includes a module `delta.html` that renders html from an operation list,\nallowing you to render Quill Delta operations in full from a Python server.\n\nFor example:\n\n from delta import html\n\n ops = [ \n { \"insert\":\"Quill\\nEditor\\n\\n\" },\n { \"insert\": \"bold\",\n \"attributes\": {\"bold\": True}},\n { \"insert\":\" and the \" },\n { \"insert\":\"italic\",\n \"attributes\": { \"italic\": True }},\n { \"insert\":\"\\n\\nNormal\\n\" },\n ]\n\n html.render(ops)\n\nResult (line formatting added for readability):\n \n

Quill

\n

Editor

\n


\n

bold and the italic

\n


\n

Normal

\n\n[See test_html.py](tests/test_html.py) for more examples.\n\n\n# Developing\n\n## Setup\nIf you'd to contribute to quill-delta-python, get started setting your development environment by running:\n\nCheckout the repository\n\n > git clone https://github.com/forgeworks/quill-delta-python.git\n\nMake sure you have python 3 installed, e.g.,\n\n > python --version\n\nFrom inside your new quill-delta-python directory:\n\n > python3 -m venv env\n > source env/bin/activate\n > pip install poetry\n > poetry install -E html\n\n## Tests\nTo run tests do:\n\n > py.test\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/forgeworks/delta-py", "keywords": "", "license": "MIT", "maintainer": "Brantley Harris", "maintainer_email": "brantley@forge.works", "name": "quill-delta", "package_url": "https://pypi.org/project/quill-delta/", "platform": "", "project_url": "https://pypi.org/project/quill-delta/", "project_urls": { "Homepage": "https://github.com/forgeworks/delta-py", "Repository": "https://github.com/forgeworks/delta-py" }, "release_url": "https://pypi.org/project/quill-delta/1.0.1/", "requires_dist": [ "diff-match-patch (>=20181111.0,<20181112.0)", "lxml (>=4.3,<5.0); extra == \"html\"", "cssutils (>=1.0,<2.0); extra == \"html\"" ], "requires_python": ">=3.6,<4.0", "summary": "Python port of the quill.js delta library that enables operational transformation with aditional functionality for rendering html", "version": "1.0.1" }, "last_serial": 5274436, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "8b98ca58064367b43c6bb9723f7cff65", "sha256": "dfccb95c8be322e83906aab1542fb9a01692f500ec701ea2c8f17e5d98c80fb5" }, "downloads": -1, "filename": "quill_delta-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8b98ca58064367b43c6bb9723f7cff65", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 11363, "upload_time": "2019-05-12T03:20:52", "url": "https://files.pythonhosted.org/packages/69/5d/a5feeea9a9a9827220dd0d60c5e5faa55af0b3bd7447440825519256c844/quill_delta-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "556d791f80d5425ba7835bccc251de81", "sha256": "98224a64aef45247a320a221f1fe6f9035232c85dc6c04b1e6dc4bc8f5e98021" }, "downloads": -1, "filename": "quill-delta-1.0.0.tar.gz", "has_sig": false, "md5_digest": "556d791f80d5425ba7835bccc251de81", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 10477, "upload_time": "2019-05-12T03:20:50", "url": "https://files.pythonhosted.org/packages/92/21/53c70124b50dbbac14d92dcfed47048b5fe5b4d8dc63a61dd884dd509dec/quill-delta-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f5d985236d8b8252f2a2a2d78d7b3d61", "sha256": "fa89cf3bcdf797bbdbe79ba3bd39d86ce1d8b6810e82e0ffbf6b2541bb685326" }, "downloads": -1, "filename": "quill_delta-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f5d985236d8b8252f2a2a2d78d7b3d61", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 11719, "upload_time": "2019-05-15T21:29:24", "url": "https://files.pythonhosted.org/packages/1f/60/e5740caaf53dd0060809946aa811977a2f10cdd8784b9be88fc143145c07/quill_delta-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "261161cd68ac873bcbe1f6ff460fc008", "sha256": "1e9f57bfdfe184cae742c2e838b26b66c7c1d01cbc9c83d57a5dcb3d21c2e913" }, "downloads": -1, "filename": "quill-delta-1.0.1.tar.gz", "has_sig": false, "md5_digest": "261161cd68ac873bcbe1f6ff460fc008", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 11266, "upload_time": "2019-05-15T21:29:22", "url": "https://files.pythonhosted.org/packages/5f/bb/0185656e4f14624ab6c68585c9f064854fa82534445ac2120e7eb30f36f0/quill-delta-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f5d985236d8b8252f2a2a2d78d7b3d61", "sha256": "fa89cf3bcdf797bbdbe79ba3bd39d86ce1d8b6810e82e0ffbf6b2541bb685326" }, "downloads": -1, "filename": "quill_delta-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f5d985236d8b8252f2a2a2d78d7b3d61", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6,<4.0", "size": 11719, "upload_time": "2019-05-15T21:29:24", "url": "https://files.pythonhosted.org/packages/1f/60/e5740caaf53dd0060809946aa811977a2f10cdd8784b9be88fc143145c07/quill_delta-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "261161cd68ac873bcbe1f6ff460fc008", "sha256": "1e9f57bfdfe184cae742c2e838b26b66c7c1d01cbc9c83d57a5dcb3d21c2e913" }, "downloads": -1, "filename": "quill-delta-1.0.1.tar.gz", "has_sig": false, "md5_digest": "261161cd68ac873bcbe1f6ff460fc008", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6,<4.0", "size": 11266, "upload_time": "2019-05-15T21:29:22", "url": "https://files.pythonhosted.org/packages/5f/bb/0185656e4f14624ab6c68585c9f064854fa82534445ac2120e7eb30f36f0/quill-delta-1.0.1.tar.gz" } ] }