Python ping package
Project description
python-ping
Python ping package
README Map
- To run locally, go to Run from command line.
- To use the main class, skip to The main class.
- Instructions on advanced/technical documentation, go to Documentation.
Run from command line
From the project's root directory, please run the following command and follow instructions:
$ python -m ping
The main class
With the python console and the Ping class, we can get things running:
$ python
>>> from ping import Ping
>>> ping = Ping('localhost')
>>> print(f'Ping avg return: {ping.avg} ms')
>>> print(f'Ping errors return: {ping.returncode} {ping.stderr}')
Documentation
Please try from python console:
$ python
>>> import ping
>>> help(ping)
Or try from command line:
$ python -c "import ping; print(ping.__doc__)"
All documentation can be found in docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file simple_ping-0.1-py3-none-any.whl
.
File metadata
- Download URL: simple_ping-0.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41b919aab307543db08698e7b8f9673f6b32c850459cc7c1fd427fc4bc1af5f7 |
|
MD5 | 9750f33982de1cfcde76b00b4b215d8e |
|
BLAKE2b-256 | 0f36a5585084c73e61d96f62b55a1433bde2071f62c8edf671be333849b7c8a1 |