A server to echo back HTTP requests.
pip install .Run the server locally:
parrot serveThe server can be configured using environment variables or command line options:
| Environment Variable | CLI Option | Default | Description |
|---|---|---|---|
| HOST | --host | "" | Host to bind to |
| PORT | --port | 8080 | Port to run the server on |
| LOG_FORMAT | --log-format | pretty | Log format (pretty or json) |
| LOG_LEVEL | INFO | - | Logging level |
CLI options take precedence over environment variables.
Build the container:
docker build -t parrot .Run the container:
docker run -p 8080:8080 parrotDeploy using kubectl:
kubectl apply -f k8s/Or using Helm:
helm install parrot ./k8s/helmGET /health- Health check endpoint with uptime and request countANY /*- Echo back request details
Install development dependencies:
pip install ".[dev]"Run tests:
pytestMIT
