{ "info": { "author": "Juergen Brendel", "author_email": "jbrendel@romana.io", "bugtrack_url": null, "classifiers": [ "Environment :: Plugins", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Monitoring" ], "description": "# MultiPing: A pure-python implemention to monitor IP addresses with pings\n\nMultiPing is a Python library to monitor one or many IP addresses via ICMP echo\n(ping) requests. Features:\n\n* It works for Python 2 and 3.\n* Supports timeouts and retries.\n* Supports IPv4 as well as IPv6.\n* Small and compact and does not rely on any 3rd party packages, aside from\n what's included in Python.\n\nIt is ideally suited to monitor large numbers of hosts in clusters, but is just\nas suitable to check on a single address.\n\nMultiPing was originally developed for the\n[vpc-router](https://github.com/romana/vpc-router) project, but can easily\nbe used on its own.\n\n## Installation\n\n### Installation via pip\n\nMultiPing is available in PyPi, the Python Package Index. Therefore, you can\ninstall it simply with:\n\n pip install multiping\n\n### Installation from source\n\nAfter downloading the code or cloning this repository, please run the `setup.py`\nfile, which is included in the source code:\n\n python setup.py install\n\n## Contributions\n\nWe welcome any contributions, bug reports or feedback. Please use our\n[issue tracker](https://github.com/romana/multi-ping/issues) to file bugs or\nrequest additional features. We are happy to consider pull requests as well.\n\n## Using MultiPing\n\n_Note: ICMP packets can only be sent by processes with root privileges._\n\nHere is an example of how to use MultiPing in your own code:\n\n from multiping import MultiPing\n\n # Create a MultiPing object to test three hosts / addresses\n mp = MultiPing([\"8.8.8.8\", \"youtube.com\", \"127.0.0.1\"])\n\n # Send the pings to those addresses\n mp.send()\n\n # With a 1 second timout, wait for responses (may return sooner if all\n # results are received).\n responses, no_responses = mp.receive(1)\n\nThe `receive()` function returns a tuple containing a results dictionary\n(addresses and response times) as well as a list of addresses that did not\nrespond in time. The results may be processed like this:\n\n ...\n\n for addr, rtt in responses.items():\n print \"%s responded in %f seconds\" % (addr, rtt)\n\n if no_responses:\n print \"These addresses did not respond: %s\" % \", \".join(no_responses)\n # Sending pings once more, but just to those addresses that have not\n # responded, yet. The MultiPing object 'mp' remembers the state of\n # which address has responded already, so that another call to\n # send() just generates packets to those hosts from which we haven't\n # heard back, yet.\n mp.send()\n responses, no_responses = mp.receive(1)\n\n ...\n\nNote that `send()` can be called multiple times. If there are any addresses\nleft for which no response has been received yet then this will resend pings\nto those remaining addresses.\n\nA convenient `multi_ping()` function is provided, which implements retries and\ndelivers results in a single and simple function call:\n\n from multiping import multi_ping\n\n addrs = [\"8.8.8.8\", \"youtube.com\", \"127.0.0.1\"]\n\n # Ping the addresses up to 4 times (initial ping + 3 retries), over the\n # course of 2 seconds. This means that for those addresses that do not\n # respond another ping will be sent every 0.5 seconds.\n responses, no_responses = multi_ping(addrs, timeout=2, retry=3)\n\nAlso see the `demo.py` file for more examples.\n\nIf there are any names or addresses in the list of target addresses, which\ncannot be resolved or looked up, a `socket.gaierror` is raised. This can be\nsurpressed if the `silent_lookup_errors` parameter flag is set. Either as named\nparameter for the `multi_ping` function or when a `MultiPing` object is\ncreated.\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/romana/multi-ping/", "keywords": "", "license": "Apache Software License", "maintainer": "", "maintainer_email": "", "name": "multiping", "package_url": "https://pypi.org/project/multiping/", "platform": "", "project_url": "https://pypi.org/project/multiping/", "project_urls": { "Homepage": "http://github.com/romana/multi-ping/" }, "release_url": "https://pypi.org/project/multiping/1.1.2/", "requires_dist": null, "requires_python": "", "summary": "Pure python library to send and receive ICMPecho request (ping) to monitor IP addresses", "version": "1.1.2" }, "last_serial": 3896559, "releases": { "1.0.2": [ { "comment_text": "", "digests": { "md5": "c1c4c1d1c486236aa038be2e0548b0cc", "sha256": "413402d35e66d967e6d6ff09bdd796dd935cbed89ad97554b5493b0bfbe60d1f" }, "downloads": -1, "filename": "multiping-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c1c4c1d1c486236aa038be2e0548b0cc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9607, "upload_time": "2017-08-18T11:48:47", "url": "https://files.pythonhosted.org/packages/bf/b5/2c45685685b6f3b843332bb18840a086243e39129e00c961c61afce2bd37/multiping-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "91dcaeb4e49ea4e5352ac35b91e4bc31", "sha256": "1b5bf6a04be13100da9920fc06f6960aa8ebd64f20202343613ef944c172eac6" }, "downloads": -1, "filename": "multiping-1.0.2.tar.gz", "has_sig": false, "md5_digest": "91dcaeb4e49ea4e5352ac35b91e4bc31", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7007, "upload_time": "2017-08-18T11:48:48", "url": "https://files.pythonhosted.org/packages/c8/a3/10fc9fe85960887b21a19395be4c88492b645ed36b1a61315156223d3cd2/multiping-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "a8904c1618141fac1047b799343d84be", "sha256": "e5d0fbc1184ed0979e40ba4126911009d8856e65ef4112589ceae8fa9137d917" }, "downloads": -1, "filename": "multiping-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a8904c1618141fac1047b799343d84be", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9608, "upload_time": "2017-08-18T11:56:59", "url": "https://files.pythonhosted.org/packages/2a/57/fb2fe954d4ac9c68c4071bd400be9c8d3e26168a8220e742efa33558afef/multiping-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1cbeb7f8b3b30e6b7ee383ed2b38c72f", "sha256": "db3fd4fb7ee9be1a1f36ae664469c40c43333a6223db5a07a24e8855b10f8f42" }, "downloads": -1, "filename": "multiping-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1cbeb7f8b3b30e6b7ee383ed2b38c72f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7744, "upload_time": "2017-08-18T11:57:01", "url": "https://files.pythonhosted.org/packages/cf/86/d18d01872a5ba57cfdb6b061847a204b8f5ba45aee83d953df81582adbda/multiping-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "6b800953430fcc6082ecc74bc44b9f1e", "sha256": "7b4e8785239745468a7559153d434c525e4d6d703a1bb205822e791a105ba2df" }, "downloads": -1, "filename": "multiping-1.0.4-py2.7.egg", "has_sig": false, "md5_digest": "6b800953430fcc6082ecc74bc44b9f1e", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11576, "upload_time": "2017-08-18T12:05:25", "url": "https://files.pythonhosted.org/packages/71/d3/f24e27cd7ca80a04ca1fad41ac6424f0c74dace7b195a8004d3019149beb/multiping-1.0.4-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "ddfc50ffd284b8fa29502c8b7da64ba2", "sha256": "ba4c58dd9cea352c148900e1b4eac0c85a01cb09cfdd324a62698571bb3ad560" }, "downloads": -1, "filename": "multiping-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ddfc50ffd284b8fa29502c8b7da64ba2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9562, "upload_time": "2017-08-18T12:05:23", "url": "https://files.pythonhosted.org/packages/18/51/bc8d65cc33d63cf6bc377abe6c627a4644a754ad902e3c4c476952fc682f/multiping-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6b3f1a2729fd3e8fab1bdad4d5ff78c5", "sha256": "3a3615655e700aebb48182865bad02924874c2f072b81450c138d4624ec730b6" }, "downloads": -1, "filename": "multiping-1.0.4.tar.gz", "has_sig": false, "md5_digest": "6b3f1a2729fd3e8fab1bdad4d5ff78c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7631, "upload_time": "2017-08-18T12:05:26", "url": "https://files.pythonhosted.org/packages/bf/75/951e3be7a9fc9bc92a6642db0a4e6a5d31d04e32e68451f5404c695cebf9/multiping-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "4f48d866743f9fac0277ede623900536", "sha256": "32d1e21bb4573adfd8e630974f215e7d51ffc7f051a960b6a2a700bd1e488b56" }, "downloads": -1, "filename": "multiping-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4f48d866743f9fac0277ede623900536", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9619, "upload_time": "2017-08-19T00:15:15", "url": "https://files.pythonhosted.org/packages/63/c1/cc8935a601a3d90ce90a61293691759d4851cc4eb61b1e6aadf84cb94d6d/multiping-1.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47745d066909e139fd19928b403a9c87", "sha256": "4146c83b278c7a59b6fdbe51d8adc5fb4066fe201006cdc2c03280f81cd47ffd" }, "downloads": -1, "filename": "multiping-1.0.5.tar.gz", "has_sig": false, "md5_digest": "47745d066909e139fd19928b403a9c87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7661, "upload_time": "2017-08-19T00:15:17", "url": "https://files.pythonhosted.org/packages/d5/50/e6b952468f60f0b92bcf64c1d3ecf028fe63e4d54f908ead0105c861008f/multiping-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "51a6dabfb88365702cfd8d39cd83ccd7", "sha256": "1059908b12ac0c922905617e899f13e89e5a989e2aa2286ab1161f9271e032f6" }, "downloads": -1, "filename": "multiping-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "51a6dabfb88365702cfd8d39cd83ccd7", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9625, "upload_time": "2017-11-10T03:36:11", "url": "https://files.pythonhosted.org/packages/66/ac/86a0910774dc9f09742f38617fb172830b36724bc05e07c69a817ed8f0a0/multiping-1.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "807d477714fab2a10bfdfd2370b41e8d", "sha256": "c41304155396ee8f0b2ff788f0ac47bae381aba631bd63236f6984046fee0246" }, "downloads": -1, "filename": "multiping-1.0.6.tar.gz", "has_sig": false, "md5_digest": "807d477714fab2a10bfdfd2370b41e8d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7670, "upload_time": "2017-11-10T03:36:13", "url": "https://files.pythonhosted.org/packages/82/0d/dcf84328c65953d53890ee492050a1c5ce45b6a3a9e698f9f3bb89db9a18/multiping-1.0.6.tar.gz" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "c7f09d70afc77fc27a8905492343b038", "sha256": "85b0e530281f43cb8dcda2febc83acfda9f6d2aacf3d8abb5fd4ca193644f9ca" }, "downloads": -1, "filename": "multiping-1.0.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c7f09d70afc77fc27a8905492343b038", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9675, "upload_time": "2018-01-08T19:46:39", "url": "https://files.pythonhosted.org/packages/18/c5/d4355b0f43b0b492f7b7f41e6235916238b882971836e1a6bde76c0805d6/multiping-1.0.7-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f6d6cd26334804f48f181bd92e62da10", "sha256": "1d7e2a0f146144d94319efd43cf3c5a2f0e3937a51117ef45af1925940b3ab40" }, "downloads": -1, "filename": "multiping-1.0.7.tar.gz", "has_sig": false, "md5_digest": "f6d6cd26334804f48f181bd92e62da10", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7722, "upload_time": "2018-01-08T19:46:41", "url": "https://files.pythonhosted.org/packages/7b/25/95c44935febb90473bd54d66a32cefe3dd3a6b00c3274c924deec33aa932/multiping-1.0.7.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "2286328a18c9e2c75fc6887fbe44bdc6", "sha256": "1f287a437615524f32875b4c7411fc5b04867060258084406745c37e5128d287" }, "downloads": -1, "filename": "multiping-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2286328a18c9e2c75fc6887fbe44bdc6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10487, "upload_time": "2018-02-20T00:39:14", "url": "https://files.pythonhosted.org/packages/c3/27/5ae9ba46f632ca7ec6b44be752c5976ef899eaa65c30f54dd3e198074d64/multiping-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ae136cf24e65deb739c2cae76de81499", "sha256": "74cb6df6a11b4cab5b8bf50b36827252ae53716e390d20181cddbffc5688336c" }, "downloads": -1, "filename": "multiping-1.1.0.tar.gz", "has_sig": false, "md5_digest": "ae136cf24e65deb739c2cae76de81499", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8562, "upload_time": "2018-02-20T00:39:15", "url": "https://files.pythonhosted.org/packages/fa/2d/61713c4fc49f92bd247dcb7bc02d749861db337ee8c6069d5e3320cf37a1/multiping-1.1.0.tar.gz" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "c315282129b3cd083c116305769d2871", "sha256": "916bc870ee4e4921ad9dbf997a15e046195480a775ec7c2c615f4de9a5fd3483" }, "downloads": -1, "filename": "multiping-1.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "c315282129b3cd083c116305769d2871", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11624, "upload_time": "2018-05-24T20:13:17", "url": "https://files.pythonhosted.org/packages/6a/d0/c1a770db40eefa09f387dbd8fcb005700893a3c0c7af90f339661ab45721/multiping-1.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cae89db439d51cd68399c5b97adf9359", "sha256": "8bad44be68db553efedc46c6af51a49660b19e6731bfe53311dddfdf30397b25" }, "downloads": -1, "filename": "multiping-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cae89db439d51cd68399c5b97adf9359", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11626, "upload_time": "2018-05-24T20:13:18", "url": "https://files.pythonhosted.org/packages/0f/24/faf5dbe59c49b7a4b6f283d22443cfe8f8bd63c0e8fc8ff34250b00c5bf0/multiping-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cceab7574d46030e041c54e12cffde8f", "sha256": "9ecad777ca27c4415cd685957bafaaa0faf4f17f9419800e9f57a298201f2e5d" }, "downloads": -1, "filename": "multiping-1.1.2.tar.gz", "has_sig": false, "md5_digest": "cceab7574d46030e041c54e12cffde8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9418, "upload_time": "2018-05-24T20:13:19", "url": "https://files.pythonhosted.org/packages/5e/2d/58d80a082f1985c83db0c9927fccb3108cfc6c384d5c55b107a3066eea6b/multiping-1.1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c315282129b3cd083c116305769d2871", "sha256": "916bc870ee4e4921ad9dbf997a15e046195480a775ec7c2c615f4de9a5fd3483" }, "downloads": -1, "filename": "multiping-1.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "c315282129b3cd083c116305769d2871", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11624, "upload_time": "2018-05-24T20:13:17", "url": "https://files.pythonhosted.org/packages/6a/d0/c1a770db40eefa09f387dbd8fcb005700893a3c0c7af90f339661ab45721/multiping-1.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cae89db439d51cd68399c5b97adf9359", "sha256": "8bad44be68db553efedc46c6af51a49660b19e6731bfe53311dddfdf30397b25" }, "downloads": -1, "filename": "multiping-1.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "cae89db439d51cd68399c5b97adf9359", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11626, "upload_time": "2018-05-24T20:13:18", "url": "https://files.pythonhosted.org/packages/0f/24/faf5dbe59c49b7a4b6f283d22443cfe8f8bd63c0e8fc8ff34250b00c5bf0/multiping-1.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "cceab7574d46030e041c54e12cffde8f", "sha256": "9ecad777ca27c4415cd685957bafaaa0faf4f17f9419800e9f57a298201f2e5d" }, "downloads": -1, "filename": "multiping-1.1.2.tar.gz", "has_sig": false, "md5_digest": "cceab7574d46030e041c54e12cffde8f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9418, "upload_time": "2018-05-24T20:13:19", "url": "https://files.pythonhosted.org/packages/5e/2d/58d80a082f1985c83db0c9927fccb3108cfc6c384d5c55b107a3066eea6b/multiping-1.1.2.tar.gz" } ] }