Skip to main content

A python internet status checking library

Project description

Internet active checkking Project

This project leverages requests module to check internet connectivity. It's designed for simplicity and ease of use, allowing you to check internet connection active status.

Features

  • Check internet: Check if your device have a proper working internet connection or not.

Prerequisites

  • requests

Setup

  1. Install dependencies:
    pip install requests
    

Usage

To use the functionality, import the checkConnection function from ArtexPing.

from ArtexPing import InternetStatus

a = InternetStatus(output_file_path="output.txt")
a.checkConnection()

Continuous Usage

If you want to check internet connection active status continuously, it is recommended to use threading. This will prevent the function from blocking the execution of further code until it is stopped.

Example with Threading

import threading
import time
from ArtexPing import InternetStatus

a = InternetStatus(output_file_path="output.txt", continous=True)
ping_thread = threading.thread(target=a.checkStatus())

ping_thread.start()
time.sleep(10)
a.quit()
thread.join()

This project is managed by Artex AI. Soon an improved and stable version will roll out

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

artexping-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

ArtexPing-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file artexping-0.0.1.tar.gz.

File metadata

  • Download URL: artexping-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for artexping-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fd6f7e1911535b9afc7b4e311951380a9e5c4c42fbaf79a560ed89713060710a
MD5 ddf1d24f9226bd9888de6902b1000674
BLAKE2b-256 35d324ef9446bb427cfee2bda955908a71d79703293dd4db647dc5aca755c53d

See more details on using hashes here.

File details

Details for the file ArtexPing-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ArtexPing-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for ArtexPing-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b899448f5a486878cab27794c395cfc9f8784a68a0208aa0f365b467a4801cbb
MD5 82613ab13bdaa313c519b7bee57c62e0
BLAKE2b-256 6b6aa8ac4e178978de7fbf5f9dbc657db6705258e7c32da3f44c472b4652e897

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