{ "info": { "author": "Yoyo Zhou", "author_email": "iamyoyozhou@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Utilities" ], "description": "pyTree\n======\n\nA Python implementation of Tree data structure\n \n#Examples\n\n## Build up tree structure:\n### Initialization case 1: Initialize as single node\n\t root = Tree('Root')\n\t child01 = Tree('C01')\n\t child02 = Tree('C02')\n\t child03 = Tree('C03')\n\t child11 = Tree('C11')\n\t child31 = Tree('C31')\n\t child111 = Tree('C111')\n\t child112 = Tree('C112')\n\t #add children nodes\n\t root.addChildren([child01, child02, child03]) \n\t child01.addChild(child11)\n\t child03.addChild(child31)\n\t child11.addChild(child111)\n\t child11.addChild(child112)\n\t \n\t #to print hierarchy tree structure\n\t root.prettyTree()\n\t #to print nested-list tree structure\n\t #root.nestedTree()\n#### Output:\n\t\t \tRoot\n\t |___ C01\n\t | |___ C11\n\t | |___ C111\n\t | |___ C112\n\t |___ C02\n\t |___ C03\n\t | |___ C31\n\t \n### Initialization case 2: Initialize with child\n\t\tchild31 = Tree('C31')\n\t \tchild03 = Tree('C03', child31 )\n \t\t\t\n### Initialization case 3: Initialize with children\n\t\tchild01 = Tree('C01')\n\t\tchild02 = Tree('C02')\n\t\tchild03 = Tree('C03')\n\t\troot = Tree('Root', [child01, child02, child03] )\n \t\t\t\n## Methods\n\t\tMethods\n\t\t\t|___ addChild\n\t\t\t|___ addChildren\n\t\t\t|___ getParent\n\t\t\t|___ getChild\n\t\t\t|___ getChildren\n\t\t\t|___ getNode\n\t\t\t|___ delChild\n\t\t\t|___ delNode\n\t\t\t|___ getRoot\n\t\t\t|___ isRoot\n\t\t\t|___ isBranch\n\t\t\t|___ prettyTree\n\t\t\t|___ nestedTree\n\n#LICENSING\nCopyright 2012 Yoyo Zhou. Distributed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0.html). See the `LICENSE` file for details.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yoyzhou/pyTree", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "pyTree", "package_url": "https://pypi.org/project/pyTree/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyTree/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/yoyzhou/pyTree" }, "release_url": "https://pypi.org/project/pyTree/2.0.0/", "requires_dist": null, "requires_python": null, "summary": "A list-derived TREE data structure in Python 3", "version": "2.0.0" }, "last_serial": 796932, "releases": { "2.0.0": [ { "comment_text": "", "digests": { "md5": "172802a22fe0e00b3388d576c17e688a", "sha256": "18267a9bd5abe697a05612d127008febfc66e531894bc89254c4c6a8d85663ad" }, "downloads": -1, "filename": "pyTree-2.0.0.tar.gz", "has_sig": false, "md5_digest": "172802a22fe0e00b3388d576c17e688a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4736, "upload_time": "2012-10-02T11:42:50", "url": "https://files.pythonhosted.org/packages/e2/ed/a0507be6ab4c363a349652f0b48983490856a07bb3d1a8c8b4889c3c4c96/pyTree-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "172802a22fe0e00b3388d576c17e688a", "sha256": "18267a9bd5abe697a05612d127008febfc66e531894bc89254c4c6a8d85663ad" }, "downloads": -1, "filename": "pyTree-2.0.0.tar.gz", "has_sig": false, "md5_digest": "172802a22fe0e00b3388d576c17e688a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4736, "upload_time": "2012-10-02T11:42:50", "url": "https://files.pythonhosted.org/packages/e2/ed/a0507be6ab4c363a349652f0b48983490856a07bb3d1a8c8b4889c3c4c96/pyTree-2.0.0.tar.gz" } ] }