{ "info": { "author": "Rich Wareham", "author_email": "rich.bytegapbuffer@richwareham.com", "bugtrack_url": null, "classifiers": [], "description": "bytegapbuffer: gap buffer backed bytearray class for Python\n===========================================================\n\n|Build Status|\n\nA Python ``bytearray`` work alike which uses a `gap\nbuffer `__ as underlying\nstorage. It is a data structure optimised for locally coherent\ninsertions and deletions. It is the usual data structure in text\neditors.\n\nA utility class, ``codedstring``, is provided which provides a string-like view\non a ``bytegapbuffer`` transparently encodes and decodes Unicode strings. It\nprovides efficient common-case indexing.\n\nInstallation\n------------\n\nInstallation is via ``pip``. To install the latest release version:\n\n.. code:: console\n\n $ pip install bytegapbuffer\n\nTo install the current development version from git:\n\n.. code:: console\n\n $ pip install git+https://github.com/rjw57/bytegapbuffer\n\nUsage\n-----\n\nThe ``bytegapbuffer`` collection aims to behave just like a ``bytearray``. For\nexample:\n\n.. code:: python\n\n from bytegapbuffer import bytegapbuffer\n\n a = bytegapbuffer(b'hello')\n a.insert(3, 65)\n a.insert(4, 66)\n assert a == b'helABlo'\n\nStatus\n------\n\nThis project is used as part of a personal project of mine and, as such,\nimplements just enough of the sequence, mutable sequence and bytearray\ninterface for my needs. Pull requests adding missing functionality are\nwelcome. Please also add a test for the functionality.\n\nCurrent features:\n\n- Retrieving element(s) via ``[i]``, ``[i:j]`` and ``[i:j:k]`` style\n slicing.\n- Deletion of element(s) via ``[i]``, ``[i:j]`` style slicing.\n- Insertion/replacement of element(s) via ``[i]``, ``[i:j]`` style slicing.\n- Insertion of element via ``insert()``.\n- Length query via ``len()``.\n- Sub-sequence search via ``index()`` and ``find()`` methods.\n- Equality (and inequality) testing.\n- Iteration over contents.\n- Efficient ``codedstring`` wrapper allowing ``bytegapbuffer`` to be used as\n underlying storage in a text editor.\n\nAll of the above should work exactly as the ``bytearray`` object does.\n(This is tested in the test suite.) Additional non-\\ ``bytearray``\nfeatures:\n\n- Deep copying via ``copy()`` method.\n\nTest suite\n----------\n\nThe test suite may be run via the `tox `__\nutility. The Travis builds are set up to run the test suite on the\nlatest released Python 2 and Python 3 versions.\n\nLicence\n-------\n\nCopyright (C) 2015 Rich Wareham\n\nThis code is licensed under a BSD-style licence. See the\n`LICENSE `__ file for details.\n\n.. |Build Status| image:: https://travis-ci.org/rjw57/bytegapbuffer.svg?branch=master\n :target: https://travis-ci.org/rjw57/bytegapbuffer\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rjw57/bytegapbuffer", "keywords": "gap buffer,editor,collection", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "bytegapbuffer", "package_url": "https://pypi.org/project/bytegapbuffer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bytegapbuffer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/rjw57/bytegapbuffer" }, "release_url": "https://pypi.org/project/bytegapbuffer/0.9.4/", "requires_dist": null, "requires_python": null, "summary": "A bytearray work-alike using a gap buffer for storage", "version": "0.9.4" }, "last_serial": 1706193, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9c08ed711a6f8871126181c5b9b5c09d", "sha256": "35e214a62f4770d91db198f7762661603a483563e401a13f371bb4eac854bce6" }, "downloads": -1, "filename": "bytegapbuffer-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9c08ed711a6f8871126181c5b9b5c09d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4469, "upload_time": "2015-08-24T20:57:36", "url": "https://files.pythonhosted.org/packages/6f/19/c573d06c120378444ea1ca627b01c21510d24388cdf8d53e906ca489a687/bytegapbuffer-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "61c4c329c6bdf9bb523513f838aed955", "sha256": "bf3dce36c231142f87f5cf2cb1192092ee10551d6e522be86eee12e50369dc88" }, "downloads": -1, "filename": "bytegapbuffer-0.1.1.tar.gz", "has_sig": false, "md5_digest": "61c4c329c6bdf9bb523513f838aed955", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4557, "upload_time": "2015-08-24T21:02:54", "url": "https://files.pythonhosted.org/packages/52/2f/18d6ad8b9a412da1516e7a291222680a7e52536c82d6d437b3aff3a562c9/bytegapbuffer-0.1.1.tar.gz" } ], "0.9.0": [ { "comment_text": "", "digests": { "md5": "c4487648a2349d8202505b4b865ad83a", "sha256": "2fcf003ca71f02678a08ef147a8b419177f10b87eada45ea6404e5c1165e6d9a" }, "downloads": -1, "filename": "bytegapbuffer-0.9.0.tar.gz", "has_sig": false, "md5_digest": "c4487648a2349d8202505b4b865ad83a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6441, "upload_time": "2015-08-25T09:53:12", "url": "https://files.pythonhosted.org/packages/bc/d4/a8d3e35461e69de32aec85f8c2f65b2229e2f037079c6d6662f17ea64f50/bytegapbuffer-0.9.0.tar.gz" } ], "0.9.1": [ { "comment_text": "", "digests": { "md5": "53563c189b94bd357e713757e316064e", "sha256": "687b07736fbc035136a6846d7e104537c68415beb23fd16b31a1394b903b2fe3" }, "downloads": -1, "filename": "bytegapbuffer-0.9.1.tar.gz", "has_sig": false, "md5_digest": "53563c189b94bd357e713757e316064e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10206, "upload_time": "2015-09-02T15:11:28", "url": "https://files.pythonhosted.org/packages/c0/43/994d9d4862263deada032af2f06005627901ce5270ecee5c9590688db5db/bytegapbuffer-0.9.1.tar.gz" } ], "0.9.2": [ { "comment_text": "", "digests": { "md5": "7fe7be9046a27b4cb258633338a58994", "sha256": "bb78102c6e2facc1b03f8f73b51cdb1d7a02d2baa6fdbfe45d01e15e48e81259" }, "downloads": -1, "filename": "bytegapbuffer-0.9.2.tar.gz", "has_sig": false, "md5_digest": "7fe7be9046a27b4cb258633338a58994", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10555, "upload_time": "2015-09-02T15:36:09", "url": "https://files.pythonhosted.org/packages/42/53/d39680596b2bb34c82aa6df2345ed06f4704aade833f7efd2f43d1864526/bytegapbuffer-0.9.2.tar.gz" } ], "0.9.3": [ { "comment_text": "", "digests": { "md5": "dc019a17a39d1134855a67891346b9aa", "sha256": "e7afc65ba63dcd043747034255bb8054dc3261f25924e969706a539c42445413" }, "downloads": -1, "filename": "bytegapbuffer-0.9.3.tar.gz", "has_sig": false, "md5_digest": "dc019a17a39d1134855a67891346b9aa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10672, "upload_time": "2015-09-03T09:23:53", "url": "https://files.pythonhosted.org/packages/16/fe/e66695eb5443ccf709f7db6fded5d2fd8fae1f99e480e6064fee51ad3de4/bytegapbuffer-0.9.3.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "26b849cbd586a17655ac38e082c3fc38", "sha256": "54889a4e1eb0bf17dacee894a970957fb19e3942c9ac41d3f4840e78eca527da" }, "downloads": -1, "filename": "bytegapbuffer-0.9.4.tar.gz", "has_sig": false, "md5_digest": "26b849cbd586a17655ac38e082c3fc38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10986, "upload_time": "2015-09-03T11:10:52", "url": "https://files.pythonhosted.org/packages/87/c8/e5b6adb502f2cc82d119de09fbae4d13f773e9ad1a166832ee76cef880bb/bytegapbuffer-0.9.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "26b849cbd586a17655ac38e082c3fc38", "sha256": "54889a4e1eb0bf17dacee894a970957fb19e3942c9ac41d3f4840e78eca527da" }, "downloads": -1, "filename": "bytegapbuffer-0.9.4.tar.gz", "has_sig": false, "md5_digest": "26b849cbd586a17655ac38e082c3fc38", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10986, "upload_time": "2015-09-03T11:10:52", "url": "https://files.pythonhosted.org/packages/87/c8/e5b6adb502f2cc82d119de09fbae4d13f773e9ad1a166832ee76cef880bb/bytegapbuffer-0.9.4.tar.gz" } ] }