{ "info": { "author": "Jason Webb", "author_email": "bigjasonwebb@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Text Processing :: Markup", "Topic :: Text Processing :: Markup :: XML" ], "description": "-------\nSummary\n-------\nDataTree is a DSL for creating structured documents in python. Inspired by \n`ruby builder`_ but with the goal of reducing the amount of line noise associated \nwith creating XML documents in python. As an added bonus the tree can be output\nto to any structured format (with XML, JSON and YAML supported in the library).\n\n*Note:* More documentation is coming soon but for now a very basic rough draft can be\nfound at `datatree.readthedocs.org `_.\n\n------------\nInstallation\n------------\nYou can install via `PyPi `_ or direct \nfrom the github_ repo.\n\nTo install with pip::\n\n $ pip install datatree\n\nTo install with easy_install::\n\n $ easy_install datatree\n\n-------\nExample\n-------\nA small example:: \n\n from datatree import Tree, Node\n\n tree = Tree()\n with tree.author() as author:\n author.name('Terry Pratchett')\n author.genre('Fantasy/Comedy')\n author // \"Only 2 books listed\"\n with author.novels(count=2) as novels:\n novels.novel('Small Gods', year=1992)\n novels.novel('The Fifth Elephant', year=1999)\n novels << Node(\"novel\", \"Guards! Guards!\", year=1989)\n\n print tree(pretty=True) \n\nWhich produces the XML::\n\n \n Terry Pratchett\n Fantasy/Comedy\n \n \n Small Gods\n The Fifth Elephant\n Guards! Guards!\n \n \n\nOr the JSON::\n\n {\n \"author\": {\n \"genre\": \"Fantasy/Comedy\", \n \"name\": \"Terry Pratchett\", \n \"novels\": [\n \"Small Gods\", \n \"The Fifth Elephant\", \n \"Guards! Guards!\"\n ]\n }\n }\n\nOr the YAML::\n\n author:\n genre: Fantasy/Comedy\n name: Terry Pratchett\n novels: [Small Gods, The Fifth Elephant, Guards! Guards!]\n\n\nLicense\n-------\nThis work is licensed under the `Apache License, Version 2.0 `_.\n\nSouce Code\n----------\nThe source code can be found on github_.\n\nFeedback\n--------\nI welcome any and all constructive feedback. Feel free to contact me (Jason Webb) at \n`www.bigjason.com `_ or on twitter \n`@bigjasonwebb `_.\n\nContributing\n------------\nContributions are welcome. Just fork on github_ and I will try to be as responsive\nas possible.\n\n\n.. _ruby builder: http://builder.rubyforge.org/\n.. _github: https://github.com/bigjason/datatree", "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/bigjason/datatree", "keywords": null, "license": "Creative Commons Attribution 3.0 Unported License", "maintainer": null, "maintainer_email": null, "name": "datatree", "package_url": "https://pypi.org/project/datatree/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/datatree/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bigjason/datatree" }, "release_url": "https://pypi.org/project/datatree/0.1.8.1/", "requires_dist": null, "requires_python": null, "summary": "DSL for creating structured documents in python.", "version": "0.1.8.1" }, "last_serial": 788823, "releases": { "0.1.6": [ { "comment_text": "", "digests": { "md5": "586aac8dd8a485ff7a22e80e20d2cd3b", "sha256": "71cf878ec75022ff2f346a0ea937b9eee67d2455f2b0526c9d5d37213210bbfd" }, "downloads": -1, "filename": "datatree-0.1.6.tar.gz", "has_sig": false, "md5_digest": "586aac8dd8a485ff7a22e80e20d2cd3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10333, "upload_time": "2011-06-17T05:18:08", "url": "https://files.pythonhosted.org/packages/9a/f1/e6b3cb63c6b80683861ef6b908b346dfe4a72be93ec7340d6adfd13cdc73/datatree-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "aa1126bb06110ce5737a1a17faab99ea", "sha256": "6d46c155e67da1ba477284e9aeb77b1732efa7358174c5e8e99d46dad549706e" }, "downloads": -1, "filename": "datatree-0.1.7.tar.gz", "has_sig": false, "md5_digest": "aa1126bb06110ce5737a1a17faab99ea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10386, "upload_time": "2011-06-17T07:29:10", "url": "https://files.pythonhosted.org/packages/2e/42/7a2afa1f940e62937280abadf094530b3d31640c37ae569b311d46488bfa/datatree-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "ee6213e8f8f1fc00ab7c9f66cebc7a21", "sha256": "73ef773e646703283e946e3009306e985d3310389dc976cc2e06232dc84e9191" }, "downloads": -1, "filename": "datatree-0.1.8.tar.gz", "has_sig": false, "md5_digest": "ee6213e8f8f1fc00ab7c9f66cebc7a21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12142, "upload_time": "2011-06-22T07:28:41", "url": "https://files.pythonhosted.org/packages/a4/6f/d338559f0788b8389e1ebac45c913259382cb8ade5af582b7510eea5f33e/datatree-0.1.8.tar.gz" } ], "0.1.8.1": [ { "comment_text": "", "digests": { "md5": "71171dbf4b9ef7d07bc01b4a962af3a8", "sha256": "8827beeff680842c70dad7f52e57b3d7044f2a4749a7e1e1516517fb5f443a84" }, "downloads": -1, "filename": "datatree-0.1.8.1.tar.gz", "has_sig": false, "md5_digest": "71171dbf4b9ef7d07bc01b4a962af3a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12516, "upload_time": "2011-06-26T21:47:38", "url": "https://files.pythonhosted.org/packages/f4/58/dd010d582126b58e67e21f4d6dbd08bc6cdb53879b045c2cc627892ff978/datatree-0.1.8.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "71171dbf4b9ef7d07bc01b4a962af3a8", "sha256": "8827beeff680842c70dad7f52e57b3d7044f2a4749a7e1e1516517fb5f443a84" }, "downloads": -1, "filename": "datatree-0.1.8.1.tar.gz", "has_sig": false, "md5_digest": "71171dbf4b9ef7d07bc01b4a962af3a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12516, "upload_time": "2011-06-26T21:47:38", "url": "https://files.pythonhosted.org/packages/f4/58/dd010d582126b58e67e21f4d6dbd08bc6cdb53879b045c2cc627892ff978/datatree-0.1.8.1.tar.gz" } ] }