Skip to main content

A straightforward wrapper for the IsItDownRightNow API.

Project description

IsItDownRightNow

This is a simple Python wrapper for the IsItDownRightNow API, allowing users to check in real-time whether a specific website is currently accessible worldwide.

Installation

pip install isitdownrightnow

Usage

from isitdownrightnow import IsItDownRightNow

# Create an instance for a website
checker = IsItDownRightNow('google.com')

# Get the status of the website
status = checker.status
print(status)
{
    'up': True, 
    'website_name': 'Google', 
    'url_checked': 'www.google.com',
    'response_time_ms': 16.73,
    'last_down': 'More than a week ago', 
    'down_for': None, 
    'status': 'UP', 
    'message': 'Google.com is UP and reachable by us.'
}

Simple Overview

The main class in the wrapper is IsItDownRightNow. Here's a brief overview of its methods and properties:

Public Methods and Properties:

  • status: Returns a dictionary containing the status of the website.

Attributes:

  • domain: The domain name of the site to be checked.

Returns

For the status method, you can expect a dictionary with the following structure:

  • up (bool): True if the domain is up, False otherwise.

  • website_name (str): The name of the website.

  • url_checked (str): The URL that was checked.

  • response_time (str): The response time of the website.

  • last_down (str): The last time the website was down (None if the website is down).

  • down_for (str): The duration of time the website has been down (None if the website is up).

  • status (str): The status of the website, either "UP" or "DOWN".

  • message (str): A message about the result of the check.

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

isitdownrightnow-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

isitdownrightnow-0.0.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: isitdownrightnow-0.0.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for isitdownrightnow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 bcad1b3bd0d1b121d9dcfe063f377667649ae3dbca4d0fb109fafeca9216f3bb
MD5 8ec923f0d644351268a21d2def079762
BLAKE2b-256 3acac59950475bd18a78e12db05065619de4d4f7930260c227a7a9a88b0d2ef2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: isitdownrightnow-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for isitdownrightnow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bb074a742be16a6089f16ebf5b7610c36ada13d2da62d59736cb2321544c88f8
MD5 b3f9f5340eb91f08e55c67e0518e09a5
BLAKE2b-256 595c2919fd897f7b10217863dac1fd529a6ebf4f9618100cecf693024bb1d5da

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