{ "info": { "author": "Maribel Acosta", "author_email": "maribel.acosta@kit.edu", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Topic :: System :: Networking" ], "description": "[![DOI](https://zenodo.org/badge/144040707.svg)](https://zenodo.org/badge/latestdoi/144040707)\n\n# delay-proxy\n\nAn HTTP proxy in Python 2.7 that introduces network delays to the response from a server.\n\nThe network delays (in milliseconds) follow a random [Gamma distribution](https://en.wikipedia.org/wiki/Gamma_distribution) with parameters `alpha` and `beta`. \n\n## Download and Install\nDownload or clone this repository. Execute the following command in the `delay-proxy` folder. \n\n```\n[sudo] python setup.py install\n```\n\n## Execution and Parameters\nTo start a proxy, execute the following command: \n```\nrun-delay-proxy port server alpha beta randomseed [buffsize]\n```\n\n- `port`: Listening port for the proxy (int).\n- `server`: IP address and port of the server (ip:port).\n- `alpha`: Alpha parameter for gamma distribution (int).\n- `beta`: Beta parameter for gamma distribution (float).\n- `randomseed`: Seed for the delays in the proxy (int). Using the same seed allows to reproduce the sequence of delays. \n- `buffsize`: Buffersize that specifies the size of the data chunks sent to the client (int).\n\n## Example of Usage\n\nIn the following example, the proxy listens in the port `8005` and contacts the server `http://127.0.0.1:5000/db`. \nThe response from the server is sent to the client with network delays (in milliseconds) that follow a Gamma distribution with parameters `alpha = 10` and `beta = 3.0`. The seed used for generating the delays is `1`. \n\n```\n# Delaying the answer from a server. \nrun-delay-proxy 8005 http://127.0.0.1:5000/db 10 3.0 1\n```\n\nIn the following example, the answer from the server is partitioned in chunks of size `1024` characters. \nEach chunk from the server is sent to the client with the network delays as specified in the previous example. \n```\n# Delaying chunks of the answer from a server. \nrun-delay-proxy 8005 http://127.0.0.1:5000/db 10 3.0 1 1024 \n```\n\n## How to Cite\nUse the DOI provided in this README.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/maribelacosta/delay-proxy", "keywords": "", "license": "Apache 2", "maintainer": "", "maintainer_email": "", "name": "delay-proxy", "package_url": "https://pypi.org/project/delay-proxy/", "platform": "", "project_url": "https://pypi.org/project/delay-proxy/", "project_urls": { "Homepage": "https://github.com/maribelacosta/delay-proxy" }, "release_url": "https://pypi.org/project/delay-proxy/0.1.2/", "requires_dist": null, "requires_python": "", "summary": "An HTTP proxy that introduces network delays to the response from the server", "version": "0.1.2" }, "last_serial": 4152774, "releases": { "0.1.2": [ { "comment_text": "", "digests": { "md5": "551a337fe2a8dd7adfc07fdb73eaa59e", "sha256": "6c417355fea42441c9fbf0fc09dc7724ec62521946dee0daa825e06ea78da8a6" }, "downloads": -1, "filename": "delay_proxy-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "551a337fe2a8dd7adfc07fdb73eaa59e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4260, "upload_time": "2018-08-09T12:45:21", "url": "https://files.pythonhosted.org/packages/13/3c/cbcecc78e6e4db9deef00b7ea796bbc0a62737321c04fc1670ddda95aa69/delay_proxy-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57bee6c64fd3dce68cd3e6275f412252", "sha256": "0239d1772c3fd3f6fe5eda84804885ba11efc3a9c3749975faed22ffaca8e94a" }, "downloads": -1, "filename": "delay-proxy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "57bee6c64fd3dce68cd3e6275f412252", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3406, "upload_time": "2018-08-09T12:45:22", "url": "https://files.pythonhosted.org/packages/28/4e/c393c05875daac8e30acb671ca813c576e6db416e3db7a16637845abdb62/delay-proxy-0.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "551a337fe2a8dd7adfc07fdb73eaa59e", "sha256": "6c417355fea42441c9fbf0fc09dc7724ec62521946dee0daa825e06ea78da8a6" }, "downloads": -1, "filename": "delay_proxy-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "551a337fe2a8dd7adfc07fdb73eaa59e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4260, "upload_time": "2018-08-09T12:45:21", "url": "https://files.pythonhosted.org/packages/13/3c/cbcecc78e6e4db9deef00b7ea796bbc0a62737321c04fc1670ddda95aa69/delay_proxy-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "57bee6c64fd3dce68cd3e6275f412252", "sha256": "0239d1772c3fd3f6fe5eda84804885ba11efc3a9c3749975faed22ffaca8e94a" }, "downloads": -1, "filename": "delay-proxy-0.1.2.tar.gz", "has_sig": false, "md5_digest": "57bee6c64fd3dce68cd3e6275f412252", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3406, "upload_time": "2018-08-09T12:45:22", "url": "https://files.pythonhosted.org/packages/28/4e/c393c05875daac8e30acb671ca813c576e6db416e3db7a16637845abdb62/delay-proxy-0.1.2.tar.gz" } ] }