Skip to main content

check network connection

Project description

Install

$ [sudo] pip install connection

Functions

function description
connection.check(timeout=None) return True if connection is ok, else False

Examples

>>> import connection
>>> connection.check()
True

timeout

>>> connection.check(timeout=2)

readme-md - README.md generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

connection-2018.11.19.tar.gz (1.2 kB view hashes)

Uploaded Source

Built Distribution

connection-2018.11.19-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 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