{ "info": { "author": "Jun Kikuchi", "author_email": "kikuchi@bonnou.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Text Processing :: Markup :: HTML" ], "description": "Fude (\u7b46)\n=========\n\nFude (\u7b46) is a library for representing HTML in Python. It uses Lists to\nrepresent elements, and Dicts to represent an element\u2019s attributes.\n\nFude is inspired by Hiccup https://github.com/weavejester/hiccup\n\nSyntax\n------\n\nHere is a basic example of Fude syntax:\n\n::\n\n >>> fude.html('text')\n 'text'\n\n >>> fude.html(['tag'])\n ''\n\n >>> fude.html(['div', 'bar'])\n '
bar
'\n\n >>> fude.html(['span', {'class': 'foo'}, 'bar'])\n 'bar'\n\n >>> fude.html(['div', 'bar', ['span', 'baz'], ['span', 'bang']])\n '
barbazbang
'\n\n >>> fude.html(['div', 'bar', [['span', 'baz'], ['span', 'bang']]])\n '
barbazbang
'\n\nThe first element of the List is used as the element name. The second\nattribute can optionally be a Dict, in which case it is used to supply\nthe element\u2019s attributes. Every other element is considered part of the\ntag\u2019s body.\n\nAnd provides a CSS-like shortcut for denoting ``id`` and ``class``\nattributes:\n\n::\n\n >>> fude.html(['div#foo.bar.baz', 'bang'])\n '
bang
'\n\n >>> fude.html(['#foo.bar.baz', 'bang'])\n '
bang
'\n\nIf the body of the element is a List, its contents will be expanded out\ninto the element body. This makes working with functions like ``map``\nand ``List comprehensions``:\n\n::\n\n >>> fude.html(['ul', [['li', x] for x in range(1, 4)]])\n ''", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/packages/source/f/fude/fude-1.0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/JunKikuchi/fude", "keywords": "html", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "fude", "package_url": "https://pypi.org/project/fude/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fude/", "project_urls": { "Download": "http://pypi.python.org/packages/source/f/fude/fude-1.0.1.tar.gz", "Homepage": "https://github.com/JunKikuchi/fude" }, "release_url": "https://pypi.org/project/fude/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Library for rendering HTML in Python", "version": "1.0.1" }, "last_serial": 792201, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "66f65d53b2931fd8bb8ca87924cbc451", "sha256": "407b0b8f7e5948f19618bd1b4cde91cf2e397a9ce5397ba9ea6e93de1fd0cf66" }, "downloads": -1, "filename": "fude-1.0.0.tar.gz", "has_sig": false, "md5_digest": "66f65d53b2931fd8bb8ca87924cbc451", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2272, "upload_time": "2012-12-15T17:18:07", "url": "https://files.pythonhosted.org/packages/0f/73/0177611e2b8ffbb6e79b0151e9d1f6cc23d18253c7d72b6927414ac02901/fude-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1fd3485cb137a16dc46e3a9920bde872", "sha256": "ffb7c7331b517d63bdf0248c9e6e0210bd71782f71050c58397e99e139e570dc" }, "downloads": -1, "filename": "fude-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1fd3485cb137a16dc46e3a9920bde872", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2326, "upload_time": "2012-12-16T14:31:02", "url": "https://files.pythonhosted.org/packages/2e/be/4724e0a87addf9b50caa74bfd0414858a77bfe36b176eb51950f82730066/fude-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1fd3485cb137a16dc46e3a9920bde872", "sha256": "ffb7c7331b517d63bdf0248c9e6e0210bd71782f71050c58397e99e139e570dc" }, "downloads": -1, "filename": "fude-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1fd3485cb137a16dc46e3a9920bde872", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2326, "upload_time": "2012-12-16T14:31:02", "url": "https://files.pythonhosted.org/packages/2e/be/4724e0a87addf9b50caa74bfd0414858a77bfe36b176eb51950f82730066/fude-1.0.1.tar.gz" } ] }