{"id":13800322,"url":"https://github.com/stellarbit/aioping","last_synced_at":"2026-01-23T12:08:58.966Z","repository":{"id":16059543,"uuid":"81907164","full_name":"stellarbit/aioping","owner":"stellarbit","description":"Python asyncio ping library","archived":false,"fork":false,"pushed_at":"2024-01-21T22:51:21.000Z","size":58,"stargazers_count":82,"open_issues_count":10,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-18T15:51:55.297Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stellarbit.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-14T05:06:03.000Z","updated_at":"2024-09-12T18:35:53.000Z","dependencies_parsed_at":"2024-01-05T21:20:12.900Z","dependency_job_id":"541ced8f-5598-4c5d-a1c9-cab567dd2aed","html_url":"https://github.com/stellarbit/aioping","commit_stats":{"total_commits":45,"total_committers":11,"mean_commits":4.090909090909091,"dds":0.4444444444444444,"last_synced_commit":"45102cbaf2dad4e73743a343ef94eee27a09d9d5"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbit%2Faioping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbit%2Faioping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbit%2Faioping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellarbit%2Faioping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellarbit","download_url":"https://codeload.github.com/stellarbit/aioping/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253913107,"owners_count":21983259,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T00:01:11.425Z","updated_at":"2026-01-23T12:08:53.929Z","avatar_url":"https://github.com/stellarbit.png","language":"Python","funding_links":[],"categories":["Networking"],"sub_categories":[],"readme":"aioping is a fast asyncio implementation of ICMP (ping) protocol.\n\n\nInstallation\n------------\n\naioping requires Python 3.5. \n\nUse pip to install it from the PyPI::\n\n    $ pip install aioping\n\nOr use the latest version from the master (if you are brave enough)::\n\n    $ pip install git+https://github.com/stellarbit/aioping\n\nUsing aioping\n-------------\n\nThere are 2 ways to use the library.\n\nFirst one is interactive, which sends results to standard Python logger:\n\n.. code:: python\n\n    import asyncio\n    import aioping\n    import logging\n\n    logging.basicConfig(level=logging.INFO)     # or logging.DEBUG\n    asyncio.run(aioping.verbose_ping(\"google.com\"))\n\nAlternatively, you can call a ping function, which returns a\nping delay in milliseconds or throws an exception in case of\nerror:\n\n.. code:: python\n\n    import asyncio\n    import aioping\n\n    async def do_ping(host):\n        try:\n            delay = await aioping.ping(host) * 1000\n            print(\"Ping response in %s ms\" % delay)\n\n        except TimeoutError:\n            print(\"Timed out\")\n\n    asyncio.run(do_ping(\"google.com\"))\n\nMethods\n-------\n\n``ping(dest_addr, timeout=10, family=None)``\n\n- ``dest_addr`` - destination address, IPv4, IPv6 or hostname\n- ``timeout`` - timeout in seconds (default: ``10``)\n- ``family`` - family of resolved address - ``socket.AddressFamily.AF_INET`` for IPv4, ``socket.AddressFamily.AF_INET6``\n  for IPv6 or ``None`` if it doesn't matter (default: ``None``)\n\n``verbose_ping(dest_addr, timeout=2, count=3, family=None)``\n\n- ``dest_addr`` - destination address, IPv4, IPv6 or hostname\n- ``timeout`` - timeout in seconds (default: ``2``)\n- ``count`` - count of packets to send (default: ``3``)\n- ``family`` - family of resolved address - ``socket.AddressFamily.AF_INET`` for IPv4, ``socket.AddressFamily.AF_INET6``\n  for IPv6 or ``None`` if it doesn't matter (default: ``None``)\n\nCredits\n-------\n\n- Original Version from Matthew Dixon Cowles:\n  ftp://ftp.visi.com/users/mdc/ping.py\n\n- Rewrite by Jens Diemer:\n  http://www.python-forum.de/post-69122.html#69122\n\n- Rewrite by Samuel Stauffer:\n  https://github.com/samuel/python-ping\n\n- Rewrite by Anton Belousov / Stellarbit LLC \u003canton@stellarbit.com\u003e\n  http://github.com/stellarbit/aioping\n  \n- Generous contributions from GitHub users:\n\n  - https://github.com/JackSlateur\n  - https://github.com/harriv\n  - https://github.com/asantoni\n  - https://github.com/eddebc\n  - https://github.com/wise0wl\n  - https://github.com/nARN\n  - https://github.com/hergla\n  - https://github.com/hanieljgoertz\n  - https://github.com/Crypto-Spartan\n  - https://github.com/liordot\n  - https://github.com/dkaplan1\n  - https://github.com/haron\n  - https://github.com/matteomartelli\n\n\nLicense\n-------\n\naioping is licensed under GPLv2.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarbit%2Faioping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellarbit%2Faioping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellarbit%2Faioping/lists"}