{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "[![Build Status](https://travis-ci.org/wtsi-hgi/http-status-puppet.svg?branch=master)](https://travis-ci.org/wtsi-hgi/http-status-puppet)\n[![codecov](https://codecov.io/gh/wtsi-hgi/http-status-puppet/branch/master/graph/badge.svg)](https://codecov.io/gh/wtsi-hgi/http-status-puppet)\n[![PyPI version](https://badge.fury.io/py/httpstatuspuppet.svg)](https://badge.fury.io/py/httpstatuspuppet)\n\n# HTTP Status Puppet\n_A HTTP server that will return a status code of your choice_ \n\n\n## Introduction\nThis server simply returns back a status code depending on what endpoint is contacted, e.g.\n```\n$ curl -s -o /dev/null -w \"%{http_code}\" http://0.0.0.0:8000/403\n403\n$ curl -s -o /dev/null -w \"%{http_code}\" http://0.0.0.0:8000/200\n200\n```\n\n\n## Installation\nPrerequisites\n- Python 3.6+\n\nThe tool can be installed from PyPi:\n```bash\npip install httpstatuspuppet\n```\n\nBleeding edge versions can be installed directly from GitHub:\n```bash\npip install git+https://github.com/wtsi-hgi/http-status-puppet/.git@master#egg=httpstatuspuppet\n```\n\n\n## Usage\n_Warning: this server was only designed for use in testing!_\n\n### Local\nAfter installing dependencies, in the project directory:\n```bash\nPYTHONPATH=. python httpstatuspuppet/entrypoint.py\n```\n\n### Docker\n```bash\ndocker run -d -p ${HOST_PORT}:8000 mercury/http-status-puppet\n```\n\n\n## Alternatives\n- C# server: https://github.com/Readify/httpstatus.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/wtsi-hgi/http-status-puppet.git", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "httpstatuspuppet", "package_url": "https://pypi.org/project/httpstatuspuppet/", "platform": "", "project_url": "https://pypi.org/project/httpstatuspuppet/", "project_urls": { "Homepage": "https://github.com/wtsi-hgi/http-status-puppet.git" }, "release_url": "https://pypi.org/project/httpstatuspuppet/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "A HTTP server that will return a status code of your choice", "version": "1.0.1" }, "last_serial": 3616873, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "0bc8490151d2f652f63d00adb5e1e42d", "sha256": "6bd210c570848494e66a80a22dab96c30ee1f0a102739041e296f8c55e32e9cd" }, "downloads": -1, "filename": "httpstatuspuppet-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0bc8490151d2f652f63d00adb5e1e42d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4570, "upload_time": "2018-02-26T10:30:03", "url": "https://files.pythonhosted.org/packages/b1/c6/ccc91c37e426c5e0f8f73cb8b18bbad1d0813c88df52ed7497a5843f49fc/httpstatuspuppet-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "05e5abb8c9022e22863edd455a6cb8fa", "sha256": "a4a91d2396e08348b698a9368395b1f1d6be2b32a6c0fffc1967a1606175eda1" }, "downloads": -1, "filename": "httpstatuspuppet-1.0.1.tar.gz", "has_sig": false, "md5_digest": "05e5abb8c9022e22863edd455a6cb8fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4570, "upload_time": "2018-02-26T11:08:55", "url": "https://files.pythonhosted.org/packages/0b/19/92d58c0dc4a551655725b30897e6cd1191b5fe5aec599bdf52036157095a/httpstatuspuppet-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "05e5abb8c9022e22863edd455a6cb8fa", "sha256": "a4a91d2396e08348b698a9368395b1f1d6be2b32a6c0fffc1967a1606175eda1" }, "downloads": -1, "filename": "httpstatuspuppet-1.0.1.tar.gz", "has_sig": false, "md5_digest": "05e5abb8c9022e22863edd455a6cb8fa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4570, "upload_time": "2018-02-26T11:08:55", "url": "https://files.pythonhosted.org/packages/0b/19/92d58c0dc4a551655725b30897e6cd1191b5fe5aec599bdf52036157095a/httpstatuspuppet-1.0.1.tar.gz" } ] }