Skip to main content

maintain-website-tool

A tool to make it simpler to maintain a website against the increasing entropy on the web.

This tool includes:

  • A link checker
  • A CLI Interface
  • A visualization of the links on a website

Usage

$ python3 -m maintain-website-tool --help
usage: maintain-website-tool [-h] {link} ...

positional arguments:
  {link}
    link      Tools to maintain the links on a website

optional arguments:
  -h, --help  show this help message and exit

This tool always outputs to stdout (with one exception at link check visualize) and often takes input from stdin or files. I try to follow UNIX and Linux command line convention as much as possible and as often as possible.

link Tool

This can be used to:

  • Collect a list of all links on your website.
  • Collect latency, status and errors for each link on your website.
  • Format results as CSV, YAML and JSON
  • Take the difference in status, latency and errors between two different checks of a website.
  • Visualize the results as a PyVIS Graph with domains as vertices and links as edges.

How to check a website

$ echo "https://example.org" python3 -m maintain-website-tool link --format csv check - > example.org.csv

The link check command executes a check starting with the websites it receives as a file either from stdin (as in this example) or through some filename. You can even execute checks of multiple sites by providing more than one URI to the check (seperated by newlines).

See python3 -m maintain-website-tool link check --help for more information.

Usage

$ python3 -m maintain-website-tool link --help
usage: maintain-website-tool link [-h] [--format {csv,yaml,yml,json}] [--in-format {csv,yaml,yml,json}]
                                  [--out-format {csv,yaml,yml,json}]
                                  {check,sort,diff,visualize} ...

positional arguments:
  {check,sort,diff,visualize}
    check               Check all the locations in the locations for their reachability, latency and status
    sort                Sort the results from check according to some options
    diff                Take the difference between two check results
    visualize           Visualize the results of a page as a graph stored in a static HTML.

optional arguments:
  -h, --help            show this help message and exit
  --format {csv,yaml,yml,json}, -f {csv,yaml,yml,json}
                        Format to expect for input and output (is overwritten by in-format and out-format
  --in-format {csv,yaml,yml,json}, -in-f {csv,yaml,yml,json}
                        Format to expect from input only
  --out-format {csv,yaml,yml,json}, -out-f {csv,yaml,yml,json}
                        Format to use for output only

Contributing

I want to extend this into a multipurpose tool to help with the maintance of a website. If you have an idea for other tools to be added, create an issue here.

Social Coding

I'm a subscriber to the ideals and principles of Social Coding.

Metadata

Release files for maintain-website-tool 0.0.12

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

Source distribution (sdist)

Source distribution for maintain-website-tool 0.0.12
File Size Uploaded
maintain-website-tool-0.0.12.tar.gz 20.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maintain-website-tool 0.0.12
File Interpreter ABI Platform
maintain_website_tool-0.0.12-py3-none-any.whl Python 3 none any Details

Total release size: 41.8 kB

Release files / maintain-website-tool-0.0.12.tar.gz

Download URL maintain-website-tool-0.0.12.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b4eec788f41ba3e7ad0139354ba84901eb08e8a72cce7e7c1b42ed46f340bdf4
BLAKE2b-256 checksum
How to use checksums
d1e827e92f7f9c5f33ec7f42f55cf7ae8fedf1f16816b0b6e0dfedbf83e36812
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.2

Release files / maintain_website_tool-0.0.12-py3-none-any.whl

Download URL maintain_website_tool-0.0.12-py3-none-any.whl
Size 21.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4d33de18cd1dc9e8b459e7c7d013a40814b4dcd8da36e63392d3d18cc44b4927
BLAKE2b-256 checksum
How to use checksums
f0dbb5c7c79c087a4672a010c60920b52a70ad5af0c30249ffeaa1452805c919
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.2

Release history Release notifications | RSS feed

This release

0.0.12 This release

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

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