{ "info": { "author": "Matthias Urlichs", "author_email": "matthias@urlichs.de", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Networking :: Monitoring" ], "description": "--------\naio_ping\n--------\n\nAn asyncio-based python ping implementation using raw sockets.\n\n* Compatible with Python 3.5 ff.\n\n* Note that ICMP messages can only be sent from processes running as root (in Windows, you must run this script as 'Administrator').\n\n----------------\nOriginal Version\n----------------\n\n* `Matthew Dixon Cowles `_\n\n* copyleft 1989-2016 by the python-ping team, see `AUTHORS `_ for more details.\n\n* license: GNU GPL v2, see `LICENSE `_ for more details.\n\nUsage\n=====\n\n::\n\n usage: ping [-h] [-w TIMEOUT] [-c COUNT] [-i INTERVAL] [-4] [-6]\n [-I SOURCEINTF] [-s NUMDATABYTES] [-T] [-S SOURCEIP]\n hostname\n \n A pure python implementation of the ping protocol. *REQUIRES ROOT*\n \n positional arguments:\n hostname The address to attempt to ping.\n \n optional arguments:\n -h, --help show this help message and exit\n -w TIMEOUT, --deadline TIMEOUT\n The maximum amount of time to wait until ping times\n out.\n -c COUNT, --request_count COUNT\n The number of attempts to make. Zero=infinite.\n -i INTERVAL, --interval INTERVAL\n Time between ping attempts\n -4, --ipv4 Flag to use IPv4.\n -6, --ipv6 Flag to use IPv6.\n -I SOURCEINTF, --interface SOURCEINTF\n Interface to use.\n -s NUMDATABYTES, --packet_size NUMDATABYTES\n Designate the amount of data to send per packet.\n -T, --test_case Flag to run the default test case suite.\n -S SOURCEIP, --source_address SOURCEIP\n Source address from which ICMP Echo packets will be\n sent.\n\nUsing as lib\n============\n\n::\n\n # python3\n >>> from aio_ping import ping\n >>> ping('google.com', timeout=3000, count=3, delay=0.5)\n True\n >>> ping('google.com', timeout=3000, count=3, delay=0.5, verbose=True)\n \n PYTHON PING google.com (216.58.212.46): 1300 data bytes\n 72 bytes from 216.58.212.46: icmp_seq=0 ttl=59 time=4.42 ms\n 72 bytes from 216.58.212.46: icmp_seq=1 ttl=59 time=4.70 ms\n 72 bytes from 216.58.212.46: icmp_seq=2 ttl=59 time=4.44 ms\n 72 bytes from 216.58.212.46: icmp_seq=3 ttl=59 time=4.47 ms\n \n ----216.58.212.46 PYTHON PING Statistics----\n 4 packets transmitted, 4 packets received, 0.0% packet loss\n round-trip (ms) min/avg/max = 4.4/4.5/4.7\n \n 1\n\nAsync usage is via the {Ping} class, which can be used like this:\n\n::\n\n from aio_ping import Ping,VerbosePing\n async def ping(hostname, verbose=True, handle_signals=False, **kw):\n \"\"\"\n Send @count ping to @hostname with the given @timeout\n \"\"\"\n ping = (VerbosePing if verbose else Ping)(verbose=verbose, **kw)\n if handle_signals: ping.add_signal_handler()\n await ping.init(hostname)\n res = await ping.looped()\n if verbose:\n ping.print_stats()\n ping.close()\n return res\n\n----------\ncontribute\n----------\n\n`Fork this repo `_ on `GitHub `_ and `send pull requests `_. Thank you.\n\n----------------\nRevision history\n----------------\n\n`Revision history `_\n\n-----\nLinks\n-----\n\n+----------------------+---------------------------------------+\n| Sourcecode at GitHub | `https://github.com/M-o-a-T/aioping`_ |\n+----------------------+---------------------------------------+\n\n.. _https://github.com/M-o-a-T/aioping: https://github.com/M-o-a-T/aioping", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/M-o-a-T/aioping/", "keywords": "asyncio ping icmp network latency", "license": "", "maintainer": "", "maintainer_email": "", "name": "aio_ping", "package_url": "https://pypi.org/project/aio_ping/", "platform": "", "project_url": "https://pypi.org/project/aio_ping/", "project_urls": { "Homepage": "https://github.com/M-o-a-T/aioping/" }, "release_url": "https://pypi.org/project/aio_ping/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "An async python ICMP ping implementation using raw sockets.", "version": "0.1.3" }, "last_serial": 3049298, "releases": { "0.1.3": [ { "comment_text": "", "digests": { "md5": "77f7cf12e90962dc264f30c9db0fbc48", "sha256": "1d84610ff2830480a8762d350172d512add01bb1fa1957ea4e8ba843b57c4bd7" }, "downloads": -1, "filename": "aio_ping-0.1.3.tar.gz", "has_sig": false, "md5_digest": "77f7cf12e90962dc264f30c9db0fbc48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10352, "upload_time": "2017-07-26T06:11:19", "url": "https://files.pythonhosted.org/packages/0b/89/f58d745ac40cedc1884374a38cebee746d41e6ec50279b12198bcf889ad0/aio_ping-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "77f7cf12e90962dc264f30c9db0fbc48", "sha256": "1d84610ff2830480a8762d350172d512add01bb1fa1957ea4e8ba843b57c4bd7" }, "downloads": -1, "filename": "aio_ping-0.1.3.tar.gz", "has_sig": false, "md5_digest": "77f7cf12e90962dc264f30c9db0fbc48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10352, "upload_time": "2017-07-26T06:11:19", "url": "https://files.pythonhosted.org/packages/0b/89/f58d745ac40cedc1884374a38cebee746d41e6ec50279b12198bcf889ad0/aio_ping-0.1.3.tar.gz" } ] }