{ "info": { "author": "Charles Xu", "author_email": "charl3s.xu@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: Other/Proprietary License", "Operating System :: Android", "Operating System :: iOS", "Operating System :: MacOS", "Operating System :: Microsoft", "Operating System :: Other OS", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python" ], "description": "# Introduction\n\n\n\nI opened this project to show datastructures by hacking `__repr__` function of Python.\n\n\n\n## Installation\n\n\n\n`pip install dsr`\n\n\n\n## Example\n\n\n\n`from dsr import BinaryTreeNode, TreeNode`\n\n\n\n```python\n\nprint('BinaryTreeNode:')\n\na = BinaryTreeNode(100)\n\nb = BinaryTreeNode(2)\n\nc = BinaryTreeNode(0, a, b)\n\nd = BinaryTreeNode('a', c, c)\n\na.right = d\n\na.left = d\n\n\n\nprint(d)\n\nprint('TreeNode:')\n\nroot = TreeNode('tree', [\n\n TreeNode('types', [TreeNode(str), TreeNode(int)]),\n\n TreeNode('values', [TreeNode(1), TreeNode(3.1415926), TreeNode(True)]),\n\n TreeNode('empty'),\n\n 2.718281828,\n\n 'Not TreeNode'\n\n])\n\nprint(root)\n\n```\n\nBinaryTreeNode\n\n```\n\n ('a') \n\n / \\ \n\n (0) (0) \n\n / \\ / \\ \n\n (100) (2) (100) (2)\n\n / \\ / \\ \n\n... ... ... ... \n\n```\n\nTreeNode\n\n```\n\n('tree')\n\n\u00a0\u251c\u2500\u2500 ('types')\n\n\u00a0\u2502\u00a0\u00a0 \u00a0\u251c\u2500\u2500 ()\n\n\u00a0\u2502\u00a0\u00a0 \u00a0\u2514\u2500\u2500 ()\n\n\u00a0\u251c\u2500\u2500 ('values')\n\n\u00a0\u2502\u00a0\u00a0 \u00a0\u251c\u2500\u2500 (1)\n\n\u00a0\u2502\u00a0\u00a0 \u00a0\u251c\u2500\u2500 (3.1415926)\n\n\u00a0\u2502\u00a0\u00a0 \u00a0\u2514\u2500\u2500 (True)\n\n\u00a0\u251c\u2500\u2500 ('empty')\n\n\u00a0\u251c\u2500\u2500 2.718281828\n\n\u00a0\u2514\u2500\u2500 'Not TreeNode'\n\n```\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/the0demiurge/DataStructureRepr", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dsr", "package_url": "https://pypi.org/project/dsr/", "platform": "", "project_url": "https://pypi.org/project/dsr/", "project_urls": { "Homepage": "https://github.com/the0demiurge/DataStructureRepr" }, "release_url": "https://pypi.org/project/dsr/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "Automatically gegerate repr to show data structures espelly trees", "version": "1.0.2" }, "last_serial": 5975520, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "e541efc9f5b69047090ef77f5b9c1fdc", "sha256": "91b815bd5bcebb1b67cc4a26e6aab61f36f12677afc7539c8fc32c0301aaa762" }, "downloads": -1, "filename": "dsr-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e541efc9f5b69047090ef77f5b9c1fdc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2417, "upload_time": "2019-10-07T06:14:50", "url": "https://files.pythonhosted.org/packages/cd/27/a286d8a8d35b07a38706ead9c80fc0ac09d86b3313568ce94e8d06b1cf02/dsr-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6a5f411754ed822ae1825872e431bf99", "sha256": "8297d8539b9bc77f409151191ac36e943285de6d70a3ab34c0ef5e6e7940b02a" }, "downloads": -1, "filename": "dsr-1.0.0.tar.gz", "has_sig": false, "md5_digest": "6a5f411754ed822ae1825872e431bf99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1683, "upload_time": "2019-10-07T06:14:54", "url": "https://files.pythonhosted.org/packages/8e/08/62298afc8348283bddfd1e3a440c675c2f98d59493a4032f046609ae47d3/dsr-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1a07b65e3bb7c46e4eae3ae74f22f4ce", "sha256": "15b051ea6bc883d5355f14017e96b3ad1e15b21faad937b34860a425c8d1f309" }, "downloads": -1, "filename": "dsr-1.0.1-py3.7.egg", "has_sig": false, "md5_digest": "1a07b65e3bb7c46e4eae3ae74f22f4ce", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 4896, "upload_time": "2019-10-08T05:34:27", "url": "https://files.pythonhosted.org/packages/6f/76/f0b9b12dd4a059d82feae9ff84ef1e005ca102051fbf3223e1e07fbffb6c/dsr-1.0.1-py3.7.egg" }, { "comment_text": "", "digests": { "md5": "1dcec11cda73b4d8d2141bb5d2f56b15", "sha256": "812282cdda7cb6c2a06148d35cd6cb0f4575155894aa50deaf899523ad4854ad" }, "downloads": -1, "filename": "dsr-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1dcec11cda73b4d8d2141bb5d2f56b15", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3677, "upload_time": "2019-10-08T05:34:26", "url": "https://files.pythonhosted.org/packages/bc/0f/649175ec8738983151923892bb66a7d2222b0cc9e513c6b056a4a2d366a5/dsr-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6929add1138f13f53536cf1b0e5e7c16", "sha256": "dca76cf29c5732fe38fd43ce24480ca7e323f9cc63ea2014003bb41f47fff331" }, "downloads": -1, "filename": "dsr-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6929add1138f13f53536cf1b0e5e7c16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2591, "upload_time": "2019-10-08T05:34:29", "url": "https://files.pythonhosted.org/packages/57/13/682d628f23eef57a679679d7369f9c537db3484bec3f05449f7afca6c9b0/dsr-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "e161ab84392f3efccbf95810bcd2fcc8", "sha256": "4201ba03b4c2fd2c333c366615e33537af08c3b376b1a2b4f97842294c0c0f74" }, "downloads": -1, "filename": "dsr-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e161ab84392f3efccbf95810bcd2fcc8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3688, "upload_time": "2019-10-15T08:24:43", "url": "https://files.pythonhosted.org/packages/ac/a1/19e4a3d9374f493ba9157171921c3a81d41a75fc54a99e4b55214af0f621/dsr-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8849b10f9334f3b57d5b7802b388b4e3", "sha256": "b686c124e952e2ca92d8da6c5f53721cb80742c6726227564d75810e389c2697" }, "downloads": -1, "filename": "dsr-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8849b10f9334f3b57d5b7802b388b4e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2617, "upload_time": "2019-10-15T08:24:45", "url": "https://files.pythonhosted.org/packages/11/7f/023f36bbdc2f1a9944cfe35c26770ce540be9798a40add658bad21df3e6d/dsr-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "e161ab84392f3efccbf95810bcd2fcc8", "sha256": "4201ba03b4c2fd2c333c366615e33537af08c3b376b1a2b4f97842294c0c0f74" }, "downloads": -1, "filename": "dsr-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "e161ab84392f3efccbf95810bcd2fcc8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3688, "upload_time": "2019-10-15T08:24:43", "url": "https://files.pythonhosted.org/packages/ac/a1/19e4a3d9374f493ba9157171921c3a81d41a75fc54a99e4b55214af0f621/dsr-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8849b10f9334f3b57d5b7802b388b4e3", "sha256": "b686c124e952e2ca92d8da6c5f53721cb80742c6726227564d75810e389c2697" }, "downloads": -1, "filename": "dsr-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8849b10f9334f3b57d5b7802b388b4e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2617, "upload_time": "2019-10-15T08:24:45", "url": "https://files.pythonhosted.org/packages/11/7f/023f36bbdc2f1a9944cfe35c26770ce540be9798a40add658bad21df3e6d/dsr-1.0.2.tar.gz" } ] }