{ "info": { "author": "cuile", "author_email": "i@cuile.com", "bugtrack_url": null, "classifiers": [], "description": "# sequence2hash - Convert sequence to hash\nThis tool converts a valid value in a sequence to a hash and contains a path to a valid value in the key field\n\n## Features\n- Convert valid values in the sequence to hashes\n- Paths showing valid values in the key field\n- Valid values not (), [], {}, None, ''\n\n## Requirements\n- Does not require any third party libraries\n\n## Installation\n```Bash\npip install sequence2hash\n```\n\n## Examples\nDefine the sequence variable:\n```Python\nparameters = {\n\u00a0\u00a0\u00a0\u00a0'queryKey': '',\n\u00a0\u00a0\u00a0\u00a0'constraints': {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'ids': [],\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'phids': (),\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'name': 'Operating platform'\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'members': ('Bunoob', 1944, 'Google'),\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'watchers': [],\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'status': '',\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'isMilestone': True,\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'icons': [],\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'colors': ['blue', '', 'red', ''],\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'parents': [],\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'ancestors': [],\n\u00a0\u00a0\u00a0\u00a0},\n\u00a0\u00a0\u00a0\u00a0'attachments': {\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0'subscribers': None\n\u00a0\u00a0\u00a0\u00a0},\n\u00a0\u00a0\u00a0\u00a0'order': 'newest',\n\u00a0\u00a0\u00a0\u00a0'before': '',\n\u00a0\u00a0\u00a0\u00a0'after': '',\n\u00a0\u00a0\u00a0\u00a0'limit': {}\n}\n```\nTransfer:\n```Python\nimport sequence2hash\nfor x in sequence2hash.flatten(parameters):\n\u00a0\u00a0\u00a0\u00a0print(x)\n```\nOutput:\n```Bash\n{'key': ['constraints', 'name'], 'value': 'Operating platform'}\n{'key': ['constraints', 'members', '0'], 'value': 'Bunoob'}\n{'key': ['constraints', 'members', '1'], 'value': 1944}\n{'key': ['constraints', 'members', '2'], 'value': 'Google'}\n{'key': ['constraints', 'isMilestone'], 'value': True}\n{'key': ['constraints', 'colors', '0'], 'value': 'blue'}\n{'key': ['constraints', 'colors', '2'], 'value': 'red'}\n{'key': ['order'], 'value': 'newest'}\n```\n\n## Credits\n- [Python Cookbook 3rd Edition Documentation](http://python3-cookbook.readthedocs.io/zh_CN/latest/) : Life is short and I use Python!", "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/Cuile/sequence2hash", "keywords": "tuple dict list sequence hash key/value", "license": "", "maintainer": "", "maintainer_email": "", "name": "sequence2hash", "package_url": "https://pypi.org/project/sequence2hash/", "platform": "", "project_url": "https://pypi.org/project/sequence2hash/", "project_urls": { "Homepage": "https://github.com/Cuile/sequence2hash" }, "release_url": "https://pypi.org/project/sequence2hash/1.1.2/", "requires_dist": null, "requires_python": "", "summary": "This tool converts a valid value in a sequence to a hash and contains a path to a valid value in the key field", "version": "1.1.2" }, "last_serial": 3827824, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "927fd6bd385f083701982e7f61dcfff8", "sha256": "87266b14b65d3472bd63f0aa289650d6050cebc6e2351e1a4ae2927569a437e9" }, "downloads": -1, "filename": "sequence2hash-1.0.1.tar.gz", "has_sig": false, "md5_digest": "927fd6bd385f083701982e7f61dcfff8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1388, "upload_time": "2018-05-02T10:12:00", "url": "https://files.pythonhosted.org/packages/0b/09/465f4db2e0b91f86e5cfc39a0eee551423dd2f0db8bda7a6f956e0674056/sequence2hash-1.0.1.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "4c5bc095c1362eef95d698af0f12e2bb", "sha256": "2c78f5347cd399757ccc573a324ddba56393a0e82ba17ecd48377b11f55c21cf" }, "downloads": -1, "filename": "sequence2hash-1.1.2.tar.gz", "has_sig": false, "md5_digest": "4c5bc095c1362eef95d698af0f12e2bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2398, "upload_time": "2018-05-02T17:09:28", "url": "https://files.pythonhosted.org/packages/53/ff/0d86208752d071b610c6bd44c89ff51436ba5a4cce710d73232cfb71473f/sequence2hash-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4c5bc095c1362eef95d698af0f12e2bb", "sha256": "2c78f5347cd399757ccc573a324ddba56393a0e82ba17ecd48377b11f55c21cf" }, "downloads": -1, "filename": "sequence2hash-1.1.2.tar.gz", "has_sig": false, "md5_digest": "4c5bc095c1362eef95d698af0f12e2bb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2398, "upload_time": "2018-05-02T17:09:28", "url": "https://files.pythonhosted.org/packages/53/ff/0d86208752d071b610c6bd44c89ff51436ba5a4cce710d73232cfb71473f/sequence2hash-1.1.2.tar.gz" } ] }