{ "info": { "author": "Andrew Dunham", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Hoboken\n=======\n\n[![Build Status](https://secure.travis-ci.org/andrew-d/Hoboken.png?branch=master)](http://travis-ci.org/andrew-d/Hoboken)\n\nHoboken is a Sinatra-like web framework for Python. It attempts to make writing simple web applications both easy, but also provide enough power to accomplish more complex things. Hoboken officially supports Python 2.6, 2.7, and 3.2 (as these are the platforms on which WebOb is supported). Unofficially, the tests pass on Python 3.0 (but *not* 3.1).\n\nCurrently, Hoboken is in alpha. There are plenty of tests (actually, test coverage is 100%), but documentation is somewhat lacking. That said, here's a simple \"hello world\" application:\n\n from hoboken import HobokenApplication\n\n app = HobokenApplication(__name__)\n\n @app.get(\"/\")\n def index():\n return 'Hello world!'\n\nAnd here's another application that demonstrates a few more of Hoboken's capabilities:\n\n from hoboken import HobokenApplication\n\n app = HobokenApplication(__name__)\n\n @app.get(\"/greet/:name\")\n def greeting(name=None):\n app.response.json_body = {\n \"greeting\": \"Hello {0}!\".format(name)\n }\n\nYou can then host this using any WSGI server (since Hoboken applications are WSGI applications). There's also a built-in test server, so if we use this to test our application: `app.test_server(port=8080)`, we can do this:\n\n $ curl -ik http://localhost:8080/greet/John\n HTTP/1.0 200 OK\n Date: Thu, 19 Jul 2012 00:00:00 GMT\n Server: WSGIServer/0.1 Python/2.7.3\n Content-Type: text/html; charset=UTF-8\n Content-Length: 26\n\n {\"greeting\":\"Hello John!\"}\n\nFinally, here's a longer example:\n\n from __future__ import print_function\n from hoboken import HobokenApplication\n\n app = HobokenApplication(__name__)\n\n @app.before(\"/admin/*\")\n def authenticate(path):\n # This runs before the actual route. TODO: Do some authentication.\n pass\n\n @app.get(\"/\")\n def index():\n return \"Welcome to the app!\"\n\n @app.get(\"/books/:author/*\")\n def get_book(title, author=None):\n return \"Looking for book '{0}' by '{1}'\".format(title, author)\n\n @app.post(\"/books/:author\")\n def add_book(author=None):\n return \"Added book for '{0}'\".format(author)\n\nAnd there you go! Some simple demonstrations of how Hoboken works.\n\n\nMiscellanea\n-----------\n\nHoboken is licensed under the Apache license, and is created and developed by Andrew Dunham.\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/andrew-d/hoboken", "keywords": null, "license": "Apache", "maintainer": null, "maintainer_email": null, "name": "Hoboken", "package_url": "https://pypi.org/project/Hoboken/", "platform": "any", "project_url": "https://pypi.org/project/Hoboken/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/andrew-d/hoboken" }, "release_url": "https://pypi.org/project/Hoboken/0.5.1/", "requires_dist": null, "requires_python": null, "summary": "A Sinatra-inspired web framework for Python", "version": "0.5.1" }, "last_serial": 784504, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "ee47514f0ef953ce56c397857f479cf6", "sha256": "fe256f2884fe8f48dd3dd6e4c10ee193e90ecb8353196103c4f816a05df32704" }, "downloads": -1, "filename": "Hoboken-0.0.1.tar.gz", "has_sig": false, "md5_digest": "ee47514f0ef953ce56c397857f479cf6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21982, "upload_time": "2012-08-06T09:07:44", "url": "https://files.pythonhosted.org/packages/41/17/d5398ba045e060147225ecd6ad0daa535185f50cbce8c22f5367aa84697d/Hoboken-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "cf5e17652f41e745b8081fc526330eab", "sha256": "01dfc2ed5d39a7bf2a824981d924feb3cf1b2c8cc0d5dd9ab968be1281a34053" }, "downloads": -1, "filename": "Hoboken-0.0.2.tar.gz", "has_sig": false, "md5_digest": "cf5e17652f41e745b8081fc526330eab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22000, "upload_time": "2012-08-06T09:15:24", "url": "https://files.pythonhosted.org/packages/53/e5/9680cacbaeb2367a569c95caa312ab4c845e5ed717b18b60312e3a5478b1/Hoboken-0.0.2.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "c6a9ba3e13b8c1f0f5dc2c43bbf7ded8", "sha256": "519d9d5574b24cc949bc9ba8cb4ec718eb94d66257ff812d57115d1f15be1d7e" }, "downloads": -1, "filename": "Hoboken-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c6a9ba3e13b8c1f0f5dc2c43bbf7ded8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22207, "upload_time": "2012-08-08T01:22:39", "url": "https://files.pythonhosted.org/packages/bd/2a/04372e5edb1bdade523935e4082c08c337af7d13e1d38856e6710ff62116/Hoboken-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "0ead488b7a7678aba6927b1da424ba69", "sha256": "94da22b048be9a8efb1070928f7fa6d4b0a9c86a31a8f85a480d6b639bb72e86" }, "downloads": -1, "filename": "Hoboken-0.1.1.tar.gz", "has_sig": false, "md5_digest": "0ead488b7a7678aba6927b1da424ba69", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22346, "upload_time": "2012-08-08T01:43:39", "url": "https://files.pythonhosted.org/packages/c6/04/3b22b78d262508956141ed0a21aa40200ff2d1c9b67152c79f44bd48c807/Hoboken-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "293582d3e2764a5b0671a388f6387546", "sha256": "63f54fcce3dc4ad05faecc454c8df3f0a815613dcd29fe1def0a705edf5a3c76" }, "downloads": -1, "filename": "Hoboken-0.2.0.tar.gz", "has_sig": false, "md5_digest": "293582d3e2764a5b0671a388f6387546", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 25121, "upload_time": "2012-08-09T10:24:58", "url": "https://files.pythonhosted.org/packages/c9/c0/66583d15328f1a33f0379d4a62089b93b91d0fcf17dda2bc5924a5241b9a/Hoboken-0.2.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "900f424d5e8968eb8468df683ded0519", "sha256": "09c5f97cfa2002ed9570760b88ba891e9926d26ad04d64d01e98aa87bf4f8160" }, "downloads": -1, "filename": "Hoboken-0.3.1.tar.gz", "has_sig": false, "md5_digest": "900f424d5e8968eb8468df683ded0519", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30185, "upload_time": "2012-08-11T03:44:43", "url": "https://files.pythonhosted.org/packages/03/fc/e24cb4f514b5a3005dd41e5eab85410070acc903311146565e2f1a4cb848/Hoboken-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "f0e46e4568c7a74681f40f3c657b7774", "sha256": "223b353021023a88ff5a014d336986562bf5eca2d2c90ae8e64ffc8dc053261e" }, "downloads": -1, "filename": "Hoboken-0.4.0.tar.gz", "has_sig": false, "md5_digest": "f0e46e4568c7a74681f40f3c657b7774", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30120, "upload_time": "2012-09-19T05:49:46", "url": "https://files.pythonhosted.org/packages/12/ad/ee6edee29d83b24bb2b0cbf21bd921bc871ba920b0e3b922f6ca8b4b4c52/Hoboken-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "93866f82c4c77d90df27b0e59d3b17c2", "sha256": "e2149a9c2846dc47a3c66a46dc2950ae7aa57165b2d169289dbf6541c4ebfd86" }, "downloads": -1, "filename": "Hoboken-0.4.1.tar.gz", "has_sig": false, "md5_digest": "93866f82c4c77d90df27b0e59d3b17c2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30203, "upload_time": "2012-09-19T06:04:27", "url": "https://files.pythonhosted.org/packages/1d/df/cf41febcdce9ddef6ffd4bf11cbcab9c20a8ec604beb493e63e3feb9cd1a/Hoboken-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "59b6b8050322c203b6b52c18546609be", "sha256": "691bd51ad51ae89c0f6477aaa3879032eaa130ef28af03d3e3d2e2a34ca30a5f" }, "downloads": -1, "filename": "Hoboken-0.4.2.tar.gz", "has_sig": false, "md5_digest": "59b6b8050322c203b6b52c18546609be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30338, "upload_time": "2012-09-19T07:06:49", "url": "https://files.pythonhosted.org/packages/6d/82/d9277ff65932a37b0a4dd62db6c7995f36eb102999bb7d590d14438b664d/Hoboken-0.4.2.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "2fbdced5a6fd0a7841c06b5ceba2d4a5", "sha256": "c27f552af253b0ec3cdb39044a68c9ec9b9d4cde7e0928de1e6b64edca74d7f5" }, "downloads": -1, "filename": "Hoboken-0.5.0.tar.gz", "has_sig": false, "md5_digest": "2fbdced5a6fd0a7841c06b5ceba2d4a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30348, "upload_time": "2012-09-27T22:05:16", "url": "https://files.pythonhosted.org/packages/14/fd/47bbace7e21b203a2e3fab35ebe5680179a596579909cc07f698f851dee1/Hoboken-0.5.0.tar.gz" } ], "0.5.1": [ { "comment_text": "", "digests": { "md5": "49ace6668b9aa16a5c5aad9e470380f5", "sha256": "325b372b9c9195a2e654b90e668a7e57930b995bf3ed129877f56ab5f3ac1321" }, "downloads": -1, "filename": "Hoboken-0.5.1.tar.gz", "has_sig": false, "md5_digest": "49ace6668b9aa16a5c5aad9e470380f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30129, "upload_time": "2012-09-28T05:42:43", "url": "https://files.pythonhosted.org/packages/93/72/238fde24c0c654579ec442f239a251be675dde9a9fb52db8167ee817c55c/Hoboken-0.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "49ace6668b9aa16a5c5aad9e470380f5", "sha256": "325b372b9c9195a2e654b90e668a7e57930b995bf3ed129877f56ab5f3ac1321" }, "downloads": -1, "filename": "Hoboken-0.5.1.tar.gz", "has_sig": false, "md5_digest": "49ace6668b9aa16a5c5aad9e470380f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30129, "upload_time": "2012-09-28T05:42:43", "url": "https://files.pythonhosted.org/packages/93/72/238fde24c0c654579ec442f239a251be675dde9a9fb52db8167ee817c55c/Hoboken-0.5.1.tar.gz" } ] }