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 details)

Uploaded Python 3

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

Hashes for simple_ping-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 41b919aab307543db08698e7b8f9673f6b32c850459cc7c1fd427fc4bc1af5f7
MD5 9750f33982de1cfcde76b00b4b215d8e
BLAKE2b-256 0f36a5585084c73e61d96f62b55a1433bde2071f62c8edf671be333849b7c8a1

See more details on using hashes here.

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