Skip to main content

CLI web service availability verifier

Project description


macedon

PyPI Downloads Code style: black

Multi-threaded CLI web service availability verifier. Takes a list of endpoints with optional input dataset, performs series of HTTP requests and displays the results.

Motivation

Necessity to have a fast and configurable endpoint testing tool at fingertips.

Installation

pipx install macedon

Basic usage

> macedon localhost:5000 -n3

Threads:         1
Requests:        3
-------------------------
200  1.6kb  6.0ms  GET http://localhost:80
200  1.6kb  4.0ms  GET http://localhost:80
200  1.6kb  3.7ms  GET http://localhost:80
-------------------------
Successful:      3
Failed:          0  (0.0%)
Avg time:    4.0ms
Total time:   37ms

Configuration / Advanced usage

Usage: macedon [OPTIONS] [ENDPOINT_URL]...

Options:
  -T, --threads INTEGER         Number of threads for concurrent request making.  [default: 1]
  -n, --amount INTEGER          How many times each request will be performed.  [default: 1]
  -d, --delay FLOAT             Seconds to wait between each request.  [default: 0]
  -t, --timeout FLOAT           Seconds to wait for the response.  [default: 10]
  -f, --file FILENAME           Execute request(s) from a specified file. The file should contain
                                a list of endpoints in the format '{method} {url}', one per line.
                                Another supported (partially) format is JetBrains HTTP Client
                                format, which additionally allows to specify request headers and
                                body. The option can be specified multiple times. The ENDPOINT_URL
                                argument(s) are ignored if this option is present.
  -c, --color / -C, --no-color
  --show-id
  --show-error
  -v, --verbose                 Display detailed info on every request.  [0<=x<=2]
  --help                        Show this message and exit.

Changelog

CHANGES.rst

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

macedon-0.9.6.tar.gz (99.8 kB view hashes)

Uploaded Source

Built Distribution

macedon-0.9.6-py3-none-any.whl (107.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page