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.1.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.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: http_simple_cli-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a78a2602d41c75f1c6a6bff4a3cea9759346c8cdf281f3dde7525eff18e75c9c
MD5 cc4fa26dd8beb85c691fdfeddea9857f
BLAKE2b-256 03077b79cb166131b7acffeceb79da31914f840415e9f70f3e3e4596dbf2e3ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: http_simple_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9f95444c54bbb5fcf0e9d7503e67394963009fd39840421ab3fb9c7c382e1943
MD5 0ad12af9131b9b1e6d16646e1e10a49c
BLAKE2b-256 c885f63850f414ac7d1d29111145a69f94ba4144a2d88d3d70f63c35a864b2d4

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