{ "info": { "author": "Stephen", "author_email": "stephsolis@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering" ], "description": "# kameris-formats\n\n[![Travis](https://travis-ci.org/stephensolis/kameris-formats.svg?branch=master)](https://travis-ci.org/stephensolis/kameris-formats)\n[![Codacy](https://api.codacy.com/project/badge/Grade/a61ec5a7cb51408a8682da2d2f574eba)](https://www.codacy.com/app/stephensolis/kameris-formats)\n[![Codebeat](https://codebeat.co/badges/6bbcb148-37b7-40d7-ba5e-21340541ada8)](https://codebeat.co/projects/github-com-stephensolis-kameris-formats-master)\n[![Codeclimate](https://api.codeclimate.com/v1/badges/10a65d7201ebbfb56ab5/maintainability)](https://codeclimate.com/github/stephensolis/kameris-formats/maintainability)\n\nThese are implementations of readers and writers for the file formats used by [kameris-backend](https://github.com/stephensolis/kameris-backend), for the following languages:\n\n| Language | Location | Notes |\n|-------------|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------|\n| C++ | [`cpp/`](https://github.com/stephensolis/kameris-formats/tree/master/cpp) | Header-only, requires [libkameris](https://github.com/stephensolis/kameris-backend/tree/master/libkameris) |\n| Python | [`python/`](https://github.com/stephensolis/kameris-formats/tree/master/python) | On PyPI: [![PyPI version](https://badge.fury.io/py/kameris-formats.svg)](https://badge.fury.io/py/kameris-formats) |\n\n\n---\n\n## File formats\n\nThere are two different file formats used to store program output. `repr` mode generates files with the extension `.mm-repr` and `dist` mode generates files with the extension `.mm-dist`.\n\nData is always stored in little-endian format. All header values except the signature are unsigned integers.\n\n`element_type` is a common enum used to specify the type of the stored data. Its values are as follows:\n\n| Value | Name | Element size (bytes) | Description |\n|-------|-----------|----------------------|------------------------------------------|\n| 0 | `uint8` | 1 | 8-bit unsigned integer |\n| 1 | `uint16` | 2 | 16-bit unsigned integer |\n| 2 | `uint32` | 4 | 32-bit unsigned integer |\n| 3 | `uint64` | 8 | 64-bit unsigned integer |\n| 4 | `float32` | 4 | IEEE 754 single-precision floating point |\n| 5 | `float64` | 8 | IEEE 754 double-precision floating point |\n\n## `repr` format (`.mm-repr` files)\n\n### Header\n\n| Start | End | Size (bytes) | Name | Description |\n|-------|------|---------------|--------------|---------------------------------------------------------------------------|\n| 0x00 | 0x05 | 6 | `signature` | File signature, always \"MMREPR\" |\n| 0x06 | 0x06 | 1 | `version` | Always 0 |\n| 0x07 | 0x07 | 1 | `is_sparse` | Whether the matrices are sparse (0 or 1) |\n| 0x08 | 0x08 | 1 | `key_type` | The type of matrix keys as an `element_type`, unused if `is_sparse` is 0 |\n| 0x09 | 0x09 | 1 | `value_type` | The type of matrix values as an `element_type` |\n| 0x0A | 0x11 | 8 | `count` | Number of matrices |\n| 0x12 | 0x19 | 8 | `rows` | Number of rows for each matrix |\n| 0x1A | 0x21 | 8 | `columns` | Number of columns for each matrix |\n| 0x22 | | 8 * `count` | `sizes` | (**Only if `is_sparse` is 1**) Number of non-zero entries for each matrix |\n\nIf the sparse flag is not set, the following `count` * `rows` * `columns` * (size for `value_type`) bytes are the entries, in row-major order, for each of the `count` matrices, one after the other.\n\nIf the sparse flag is set, each of the `count` matrices, one after the other, is stored as (the matrix size from `sizes`) * (size for `key_type`) * (size for `value_type`) bytes which are (the matrix size from `sizes`) pairs of key followed by value. The order of keys is unspecified.\n\n## `dist` format (`.mm-dist` files)\n\n### Header\n\n| Start | End | Size (bytes) | Name | Description |\n|-------|------|---------------|--------------|------------------------------------------------|\n| 0x00 | 0x05 | 6 | `signature` | File signature, always \"MMDIST\" |\n| 0x06 | 0x06 | 1 | `version` | Always 0 |\n| 0x07 | 0x07 | 1 | `value_type` | The type of matrix values as an `element_type` |\n| 0x08 | 0x0F | 8 | `size` | Number of rows = columns of the matrix |\n\nThe following (`size` * (`size` - 1)) / 2 * (size for `value_type`) bytes are the entries **above** the main diagonal, in row-major order, of the matrix. The matrix is assumed to be symmetric and have zeros on the main diagonal.\n\n---\n\n## License ![License](http://img.shields.io/:license-mit-blue.svg)\n\n The MIT License (MIT)\n\n Copyright (c) 2017 Stephen\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\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/stephensolis/kameris-formats/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "kameris-formats", "package_url": "https://pypi.org/project/kameris-formats/", "platform": "", "project_url": "https://pypi.org/project/kameris-formats/", "project_urls": { "Homepage": "https://github.com/stephensolis/kameris-formats/" }, "release_url": "https://pypi.org/project/kameris-formats/1.0.6/", "requires_dist": [ "numpy", "scipy" ], "requires_python": "", "summary": "Reader and writer implementations for the file formats used by kameris-backend.", "version": "1.0.6" }, "last_serial": 4614137, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "6f0677baebddc23f01e7da9298341fac", "sha256": "83efe384d7781be39561756d9f38d5fe4e0a63bb39aa381ce6465a3157c588ca" }, "downloads": -1, "filename": "kameris_formats-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6f0677baebddc23f01e7da9298341fac", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5542, "upload_time": "2018-07-11T03:49:52", "url": "https://files.pythonhosted.org/packages/dd/e4/9b53a1922ab3b8a10ff177c5a05f5433bd2385308d0b5d2a9deda5f94205/kameris_formats-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe65ba8e31bf792105ef5b5f511f2cb2", "sha256": "cb94390f36b5dc09c4c0ecee1f37f1e00a09bcc0e4032db86de2eec819f21a0a" }, "downloads": -1, "filename": "kameris-formats-1.0.0.tar.gz", "has_sig": false, "md5_digest": "fe65ba8e31bf792105ef5b5f511f2cb2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3187, "upload_time": "2018-07-11T03:49:53", "url": "https://files.pythonhosted.org/packages/db/48/6acfc567f977646e4d626ac93d0b6e085920e5b697fc75166c327a4f802b/kameris-formats-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "f31af7b4d606ed89a77c513ba0428f17", "sha256": "ebeb45203ea006ca0a9d12c30d9feb3422a8957a8a691b11ac727c3c209b6742" }, "downloads": -1, "filename": "kameris_formats-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f31af7b4d606ed89a77c513ba0428f17", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5592, "upload_time": "2018-07-11T07:01:03", "url": "https://files.pythonhosted.org/packages/f6/bf/81ed9c22698681957303f1b9b76c531272903d53c149d7c9d1e8aedb6ed0/kameris_formats-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8ee88321a15371b12cb4aab1d438e1d0", "sha256": "faec5c854155c63946240a6c8fa1baea83d45d83a38b49fcdeb5e3caff8b95fb" }, "downloads": -1, "filename": "kameris-formats-1.0.1.tar.gz", "has_sig": false, "md5_digest": "8ee88321a15371b12cb4aab1d438e1d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3176, "upload_time": "2018-07-11T07:01:04", "url": "https://files.pythonhosted.org/packages/86/c8/e06f44282c3a6bc6f59a0b6a3711c7200a1e1a85eb8701221cbaa8fe5615/kameris-formats-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "27c546e2ecd62c41fc4966b627ef2795", "sha256": "1922f24281dcdf45d19a06ca8bd96758a918006ccef7529a29204df2c6f0e96e" }, "downloads": -1, "filename": "kameris_formats-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "27c546e2ecd62c41fc4966b627ef2795", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7725, "upload_time": "2018-07-15T05:28:22", "url": "https://files.pythonhosted.org/packages/b1/cc/473d9582dfc43e486a4b2fbbaab3adf6a745ee2a79565c32db863557b848/kameris_formats-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5f84cd52113fbcac35b35b6805bf7267", "sha256": "752bca234baf40f21a694cc8ab5e14ba89573bc7cd90cd2a9b1063280be5649a" }, "downloads": -1, "filename": "kameris-formats-1.0.2.tar.gz", "has_sig": false, "md5_digest": "5f84cd52113fbcac35b35b6805bf7267", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5496, "upload_time": "2018-07-15T05:28:24", "url": "https://files.pythonhosted.org/packages/97/1d/b8b6f7848e4868c82dd883f784a09067b67312190c54c6b48f921d605df2/kameris-formats-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "d1608fcde482778e4469bbf146f1a656", "sha256": "34ef47a29b33b31752de19b6071090a2e8fafebe4eacbdabc8569d1b87833a5a" }, "downloads": -1, "filename": "kameris_formats-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d1608fcde482778e4469bbf146f1a656", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7731, "upload_time": "2018-07-15T05:39:42", "url": "https://files.pythonhosted.org/packages/c8/de/68e657c0e6349d2ad3af4bd5e4ef4774a60152c74e7988031fc990f7adcc/kameris_formats-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0a72e6393a767e651efd6931009fcc68", "sha256": "a96f0619368159d704e59dee95d0d4f602a966d9aaa30ee516f73685086fb59c" }, "downloads": -1, "filename": "kameris-formats-1.0.3.tar.gz", "has_sig": false, "md5_digest": "0a72e6393a767e651efd6931009fcc68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5531, "upload_time": "2018-07-15T05:39:43", "url": "https://files.pythonhosted.org/packages/fe/56/05f2c5bd6eea35039b51093ba3f51dc43094d203328be55ec14f8d794424/kameris-formats-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "19f19ee432a46a5eb5547b3719093d1d", "sha256": "0a28e4c9961a699fcd51da70409e642ce993c4fa406da607911039e3be41f00e" }, "downloads": -1, "filename": "kameris_formats-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "19f19ee432a46a5eb5547b3719093d1d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7733, "upload_time": "2018-07-15T09:48:45", "url": "https://files.pythonhosted.org/packages/c5/b1/7fcb274b05459551b9e41c7e3b2d21cc119aec15d622837cc9475eddeba0/kameris_formats-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f992e247baf9fcbdd9e6f732ef40547a", "sha256": "43b2287bf97294e0ff915db1b0b9d279233e7747880711bd4beba4104cc3dad9" }, "downloads": -1, "filename": "kameris-formats-1.0.4.tar.gz", "has_sig": false, "md5_digest": "f992e247baf9fcbdd9e6f732ef40547a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5524, "upload_time": "2018-07-15T09:48:46", "url": "https://files.pythonhosted.org/packages/05/6c/36ec23d21d66ffb4c2d935330b1c718aa9552fe143525222a703dba1bff0/kameris-formats-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "c2e7337c6d0535bed68da12d88c8b542", "sha256": "ebb3d8bd6154bc47f22705313a11fe899430850cbbecb71d094d9824165adfac" }, "downloads": -1, "filename": "kameris_formats-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c2e7337c6d0535bed68da12d88c8b542", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7732, "upload_time": "2018-07-15T16:21:16", "url": "https://files.pythonhosted.org/packages/46/a2/573e64253716d8ce1d2b7b728980ec9b6cf28938062c67fb6e1f31a88213/kameris_formats-1.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "34910f8664f7b98b2c1e563958d07a4c", "sha256": "9798f025d278caf906f962896af29c0a509327f523b5bb4564d91c10db9ffa8a" }, "downloads": -1, "filename": "kameris-formats-1.0.5.tar.gz", "has_sig": false, "md5_digest": "34910f8664f7b98b2c1e563958d07a4c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5532, "upload_time": "2018-07-15T16:21:17", "url": "https://files.pythonhosted.org/packages/22/4d/93f268d71a1296c8e58b8c7f5f569785cd66b9e49dd03c57918f685c17ee/kameris-formats-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "f64da9a1f057def233c65a35f3d5e0ef", "sha256": "601f4d9dc7b841c49512940839fedf611b50f9d79f38f3a0b99987311c9cc05e" }, "downloads": -1, "filename": "kameris_formats-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f64da9a1f057def233c65a35f3d5e0ef", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7732, "upload_time": "2018-12-18T22:25:25", "url": "https://files.pythonhosted.org/packages/27/24/f3bff0c31112ce7529c8b62fb04dc3c86ee6d37bc1c11dc2aa203c7096de/kameris_formats-1.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f249d75cf2f118e33988854b34467ee5", "sha256": "88bb78afe79777224be6250b72ce0d57ac387a4640b33ea7b7ad98a0cbf2ef66" }, "downloads": -1, "filename": "kameris-formats-1.0.6.tar.gz", "has_sig": false, "md5_digest": "f249d75cf2f118e33988854b34467ee5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5552, "upload_time": "2018-12-18T22:25:26", "url": "https://files.pythonhosted.org/packages/90/f2/3dd8c9dd68f12e59b75a4d685fc87607bf60d2260d08ea76dc60491815b8/kameris-formats-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f64da9a1f057def233c65a35f3d5e0ef", "sha256": "601f4d9dc7b841c49512940839fedf611b50f9d79f38f3a0b99987311c9cc05e" }, "downloads": -1, "filename": "kameris_formats-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f64da9a1f057def233c65a35f3d5e0ef", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7732, "upload_time": "2018-12-18T22:25:25", "url": "https://files.pythonhosted.org/packages/27/24/f3bff0c31112ce7529c8b62fb04dc3c86ee6d37bc1c11dc2aa203c7096de/kameris_formats-1.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f249d75cf2f118e33988854b34467ee5", "sha256": "88bb78afe79777224be6250b72ce0d57ac387a4640b33ea7b7ad98a0cbf2ef66" }, "downloads": -1, "filename": "kameris-formats-1.0.6.tar.gz", "has_sig": false, "md5_digest": "f249d75cf2f118e33988854b34467ee5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5552, "upload_time": "2018-12-18T22:25:26", "url": "https://files.pythonhosted.org/packages/90/f2/3dd8c9dd68f12e59b75a4d685fc87607bf60d2260d08ea76dc60491815b8/kameris-formats-1.0.6.tar.gz" } ] }