Skip to main content

A simple helper to make HTTP requests using stdlib http.client

Project description

http-simple-cli

A simple CLI to make HTTP requests using the stdlib http.client module.

The main goal is to make it possible to make simple http requests from inside containers, for example for health checks, without having to install any OS dependencies (and having to deal with security alerts for those OS dependencies).

Usage

http-simple-cli [-h] [-X REQUEST] [-H HEADER] [-d DATA] [-v] [-o OUTPUT] [-k] [-t TIMEOUT] url

Barebones utility to make HTTP requests using the standard library http.client

positional arguments: url URL to make the request to

options: -h, --help show this help message and exit -X REQUEST, --request REQUEST HTTP method to use (default: GET) -H HEADER, --header HEADER HTTP header to include in the request (can be specified multiple times) -d DATA, --data DATA Data to include in the request body (for POST, PUT, etc.) -v, --verbose Print verbose output (request and response headers) -o OUTPUT, --output OUTPUT File to write the response body to (default: stdout) -k, --insecure Allow insecure server connections when using SSL (ignore certificate verification) -t TIMEOUT, --timeout TIMEOUT Timeout for the request in seconds (default: 60)

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

http_simple_cli-0.1.0.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

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

http_simple_cli-0.1.0-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file http_simple_cli-0.1.0.tar.gz.

File metadata

  • Download URL: http_simple_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for http_simple_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 71aa2b8ff9e26b1f0adc1ec905edd5f33603624c28f208793db98566343b30e5
MD5 9bef78b5044a3c585d5d73d82cfcf1d6
BLAKE2b-256 26f4101365f7edda3437bda9afa98e3b769483fdf7440d7e1eabcec9ed0eb43d

See more details on using hashes here.

File details

Details for the file http_simple_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: http_simple_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for http_simple_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a59644c148acd45597fe2bbb543f1d383922bc3e042f737a93a1568132cf5e64
MD5 efbc62a483d5485dae0b485ae7aa2c3e
BLAKE2b-256 c09bdb2b7691249ca46ecf37504739da65cb6a46d42a83e26bf15e2580b3bbdd

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