{ "info": { "author": "jamiesun", "author_email": "jamiesun.net@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 6 - Mature", "Intended Audience :: Developers", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "btform\n=======\n\npython web app forms tools\n\nCode is extracted from web.py\n\ninstall \n=======\n\n easy_install btform\n\n pip install btform\n\nexample of flask \n=================\n\n #!/usr/bin/env python\n #coding:utf-8\n\n from flask import Flask\n from flask import request\n from btform import rules\n import btform as form\n \n app = Flask(__name__)\n\n form1 = form.Form(\n form.Textbox(\"name\",rules.is_alphanum2(6,32),description=\"\"),\n form.Password(\"passwd\",rules.is_alphanum2(6,32),description=\"\"),\n form.Textarea(\"desc\",rules.len_of(1,128),description=\"\",rows=\"5\",),\n form.Button(\"submit\", type=\"submit\",html=\"submit\"),\n )\n\n def render_form(frm):\n return \"
\"%frm.render()\n\n @app.route('/', methods=['POST', 'GET'])\n def hello_world():\n iform = form1()\n if request.method == 'GET':\n return render_form(iform)\n elif request.method == 'POST':\n if not iform.validates(source=request.form): \n return render_form(iform)\n else:\n return \"ok\" \n\n if __name__ == '__main__':\n app.run()", "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/talkincode/btform", "keywords": "web,form,html,http", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "btform", "package_url": "https://pypi.org/project/btform/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/btform/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/talkincode/btform" }, "release_url": "https://pypi.org/project/btform/0.1/", "requires_dist": null, "requires_python": null, "summary": "web app forms tools", "version": "0.1" }, "last_serial": 1724770, "releases": { "0.1": [ { "comment_text": "built for Linux-3.10.0-123.8.1.el7.x86_64-x86_64-with-glibc2.2.5", "digests": { "md5": "1ca0b197e065b234e780edd0c2234148", "sha256": "d6fa14e8f0663c2ee525ef874d6b8bc3fa0467072a29859dd4aeb9d667e9d15d" }, "downloads": -1, "filename": "btform-0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "1ca0b197e065b234e780edd0c2234148", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 16235, "upload_time": "2015-09-16T08:26:31", "url": "https://files.pythonhosted.org/packages/22/6a/b0b4cef08ea0081bef7bda2a626e0b69a96d137f2a45d96333d4b3ca4191/btform-0.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "23a261dc4c52af32a6b424eb47993b29", "sha256": "cdc889adc3eae37340639ea6ee8be46e93f2f30b7e414e9105b251cb5aa41427" }, "downloads": -1, "filename": "btform-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "23a261dc4c52af32a6b424eb47993b29", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10612, "upload_time": "2015-09-16T08:26:37", "url": "https://files.pythonhosted.org/packages/00/5a/9d78e5cde6f9bcbd01f2d6dbcafcc8bf0e623fb751093bac97c47649bca6/btform-0.1-py2-none-any.whl" } ] }, "urls": [ { "comment_text": "built for Linux-3.10.0-123.8.1.el7.x86_64-x86_64-with-glibc2.2.5", "digests": { "md5": "1ca0b197e065b234e780edd0c2234148", "sha256": "d6fa14e8f0663c2ee525ef874d6b8bc3fa0467072a29859dd4aeb9d667e9d15d" }, "downloads": -1, "filename": "btform-0.1.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "1ca0b197e065b234e780edd0c2234148", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 16235, "upload_time": "2015-09-16T08:26:31", "url": "https://files.pythonhosted.org/packages/22/6a/b0b4cef08ea0081bef7bda2a626e0b69a96d137f2a45d96333d4b3ca4191/btform-0.1.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "23a261dc4c52af32a6b424eb47993b29", "sha256": "cdc889adc3eae37340639ea6ee8be46e93f2f30b7e414e9105b251cb5aa41427" }, "downloads": -1, "filename": "btform-0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "23a261dc4c52af32a6b424eb47993b29", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 10612, "upload_time": "2015-09-16T08:26:37", "url": "https://files.pythonhosted.org/packages/00/5a/9d78e5cde6f9bcbd01f2d6dbcafcc8bf0e623fb751093bac97c47649bca6/btform-0.1-py2-none-any.whl" } ] }