{ "info": { "author": "Arts Alliance Media", "author_email": "dev@artsalliancemedia.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "[![Build Status](https://travis-ci.org/mjohnsullivan/python-klv.png)](http://travis-ci.org/mjohnsullivan/python-klv)\n\nKLV in Python\n=============\n\nA Python parser for KLV (Key Length Value) encoded data. KLV encoding is commonly used in the motion picture industry.\n\nhttp://en.wikipedia.org/wiki/KLV\n\nUnit Tests\n----------\n\nInstall nose:\n\n```bash\npip install nose\n```\n\nRun the command ```nosetests``` in the root directory.\n\nEncode Key/Value\n----------------\n\n```python\nimport klv\nkey = [0x03, 0x2E, 0x5F, 0xAB, 0x08, 0x12, 0x2F, 0x0C,\n 0xEE, 0x33, 0x00, 0x01, 0x02, 0x45, 0x6D, 0xDD]\nvalue = [0x05, 0x04, 0x03, 0x02, 0x01]\nklv_msg = klv.encode(key, value)\n```\n\n```klv_msg``` will be a bytearray; to convert to an array of ints, use ```list(klv_msg)``` and to convert to a string of bytes, use ```str(klv_msg)```.\n\nDecode KLV Messages\n-------------------\n\n```python\nimport klv\nkey, value = klv.decode(klv_msg, 16)\n```\n\nDecode takes the form ```decode(, )``` to accomodate messages with different length keys. The ```key``` and ```value``` results are bytearrays.\n\n", "description_content_type": "text/markdown; charset=UTF-8; variant=GFM", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/mjohnsullivan/python-klv", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "klv", "package_url": "https://pypi.org/project/klv/", "platform": "", "project_url": "https://pypi.org/project/klv/", "project_urls": { "Homepage": "https://github.com/mjohnsullivan/python-klv" }, "release_url": "https://pypi.org/project/klv/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "Key Length Value encoding and decoding", "version": "0.0.5" }, "last_serial": 5631694, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "78cfe5fb0a4710aaf331a6ee30eba563", "sha256": "a0d5679309e7216941d091bcb633e8676911a640f9e0b1b98e0258a93ae1e5d6" }, "downloads": -1, "filename": "klv-0.0.1.tar.gz", "has_sig": false, "md5_digest": "78cfe5fb0a4710aaf331a6ee30eba563", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1426, "upload_time": "2013-12-04T16:02:10", "url": "https://files.pythonhosted.org/packages/9d/41/46ec3728fcfeb3a5cbfe5e4ec5aff2fa523a04bf86e075a7f7bf8abffc77/klv-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "dadfdef54639816304663aabb74425e4", "sha256": "e5e5f66383d43dd4cda4afe7cad7c03d93d335e04d0b49b46f1cc9c2854bd69c" }, "downloads": -1, "filename": "klv-0.0.2.tar.gz", "has_sig": false, "md5_digest": "dadfdef54639816304663aabb74425e4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1552, "upload_time": "2013-12-05T13:31:53", "url": "https://files.pythonhosted.org/packages/59/05/50c393a42016aa2d257f0384a02e705d22b2a076542fea2dda703c20b303/klv-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "9432a062333b9df13c00b88ddbcb5adc", "sha256": "514bed2f85b610de9c8b6f0f1b0ddcac14cd4ed3bc58d5039cb056d414731441" }, "downloads": -1, "filename": "klv-0.0.3.tar.gz", "has_sig": false, "md5_digest": "9432a062333b9df13c00b88ddbcb5adc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1558, "upload_time": "2019-08-04T21:01:29", "url": "https://files.pythonhosted.org/packages/6d/ad/03417176c2b7cd19c1a2584cb2e1984a8b3c9649d3b73c9f59ea5eec89ca/klv-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "de59f4d9fd606594dfa6eb461aefbbce", "sha256": "ea7e9a6a0eddc8abe5b282488de31f72b2761fd8bdb1d38451e08be1f4e6d1b5" }, "downloads": -1, "filename": "klv-0.0.4.tar.gz", "has_sig": false, "md5_digest": "de59f4d9fd606594dfa6eb461aefbbce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2026, "upload_time": "2019-08-04T21:07:22", "url": "https://files.pythonhosted.org/packages/e1/2b/294a7903e752f273029ac855f8af5578926fe639ac7e33eeb40aed8be62d/klv-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "626112f3d620e3ba57d884fd171c6380", "sha256": "7f89d3ac3f4bb44bf78af63a74c19ff64bcaf7cd9500ad727d62e665aa3faf7e" }, "downloads": -1, "filename": "klv-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "626112f3d620e3ba57d884fd171c6380", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3655, "upload_time": "2019-08-04T21:59:48", "url": "https://files.pythonhosted.org/packages/67/6e/b3496b17c04f2b46d5b4e760dfccdd329da80a43fa7777387f35f2b47e5c/klv-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f77a4a4f452ba95473888ebe08f41935", "sha256": "9538f82eef1758368c699abb79649a5131c060c93c0b91033ec7ae6eb50bfe8c" }, "downloads": -1, "filename": "klv-0.0.5.tar.gz", "has_sig": false, "md5_digest": "f77a4a4f452ba95473888ebe08f41935", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2657, "upload_time": "2019-08-04T21:59:50", "url": "https://files.pythonhosted.org/packages/52/4e/f89c601a0251116d7eb2b74d8c582084266808b0411b88acca41ecf0cb4a/klv-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "626112f3d620e3ba57d884fd171c6380", "sha256": "7f89d3ac3f4bb44bf78af63a74c19ff64bcaf7cd9500ad727d62e665aa3faf7e" }, "downloads": -1, "filename": "klv-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "626112f3d620e3ba57d884fd171c6380", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3655, "upload_time": "2019-08-04T21:59:48", "url": "https://files.pythonhosted.org/packages/67/6e/b3496b17c04f2b46d5b4e760dfccdd329da80a43fa7777387f35f2b47e5c/klv-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f77a4a4f452ba95473888ebe08f41935", "sha256": "9538f82eef1758368c699abb79649a5131c060c93c0b91033ec7ae6eb50bfe8c" }, "downloads": -1, "filename": "klv-0.0.5.tar.gz", "has_sig": false, "md5_digest": "f77a4a4f452ba95473888ebe08f41935", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2657, "upload_time": "2019-08-04T21:59:50", "url": "https://files.pythonhosted.org/packages/52/4e/f89c601a0251116d7eb2b74d8c582084266808b0411b88acca41ecf0cb4a/klv-0.0.5.tar.gz" } ] }