{ "info": { "author": "Suzuki Hisao, Mitko Haralanov, \u0141ukasz Langa", "author_email": "lukasz@langa.pl", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: No Input/Output (Daemon)", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Information Technology", "Intended Audience :: Other Audience", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "Intended Audience :: Telecommunications Industry", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2 :: Only", "Topic :: Internet :: WWW/HTTP", "Topic :: Security", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Logging", "Topic :: System :: Networking :: Monitoring", "Topic :: Utilities" ], "description": "httproxy\n========\n\nThis module implements a tiny HTTP proxy by extending ``BaseHTTPServer``.\nSupports the ``GET``, ``HEAD``, ``POST``, ``PUT``, ``DELETE`` and ``CONNECT``\nmethods.\n\nThe latest version can be installed via `PyPI\n`_::\n\n $ pip install httproxy\n \nor::\n\n $ easy_install httproxy\n\n\nThe `source code repository `_ and `issue\ntracker `_ are maintained on\n`GitHub `_.\n\n\nQuickstart \n----------\n\nUsage::\n\n httproxy [options]\n httproxy [options] ...\n\nOptions::\n\n -h, --help Show this screen.\n --version Show version and exit.\n -H, --host HOST Host to bind to [default: 127.0.0.1].\n -p, --port PORT Port to bind to [default: 8000].\n -l, --logfile PATH Path to the logfile [default: STDOUT].\n -i, --pidfile PIDFILE Path to the pidfile [default: httproxy.pid].\n -d, --daemon Daemonize (run in the background). The\n default logfile path is httproxy.log in\n this case.\n -c, --configfile CONFIGFILE Path to a configuration file.\n -v, --verbose Log headers.\n\nTo start the proxy server and bind it to port 22222 (the port on which it will\nlisten and accept connections)::\n\n httproxy -p 22222\n\nTo start the proxy server, bind it to port 22222 and tell it to log all requests\nto the file ``httproxy.log``::\n\n httproxy -p 22222 -l httproxy.log\n\nTo start the proxy server so it only allows connections from IP\n``123.123.123.123``::\n\n httproxy 123.123.123.123\n\nTo start the proxy server bound to port 22222, log to file ``httproxy.log`` and run\nthe server in the background (as a daemon)::\n\n httproxy -p 22222 -l httproxy.log -d\n\n\nConfiguration file\n------------------\n\nEvery option stated as a command-line argument can be passed using\na configuration file. httproxy looks for the following files to read\nconfiguration:\n\n* ``/etc/httproxy/config``\n\n* ``$HOME/.httproxy/config`` (or ``%HOME%\\.httproxy\\config`` on Windows)\n\n* the value specified in ``--configfile`` on command-line\n\nThe names of the settings in the ``main`` section are derived from the long\ncommand line option names.\n\nThe ``allowed-clients`` section holds a list of hostnames that can access the\nproxy, one hostname per line. Remove this section or leave empty to allow any\nclient to connect.\n\nAn example file::\n\n [main]\n host = localhost\n port = 8011\n logfile = /Users/ambv/.httproxy/log\n pidfile = /Users/ambv/.httproxy/pid\n daemon = yes\n verbose = yes\n\n [allowed-clients]\n localhost\n 192.168.0.1\n\n**Note:** command-line options have precedence over configuration file settings.\n\n\nOptional dependencies\n---------------------\n\nIf you install ``setproctitle``, the name of the process reported by ``ps`` will\nbe more descriptive.\n\nIf you install ``psutil``, httproxy will be able to automatically remove stale\npidfiles on startup.\n\n\nChange Log\n----------\n\n0.9.0\n~~~~~\n\n* ability to read configuration from a file (``--configfile``)\n\n* ability to specify the address the proxy will bind to (``--host``)\n\n* ability to log headers sent and received (``--verbose``)\n\n* better process management: pidfile support, a more descriptive process title\n (with the optional ``setproctitle`` dependency)\n\n* fixed spurious ``[Errno 54] Connection reset by peer`` tracebacks\n\n* properly shuts down when receiving ``SIGHUP``, ``SIGINT`` or ``SIGTERM``\n\n* major code refactoring\n\n* compatible with Python 2.6 and 2.7 only: requires ``docopt`` and ``configparser``\n\n0.3.1\n~~~~~\n\n* added rudimentary FTP file retrieval\n\n* added custom logging methods\n\n* added code to make it run as a standalone application\n\nUpgraded by `Mitko Haralanov\n`_ in 2009.\n\n0.2.1\n~~~~~\n\n* basic version hosted in 2006 by the original author at\n http://www.oki-osk.jp/esc/python/proxy/\n\nAuthors\n-------\n\nScript based on work by Suzuki Hisao and Mitko Haralanov, currently maintained\nby `\u0141ukasz Langa `_.", "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/ambv/httproxy/", "keywords": "http proxy mitm man-in-the-middle daemon transparent headers", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "httproxy", "package_url": "https://pypi.org/project/httproxy/", "platform": "any", "project_url": "https://pypi.org/project/httproxy/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/ambv/httproxy/" }, "release_url": "https://pypi.org/project/httproxy/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "A tiny HTTP proxy implementation", "version": "0.9.0" }, "last_serial": 648651, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "5733dc93562b372aa999a7a3e12c8a42", "sha256": "bf8381db311c8d2f1256ba16b77b1a9f9345a924e3fc50b436b59103082e66b9" }, "downloads": -1, "filename": "httproxy-0.9.0.tar.gz", "has_sig": false, "md5_digest": "5733dc93562b372aa999a7a3e12c8a42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9136, "upload_time": "2012-10-27T00:32:21", "url": "https://files.pythonhosted.org/packages/8e/74/790298ec094f08a42c85ce826b9db1cedb64ac382062c0c1fa6eb30c531f/httproxy-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5733dc93562b372aa999a7a3e12c8a42", "sha256": "bf8381db311c8d2f1256ba16b77b1a9f9345a924e3fc50b436b59103082e66b9" }, "downloads": -1, "filename": "httproxy-0.9.0.tar.gz", "has_sig": false, "md5_digest": "5733dc93562b372aa999a7a3e12c8a42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9136, "upload_time": "2012-10-27T00:32:21", "url": "https://files.pythonhosted.org/packages/8e/74/790298ec094f08a42c85ce826b9db1cedb64ac382062c0c1fa6eb30c531f/httproxy-0.9.0.tar.gz" } ] }