{ "info": { "author": "Sam Kingston", "author_email": "sam@sjkwi.com.au", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4" ], "description": "python-parrot\n=============\n\n`parrot `__ is a simple HTTP server that\nresponds to any valid GET request with the file specified on the command\nline.\n\nIt is useful during testing (e.g. to mock out a server application), or\nto do client testing. Both text and binary files are handlded correctly.\n\nIts only dependency is the excellent\n`python-magic `__ library for\nmime type guessing. It works on Python 3.\n\n::\n\n $ pip install python-parrot\n\nUsage\n-----\n\n::\n\n $ parrot port filename\n\nThe following arguments are required:\n\n- ``port``: Port to listen on\n- ``filename``: Filename of the data to send in response to all\n requests\n\nSample\n------\n\nStart the parrot server:\n\n::\n\n $ echo 'This is a test' > test.txt\n $ parrot 8000 test.txt\n parrot/1.0.0 listening on 0.0.0.0:8000 with file test.txt (text/plain)\n\nIn another terminal (assuming ``10.1.1.1`` is a valid IP on the server):\n\n::\n\n $ echo 'GET /anything HTTP/1.0' | nc 10.1.1.1 8000\n HTTP/1.0 200 OK\n Server: parrot/1.0.0 Python/3.4.2\n Date: Thu, 24 Sep 2015 00:27:56 GMT\n Content-Type: text/plain\n\n This is a test", "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/sjkingo/python-parrot", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "python-parrot", "package_url": "https://pypi.org/project/python-parrot/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-parrot/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sjkingo/python-parrot" }, "release_url": "https://pypi.org/project/python-parrot/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "Parrot is a simple HTTP server that responds to requests with a specified filename", "version": "1.0.2" }, "last_serial": 1735699, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "51e0f6803a604a2b371c99d12322932b", "sha256": "3460fb90b6f3aba349e86c432c0c23e8c0dbbeab0dbad8f1435d35df04e740a1" }, "downloads": -1, "filename": "python-parrot-1.0.0.tar.gz", "has_sig": false, "md5_digest": "51e0f6803a604a2b371c99d12322932b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2721, "upload_time": "2015-09-24T00:51:40", "url": "https://files.pythonhosted.org/packages/86/82/00626b8315628c8baee865a85acc1581edcbe3dc54cbafd9981e7008ce0b/python-parrot-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "59a7846c6df1b1663f4aa200ba7f326e", "sha256": "6e32f4bf763685e6cbae7063e6095435420855d4d5f4a38cd8a85aedcb7aefab" }, "downloads": -1, "filename": "python-parrot-1.0.1.tar.gz", "has_sig": false, "md5_digest": "59a7846c6df1b1663f4aa200ba7f326e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2725, "upload_time": "2015-09-24T00:55:34", "url": "https://files.pythonhosted.org/packages/fa/61/0780aa1a0383ac42e0cc4c8f7e6d2157d255717c4562624aac758af9cb71/python-parrot-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "03e5f933c0b8883e7a4b08c0cd92ab4a", "sha256": "e1b1e08a323ade03fe533ee6703ef3096909cba5e2479d64ba7b616b1b95b2d2" }, "downloads": -1, "filename": "python-parrot-1.0.2.tar.gz", "has_sig": false, "md5_digest": "03e5f933c0b8883e7a4b08c0cd92ab4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2208, "upload_time": "2015-09-24T01:01:31", "url": "https://files.pythonhosted.org/packages/49/51/9b67c5ebcf72aba400932e6446c3c1b4cb7b7cfaaac8ad94643ed30cddef/python-parrot-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "03e5f933c0b8883e7a4b08c0cd92ab4a", "sha256": "e1b1e08a323ade03fe533ee6703ef3096909cba5e2479d64ba7b616b1b95b2d2" }, "downloads": -1, "filename": "python-parrot-1.0.2.tar.gz", "has_sig": false, "md5_digest": "03e5f933c0b8883e7a4b08c0cd92ab4a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2208, "upload_time": "2015-09-24T01:01:31", "url": "https://files.pythonhosted.org/packages/49/51/9b67c5ebcf72aba400932e6446c3c1b4cb7b7cfaaac8ad94643ed30cddef/python-parrot-1.0.2.tar.gz" } ] }