Skip to main content

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

Project description

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.

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

website_tool-0.0.11.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

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

website_tool-0.0.11-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file website_tool-0.0.11.tar.gz.

File metadata

  • Download URL: website_tool-0.0.11.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.1.26-1-MANJARO

File hashes

Hashes for website_tool-0.0.11.tar.gz
Algorithm Hash digest
SHA256 4eb3ee859f99f4b61375e90a65379e6a31cb7beaf1c53d8d6097460ca920b6de
MD5 a53568b57bb931f2be6262a891482e53
BLAKE2b-256 af835593851677201720118faac01070d3b278630d16bba2fc26f9704001d509

See more details on using hashes here.

File details

Details for the file website_tool-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: website_tool-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.1.26-1-MANJARO

File hashes

Hashes for website_tool-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e3d6bafea37c3557aa40a2271dc11ab6d38776bb1497ac64f3c5848f193cddb4
MD5 c93ff5a5d78500dfa39e4ddd27e72325
BLAKE2b-256 02a00c8cdb4400010cca94df7b3515a606651f95e58d8919601fb5e3099f5d3e

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