{ "info": { "author": "Jakub Stasiak", "author_email": "jakub@stasiak.at", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Libraries", "Topic :: Utilities" ], "description": "coalringbuf\n===========\n\n.. image:: https://travis-ci.org/jstasiak/coalringbuf.png?branch=master\n :alt: Build status\n :target: https://travis-ci.org/jstasiak/coalringbuf\n\n*coalringbuf* is Python port of CoalescingRingBuffer from `LMAXCollections `_. *coalringbuf* works with:\n\n* CPython 2.x >= 2.5, 3.x >= 3.2\n* PyPy 1.9+\n\nSupported platforms: platform independent.\n\nStatus\n------\n\nIt's usable and it passes port of original test suite. It's currently based on LMAXCollections 1.1.0.\n\nUsage\n-----\n\nThis port mimics original CoalescingRingBuffer API as closely as possible, however it was modified to make it more Pythonic.\n\nExample intepreter session:\n\n.. code-block:: python\n\n >>> from coalringbuf import CoalescingRingBuffer\n >>> buffer = CoalescingRingBuffer(3)\n >>> buffer.capacity\n 4\n >>> buffer.empty\n True\n >>> buffer.offer('something')\n True\n >>> buffer.empty\n False\n >>> buffer.offer('something else')\n True\n >>> buffer.offer('quack')\n True\n >>> buffer.offer('id', 'value')\n True\n >>> buffer.size\n 4\n >>> buffer.full\n True\n >>> buffer.offer('id', 'this will overwrite \"value\"')\n True\n >>> buffer.size\n 4\n >>> buffer.offer('this will be rejected')\n False\n >>> buffer.size\n 4\n >>> bucket = []\n >>> buffer.poll(bucket)\n 4\n >>> bucket\n ['something', 'something else', 'quack', 'this will overwrite \"value\"']\n >>> buffer.empty\n True\n\nTODO\n----\n\n* implement performance tests\n* provide more efficient bucket class if needed\n\n\nCopyright\n---------\n\nOriginal implementation (C) `LMAX `_/`Nick Zeeb `_.\n\nPython implementation (C) 2013 `Jakub Stasiak `_.\n\nThis project is licensed under MIT license, see LICENSE file for details.", "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/jstasiak/coalringbuf", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "coalringbuf", "package_url": "https://pypi.org/project/coalringbuf/", "platform": "any", "project_url": "https://pypi.org/project/coalringbuf/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jstasiak/coalringbuf" }, "release_url": "https://pypi.org/project/coalringbuf/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python port of CoalescingRingBuffer from LMAXCollections", "version": "0.1.0" }, "last_serial": 823684, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5f914b94150b9716e9436378d4b1e336", "sha256": "dbba01d1b8e5dc08a91baba458ad6ff2dc9b67f17895c51774afe515caf8c375" }, "downloads": -1, "filename": "coalringbuf-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5f914b94150b9716e9436378d4b1e336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3575, "upload_time": "2013-07-24T06:31:01", "url": "https://files.pythonhosted.org/packages/35/2d/61c3c1791575f5abc54917eccb5ca4be9fc7e3fd3fb4d3371019e1694fa0/coalringbuf-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5f914b94150b9716e9436378d4b1e336", "sha256": "dbba01d1b8e5dc08a91baba458ad6ff2dc9b67f17895c51774afe515caf8c375" }, "downloads": -1, "filename": "coalringbuf-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5f914b94150b9716e9436378d4b1e336", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3575, "upload_time": "2013-07-24T06:31:01", "url": "https://files.pythonhosted.org/packages/35/2d/61c3c1791575f5abc54917eccb5ca4be9fc7e3fd3fb4d3371019e1694fa0/coalringbuf-0.1.0.tar.gz" } ] }