Skip to main content

Check internet connectivity using sockets

Project description

checknet

A simple Python library to check internet connectivity using a TCP socket.

Installation

pip install checknet

from checknet import is_connected

if is_connected():
    print("Online")
else:
    print("Offline")

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

checknet-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

checknet-0.1.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file checknet-0.1.0.tar.gz.

File metadata

  • Download URL: checknet-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for checknet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c2800e95d2cb44e8ebc194a960e0eb4455df883aa864bda42f400b7fe47754b9
MD5 d5feb7b8f84a365424c37fa5328266f5
BLAKE2b-256 524b215b731060c2f7f19e5382bfe54ed52327de0e459fdff5de054303c769cb

See more details on using hashes here.

File details

Details for the file checknet-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: checknet-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.6

File hashes

Hashes for checknet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 74e5cbfb903739fb732acc3f82536540cd0b5479356b06812f1206a2f2663895
MD5 3a4084773087a8395e9d63637c86d670
BLAKE2b-256 8ba244bc51db0af2bc1f0f25005e82753f49bc4677d5baa2805cffe010b8ffe3

See more details on using hashes here.

Supported by

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