Skip to main content

downtime-csv

This tool is used to measure how long a website is down from the user's perspective, such as when it is restarted. It continues to send HTTP requests for 5 minutes every 200ms, and outputs the start time, response time, and status of each request to standard output as CSV.

Requirements

Python >= 3.7

Install

You can download and install this tool from pypi with the command below.

pip install downtime-csv

Usage

You can collect data for that URL with the command below. The data is printed to standard output.

downtime-csv URL

Example

Using the command below, you can obtain the results of accessing google.com every 200ms for 5 minutes as test.csv. Load this into Excel and analyze it.

downtime-csv google.com > test.csv

The first column is the start time, but it has millisecond precision, so please set it to display milliseconds in Excel as well. Note that the output is in the order the requests finished. If you want to order by request start, sort the entire range by the value of the first column.

Add custom header

The downtim-csv command allows you to add headers to HTTP requests using the -H option, similar to curl.

downtime-csv https://example.com -H "Authorization: Bearer token" -H "Custom-Header: Value"

The headers given by default are as follows:

User-Agent: aiohttp/<version> python/<version>
Accept-Encoding: gzip, deflate
Accept: */*

These headers are what aiohttp adds to requests by default. If you add a custom header, it will not override these default headers, but if you specify a header with the same name, the custom header will take precedence.

Metadata

Release files for downtime-csv 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for downtime-csv 1.0.5
File Size Uploaded Provenance Actions
downtime_csv-1.0.5.tar.gz 3.4 kB Without provenance Details for downtime_csv-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for downtime-csv 1.0.5
File Interpreter ABI Platform Actions
downtime_csv-1.0.5-py3-none-any.whl Python 3 none any Details for downtime_csv-1.0.5-py3-none-any.whl

Total release size: 7.5 kB

Release files / downtime_csv-1.0.5.tar.gz

Download URL downtime_csv-1.0.5.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e66c368af2ea3c05be45b5b61f2d821851fb3a2a3ee8c82fe06a7f246674425f
BLAKE2b-256 checksum
How to use checksums
d8c36153010ab010eaedbcdb135c52ed93c1a5569d04a709c18c8e15cf1e24bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.7 Linux/6.5.0-1025-azure

Release files / downtime_csv-1.0.5-py3-none-any.whl

Download URL downtime_csv-1.0.5-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
704913aac4c45317d1444782476e90c35a0ab778baa1ce0b040dd604a2302b71
BLAKE2b-256 checksum
How to use checksums
f68bf87aaf2bfe831cbdbdfe10354bfd46f41320a263b64a9c0a21c3810d59dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.7 Linux/6.5.0-1025-azure

Security for downtime-csv 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page