Skip to main content

Python ping package

Project description

python-ping

Python ping package

 
 

README Map

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

This version

0.1

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

simple_ping-0.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page