Skip to main content

Polymonitor

Polymonitor can be used as a stand alone CLI tool to quickly check the status of a URL or as a plugin for polybar.

Installation

Use the package manager pip to install polymonitor.

$ pip install polymonitor

Alternatively you can clone the git repository and use Poetry to install it.

$ git clone https://github.com/hegelocampus/polymonitor
$ cd polymonitor
$ poetry install

Usage

polymonitor --help 
usage: Displays site status for polybar. [-h] [-s] [-c] [-u URLS [URLS ...]]

optional arguments:
  -h, --help            show this help message and exit
  -s, --symbolic        Displays the results as symbols
  -c, --compact         Reduces the results into a more compact package
  -u URLS [URLS ...], --urls URLS [URLS ...]
                        Pass in URLs to monitor

A basic use case would be quickly printing the status of web-apps you'd like to check on:

$ polymonitor -cu duckduckgo.com google.com google.com/404
Up: 2 Down: google.com/404

Note that you do not need to preface the URLs with a protocol (e.g., https://). If you do not provide a full URL https:// will be prefixed to your URL before it is pinged.

You can leave off the -c flag for more verbose output:

$ polymonitor -cu duckduckgo.com google.com google.com/404
google.com: Up google.com/404: Down duckduckgo.com: Up

Polybar Use

If you would like to use this tool in your polybar you need to add the following to your polybar config:

[module/polymonitor]
type = custom/script
exec = polymonitor -cu duckduckgo.com google.com twitter.com cloudflare.com
interval = 10800

This is what the above configuration will generate:
Polybar Screenshot
Note that if you are using this to ping your own web-pages, you may want to raise the interval to only refresh every couple hours. The interval is specified in seconds so one hour would be interval = 3600 and the above example would refresh every three hours.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Metadata

Release files for polymonitor 0.1.6

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

Source distribution (sdist)

Source distribution for polymonitor 0.1.6
File Size Uploaded Provenance Actions
polymonitor-0.1.6.tar.gz 3.6 kB Without provenance Details for polymonitor-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polymonitor 0.1.6
File Interpreter ABI Platform Actions
polymonitor-0.1.6-py3-none-any.whl Python 3 none any Details for polymonitor-0.1.6-py3-none-any.whl

Total release size: 7.5 kB

Release files / polymonitor-0.1.6.tar.gz

Download URL polymonitor-0.1.6.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9ddfb0821fe480188ba6b9303bc16ff1f503637e6a690d1cb1234b993f863aab
BLAKE2b-256 checksum
How to use checksums
09e9b2ee914200429984ce9e593c14ef4abc9a6ffdd4c5e3a2d1989f8d9e6195
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.7.12-zen1-1-zen

Release files / polymonitor-0.1.6-py3-none-any.whl

Download URL polymonitor-0.1.6-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
faebb3b426a034ee93c2345781133e82b66b46841b575aa0930604934f10c1f5
BLAKE2b-256 checksum
How to use checksums
176a9291c60aa612038c8b8c0cfe411e025ef5e218dc2bce278925c4542dd55f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.5 Linux/5.7.12-zen1-1-zen

Security for polymonitor 0.1.6

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.

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