🔔 Welcome to yaping
A python library for pinging multiple hosts.
It focuses on providing both sync and asynch versions and minimizing the amount of of OS resources (only a single socket is used for handling multiple hosts with multiple ping requests)
Without further ado:
$ python -m asyncio
>>> from yaping.aioping import ping
>>> from yaping.tools import response_text
>>> async for response in ping(["gnu.org", "orcid.org"], count=2):
... text = response_text(response)
... print(text)
64 bytes from orcid.org (104.20.228.70): icmp_seq=1 time=4.8ms
64 bytes from gnu.org (209.51.188.116): icmp_seq=1 time=113.4ms
64 bytes from orcid.org (104.20.228.70): icmp_seq=2 time=4.7ms
64 bytes from gnu.org (209.51.188.116): icmp_seq=2 time=118.8ms
Requirements:
- python >= 3.9
Installation
From within your favorite python environment:
$ pip install yaping
To develop, run tests, build package, lint, etc you'll need:
$ pip install yaping[dev]
To run docs you'll need:
$ pip install yaping[docs]
Setup
Some systems require this adjustment to be able to create datagram icmp sockets:
sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"
Metadata
Release files for yaping 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| yaping-0.2.0.tar.gz | 24.3 kB | Without provenance | Details for yaping-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| yaping-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for yaping-0.2.0-py3-none-any.whl |
Total release size: 50.3 kB
Release files / yaping-0.2.0.tar.gz
| Download URL | yaping-0.2.0.tar.gz |
|---|---|
| Size | 24.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5f7319e253411658de3927cf3d4e4bae5aa9d3231e1cb01c60f74538b75b8c4
|
|
BLAKE2b-256 checksum How to use checksums |
208be5ec6f09ad3093f10f4d2c49fc845ada81e6bc1237017ea1a1d20d75d101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / yaping-0.2.0-py3-none-any.whl
| Download URL | yaping-0.2.0-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
214185e56e076cf232628068a4bbc7b6ef7cf31df1cb1f0e37d09bac4c881401
|
|
BLAKE2b-256 checksum How to use checksums |
3822c638bce0ce0cc29b055d8c30d3f4dcef9c3cc126fe2b9c47258e2873a165
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for yaping 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.