{ "info": { "author": "Zachary Voase", "author_email": "zack@meat.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: Public Domain", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6" ], "description": "Recordinality.py\n================\n\nA Python implementation of the\n`Recordinality `__\nsketch for cardinality estimation and stream sampling. Inspired by C.\nScott Andreas's\n`implementation `__, but\npowered by SipHash-2-4 rather than MurmurHash3. In particular, this\nproject uses two other libraries of mine:\n`csiphash `__ and\n`cskipdict `__.\n\nInstallation\n------------\n\n::\n\n pip install recordinality\n\nUsage\n-----\n\nYou can use the command-line application, which will read lines of text\nincrementally from stdin, printing the stream's cardinality (or a random\nsample) once the pipe is closed:\n\n::\n\n $ recordinality -k [-h|--hash-key ] [-s|--sample] < input-lines.txt\n 3574\n $ cat input-lines.txt | sort -u | wc -l\n 3556\n\nSipHash allows the specification of a 'secret key' (used here as more of\na hash seed); if provided it should be either a 16-char ASCII string or\n32-char hexadecimal string.\n\nYou can also import the ``Recordinality`` class in Python:\n\n.. code:: python\n\n >>> from recordinality import Recordinality\n >>> sketch = Recordinality(size=512)\n >>> for observation in input_observations:\n ... sketch.add(observation)\n >>> print(sketch.cardinality())\n 3574\n >>> print(sketch.k_sample)\n ['strife', 'bragging', 'knight?', ...]\n\nUnlicense\n---------\n\nThis is free and unencumbered software released into the public domain.\n\nAnyone is free to copy, modify, publish, use, compile, sell, or\ndistribute this software, either in source code form or as a compiled\nbinary, for any purpose, commercial or non-commercial, and by any means.\n\nIn jurisdictions that recognize copyright laws, the author or authors of\nthis software dedicate any and all copyright interest in the software to\nthe public domain. We make this dedication for the benefit of the public\nat large and to the detriment of our heirs and successors. We intend\nthis dedication to be an overt act of relinquishment in perpetuity of\nall present and future rights to this software under copyright law.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER\nDEALINGS IN THE SOFTWARE.\n\nFor more information, please refer to http://unlicense.org/\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zacharyvoase/recordinality", "keywords": "", "license": "Unlicense", "maintainer": "", "maintainer_email": "", "name": "recordinality", "package_url": "https://pypi.org/project/recordinality/", "platform": "", "project_url": "https://pypi.org/project/recordinality/", "project_urls": { "Homepage": "https://github.com/zacharyvoase/recordinality" }, "release_url": "https://pypi.org/project/recordinality/0.0.4/", "requires_dist": [ "csiphash (>=0.0.5)", "cskipdict (>=0.0.4)", "coverage; extra == 'test'" ], "requires_python": "", "summary": "A Python implementation of the Recordinality sketch", "version": "0.0.4" }, "last_serial": 3109423, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f732be7c6c201f24ae856abb8ea5827e", "sha256": "6cf29248d01641cdefaf9596ea4356ddb48643c6b70e18449d7ec01cba0d30a5" }, "downloads": -1, "filename": "recordinality-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f732be7c6c201f24ae856abb8ea5827e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6629, "upload_time": "2017-04-27T10:09:09", "url": "https://files.pythonhosted.org/packages/01/48/7ac5231a98207cb7c3b54f4a7bb551c53f067c1153b3bd323edad1f9bd8a/recordinality-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "db76bc4800194d9eb8f6c625dd79ee84", "sha256": "77c41407fe36336c544bbea120129fa7f6ce1e432fd20b973b42fcfe94c12174" }, "downloads": -1, "filename": "recordinality-0.0.1.tar.gz", "has_sig": false, "md5_digest": "db76bc4800194d9eb8f6c625dd79ee84", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4310, "upload_time": "2017-04-27T10:09:11", "url": "https://files.pythonhosted.org/packages/bb/c7/f6e26106a08992f68b9ad345e8384b43aa142cf59b89e17bdaab4a27fc09/recordinality-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "3129cfd7154c9d3d47510d46e4fe2a0c", "sha256": "d2f5bcb42088f47ce486c7e776eaa50919886c1b3cf04465c2cecc764e7c62ed" }, "downloads": -1, "filename": "recordinality-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3129cfd7154c9d3d47510d46e4fe2a0c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6629, "upload_time": "2017-04-27T22:14:40", "url": "https://files.pythonhosted.org/packages/0f/c0/5504e241c1d522d220f00807eeb34dc72d7dcca1d7b95596924594d22087/recordinality-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "26625c75a8966309ff0178dffe50379f", "sha256": "6ffdf572d987632daa36d1ad77317a403d605c6536873d320c3d576491c63275" }, "downloads": -1, "filename": "recordinality-0.0.2.tar.gz", "has_sig": false, "md5_digest": "26625c75a8966309ff0178dffe50379f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41447, "upload_time": "2017-04-27T22:14:41", "url": "https://files.pythonhosted.org/packages/8e/ff/005f9e79ab88c51bba6e00291123da41cb83c22baf88e5b0fde45dadd22f/recordinality-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8b3faae9ed22523ca42685fd2ca107b4", "sha256": "37875ff628f694a29e4380b79edecbbb53a9936b297c2ec6742aafa24c09d9e4" }, "downloads": -1, "filename": "recordinality-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "8b3faae9ed22523ca42685fd2ca107b4", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6629, "upload_time": "2017-04-28T05:55:17", "url": "https://files.pythonhosted.org/packages/3e/78/5ab441918c92d6454bdf82446de5dec42ebc7f1f421d2836ebc3c135fd11/recordinality-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "277b4af3ad63e67b4c664772dc5c9b5f", "sha256": "0b5b13b38da0d66592a31d244be986383d2e62807067c695458117d5925bde8d" }, "downloads": -1, "filename": "recordinality-0.0.3.tar.gz", "has_sig": false, "md5_digest": "277b4af3ad63e67b4c664772dc5c9b5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 41462, "upload_time": "2017-04-28T05:55:18", "url": "https://files.pythonhosted.org/packages/12/d2/3f2c7d5fd391137e7c25144454a56f7ab43bf5acbb1ebbfe243b5cb37001/recordinality-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "0d6cee351c5bec9056cb96f2d9576d74", "sha256": "dfaf61b9a49c7e9d1a05f490b6d8bd6beaf89e14b994dce25157d3670978b54d" }, "downloads": -1, "filename": "recordinality-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0d6cee351c5bec9056cb96f2d9576d74", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6630, "upload_time": "2017-08-20T07:22:39", "url": "https://files.pythonhosted.org/packages/6a/c1/520ebfde0c4d8185b2d668f45890b3c539cccbfc100e084953b718faf163/recordinality-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50cc592d0c1b7a5b4bc148511b172f98", "sha256": "d554f7c2fc50b94a45d85b9f3c42cf7aa3f1586a37ec89530c4109aa3e50ebfd" }, "downloads": -1, "filename": "recordinality-0.0.4.tar.gz", "has_sig": false, "md5_digest": "50cc592d0c1b7a5b4bc148511b172f98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4712, "upload_time": "2017-08-20T07:22:40", "url": "https://files.pythonhosted.org/packages/9a/0a/e344b1598fbc0b3f3ce887a9a032e4390c201484fafa33e348ac1fb297ec/recordinality-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0d6cee351c5bec9056cb96f2d9576d74", "sha256": "dfaf61b9a49c7e9d1a05f490b6d8bd6beaf89e14b994dce25157d3670978b54d" }, "downloads": -1, "filename": "recordinality-0.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0d6cee351c5bec9056cb96f2d9576d74", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6630, "upload_time": "2017-08-20T07:22:39", "url": "https://files.pythonhosted.org/packages/6a/c1/520ebfde0c4d8185b2d668f45890b3c539cccbfc100e084953b718faf163/recordinality-0.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "50cc592d0c1b7a5b4bc148511b172f98", "sha256": "d554f7c2fc50b94a45d85b9f3c42cf7aa3f1586a37ec89530c4109aa3e50ebfd" }, "downloads": -1, "filename": "recordinality-0.0.4.tar.gz", "has_sig": false, "md5_digest": "50cc592d0c1b7a5b4bc148511b172f98", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4712, "upload_time": "2017-08-20T07:22:40", "url": "https://files.pythonhosted.org/packages/9a/0a/e344b1598fbc0b3f3ce887a9a032e4390c201484fafa33e348ac1fb297ec/recordinality-0.0.4.tar.gz" } ] }