{ "info": { "author": "John Andersen", "author_email": "johnandersenpdx@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3.5" ], "description": "# lazyhttp\n\nDrop in replacement for `http.server` with convenience methods added.\n\n```python\nimport json\nimport http.server\n\nimport lazyhttp\n\nclass Handler(lazyhttp.Handler):\n\n def req(self, task):\n if '/create' in self.path or '/update' in self.path and \\\n self.has(task, 'id', 'text'):\n TASKS[task['id']] = task\n elif '/delete' in self.path and self.has(task, 'id'):\n del TASKS[task['id']]\n elif '/get' in self.path and self.has(task, 'id'):\n self.json(TASKS[task['id']])\n elif '/all' in self.path:\n self.json(TASKS)\n else:\n self.err('Nothing to do')\n\nif __name__ == '__main__':\n lazyhttp.run(Handler)\n```\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/pdxjohnny/lazyhttp/tarball/0.0.3", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pdxjohnny/lazyhttp", "keywords": "http", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "lazyhttp", "package_url": "https://pypi.org/project/lazyhttp/", "platform": "", "project_url": "https://pypi.org/project/lazyhttp/", "project_urls": { "Download": "https://github.com/pdxjohnny/lazyhttp/tarball/0.0.3", "Homepage": "https://github.com/pdxjohnny/lazyhttp" }, "release_url": "https://pypi.org/project/lazyhttp/0.0.3/", "requires_dist": null, "requires_python": "", "summary": "Makes it quick to make HTTP servers", "version": "0.0.3" }, "last_serial": 3088104, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1dbeb127f5169ed6c3595106ddc3b231", "sha256": "598b59bb6b159d10265bb2b594ba231a9230043cf8f1927d0d5c4f1ab63466e2" }, "downloads": -1, "filename": "lazyhttp-0.0.1.tar.gz", "has_sig": false, "md5_digest": "1dbeb127f5169ed6c3595106ddc3b231", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2191, "upload_time": "2017-08-10T18:32:06", "url": "https://files.pythonhosted.org/packages/d5/85/88e79a2d5503fedf7ac299ffd47bf70d70e62ee82683627b39170e21d416/lazyhttp-0.0.1.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "b9d8c4e0db6ae44e7238c67d88a6b704", "sha256": "f5d637fcc0b1d0bc0291bcba5d4e72df47dff1eecf6d943e54041ddd23619eac" }, "downloads": -1, "filename": "lazyhttp-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b9d8c4e0db6ae44e7238c67d88a6b704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2519, "upload_time": "2017-08-10T20:52:33", "url": "https://files.pythonhosted.org/packages/a6/91/eddd90219597d15173da38a874472f2eb86e94e909786100c2aea72f714d/lazyhttp-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b9d8c4e0db6ae44e7238c67d88a6b704", "sha256": "f5d637fcc0b1d0bc0291bcba5d4e72df47dff1eecf6d943e54041ddd23619eac" }, "downloads": -1, "filename": "lazyhttp-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b9d8c4e0db6ae44e7238c67d88a6b704", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2519, "upload_time": "2017-08-10T20:52:33", "url": "https://files.pythonhosted.org/packages/a6/91/eddd90219597d15173da38a874472f2eb86e94e909786100c2aea72f714d/lazyhttp-0.0.3.tar.gz" } ] }