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 website-tool 0.0.11

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

Source distribution (sdist)

Source distribution for website-tool 0.0.11
File Size Uploaded
website_tool-0.0.11.tar.gz 15.9 kB Details

Built distribution (wheel)

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

Total release size: 33.6 kB

Release files / website_tool-0.0.11.tar.gz

Download URL website_tool-0.0.11.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4eb3ee859f99f4b61375e90a65379e6a31cb7beaf1c53d8d6097460ca920b6de
BLAKE2b-256 checksum
How to use checksums
af835593851677201720118faac01070d3b278630d16bba2fc26f9704001d509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.10 Linux/6.1.26-1-MANJARO

Release files / website_tool-0.0.11-py3-none-any.whl

Download URL website_tool-0.0.11-py3-none-any.whl
Size 17.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e3d6bafea37c3557aa40a2271dc11ab6d38776bb1497ac64f3c5848f193cddb4
BLAKE2b-256 checksum
How to use checksums
02a00c8cdb4400010cca94df7b3515a606651f95e58d8919601fb5e3099f5d3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.10 Linux/6.1.26-1-MANJARO

Release history Release notifications | RSS feed

This release

0.0.11 This release

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