{ "info": { "author": "Alain P\u00e9teut", "author_email": "alain.peteut@yahoo.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "circbuf\r\n*******\r\n.. image:: https://travis-ci.org/peteut/circbuf.svg?branch=master\r\n :target: https://travis-ci.org/peteut/circbuf\r\n.. image:: https://img.shields.io/coveralls/peteut/circbuf.svg\r\n :target: https://coveralls.io/r/peteut/circbuf?branch=master\r\n\r\n``circbuf`` implements a circular buffer for Python.\r\nIt allows for zero copy operation, i.e. it uses ``memoryview``\r\nto expose consumer and producer buffers.\r\nAccess to the buffer is synchronised by locks, managed by context managers.\r\n\r\nExample\r\n=======\r\n\r\n.. code-block:: python\r\n\r\n import circbuf\r\n\r\n buf = circbuf.CircBuf()\r\n # Produce data\r\n with buf.producer_buf as mv:\r\n mv[0] = 42\r\n buf.produced(1)\r\n\r\n print('First entry: {}'.format(next(iter(buf)))) # First entry: 42\r\n\r\nFeatures\r\n========\r\n\r\n* Pure Python\r\n* Minimises allocation of big memory chunks\r\n* Automatic access synchronisation\r\n* Tested on Python 3.2, 3.3, 3.4\r\n\r\nUseful Links\r\n============\r\n\r\n* `circbuf.h`_\r\n* `memoryview`_\r\n\r\n.. _`circbuf.h`: https://github.com/torvalds/linux/blob/master/include/linux/circ_buf.h\r\n.. _`memoryview`: https://docs.python.org/3.4/library/stdtypes.html#memoryview)", "description_content_type": null, "docs_url": "https://pythonhosted.org/circbuf/", "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/peteut/circbuf", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "circbuf", "package_url": "https://pypi.org/project/circbuf/", "platform": "all", "project_url": "https://pypi.org/project/circbuf/", "project_urls": { "Homepage": "https://github.com/peteut/circbuf" }, "release_url": "https://pypi.org/project/circbuf/0.1b1/", "requires_dist": null, "requires_python": null, "summary": "A fast, zero-copy, circular buffer for Python", "version": "0.1b1" }, "last_serial": 1165961, "releases": { "0.1b1": [ { "comment_text": "", "digests": { "md5": "ada599a249e8ffe6d73f5c486652093e", "sha256": "98903ec2649d168266c45cebddbb354acc0b2b910fb25bde50ad2643b310c317" }, "downloads": -1, "filename": "circbuf-0.1b1.linux-x86_64.tar.gz", "has_sig": true, "md5_digest": "ada599a249e8ffe6d73f5c486652093e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7123, "upload_time": "2014-07-22T20:33:06", "url": "https://files.pythonhosted.org/packages/24/3d/d9dd9946f5f8695af9f58db372e0a26bedab9ff55bbc44eed3978ccc3093/circbuf-0.1b1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "89bbe8cdf6637887cd97edbf22c8ad52", "sha256": "c51d58ec380b536da0bdb9a8b907ee007ff07e4d2a7725f8ff4eda1f24988619" }, "downloads": -1, "filename": "circbuf-0.1b1-py32, py33, py34-none-any.whl", "has_sig": true, "md5_digest": "89bbe8cdf6637887cd97edbf22c8ad52", "packagetype": "bdist_wheel", "python_version": "py32, py33, py34", "requires_python": null, "size": 4851, "upload_time": "2014-07-22T20:33:15", "url": "https://files.pythonhosted.org/packages/23/ef/e5753b816da94c2217b180c0b4ee116e1f5f62e83e904cf9cada12092372/circbuf-0.1b1-py32,%20py33,%20py34-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ada599a249e8ffe6d73f5c486652093e", "sha256": "98903ec2649d168266c45cebddbb354acc0b2b910fb25bde50ad2643b310c317" }, "downloads": -1, "filename": "circbuf-0.1b1.linux-x86_64.tar.gz", "has_sig": true, "md5_digest": "ada599a249e8ffe6d73f5c486652093e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7123, "upload_time": "2014-07-22T20:33:06", "url": "https://files.pythonhosted.org/packages/24/3d/d9dd9946f5f8695af9f58db372e0a26bedab9ff55bbc44eed3978ccc3093/circbuf-0.1b1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "89bbe8cdf6637887cd97edbf22c8ad52", "sha256": "c51d58ec380b536da0bdb9a8b907ee007ff07e4d2a7725f8ff4eda1f24988619" }, "downloads": -1, "filename": "circbuf-0.1b1-py32, py33, py34-none-any.whl", "has_sig": true, "md5_digest": "89bbe8cdf6637887cd97edbf22c8ad52", "packagetype": "bdist_wheel", "python_version": "py32, py33, py34", "requires_python": null, "size": 4851, "upload_time": "2014-07-22T20:33:15", "url": "https://files.pythonhosted.org/packages/23/ef/e5753b816da94c2217b180c0b4ee116e1f5f62e83e904cf9cada12092372/circbuf-0.1b1-py32,%20py33,%20py34-none-any.whl" } ] }