Skip to main content

Hush OAuth 2 plugin for the HTTPie command line HTTP client

Project description

httpie-hush

Hush OAuth 2 plugin for the HTTPie <https://github.com/jkbr/httpie> command line HTTP client.

Installation

    $ pip install httpie-hush

You should now see hush under --auth-type in $ http --help output.

Setup

    $ httpie-hush-setup

Configure Hush's auth plugin with your creds (saved in ~/.httpie/config.json).
The credentials can be either a username/password or an API Key ID/API Key Secret.

Notes:

  • If username is not provided in conf file it will be searched at HTTPIE_HUSH_USERNAME envar
  • If password is not provided in conf file it will be searched at HTTPIE_HUSH_PASSWORD envar
  • If org shortname is not provided in conf file it will be searched at HTTPIE_HUSH_ORG envar
    • Only required for username login
    • API Keys use the API Key's org or the passes effective org
  • Manually inputted username/password supersedes conf file and environment variables

Usage

    $ http --auth-type=hush GET https://api.us.hush-security.com/v1/users

It's possible to use an effective org by passing the EORG envar:

    $ EORG=hush http --auth-type=hush GET https://api.us.hush-security.com/v1/users

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

httpie_hush-1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

httpie_hush-1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file httpie_hush-1.1.tar.gz.

File metadata

  • Download URL: httpie_hush-1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-51-generic

File hashes

Hashes for httpie_hush-1.1.tar.gz
Algorithm Hash digest
SHA256 d5644c856cb558f4fc2cadcc22ec5980007fa302dbeae046275a61c810de3317
MD5 36959f728033b4686aebc6604437e810
BLAKE2b-256 a2cc2bdab0b53416b2f90ab4c3498f78eba07715287879556e1611f56f8e2c89

See more details on using hashes here.

File details

Details for the file httpie_hush-1.1-py3-none-any.whl.

File metadata

  • Download URL: httpie_hush-1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.3 Linux/6.8.0-51-generic

File hashes

Hashes for httpie_hush-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ffdc3c74f05125311ae1d8c3a44196d8fc8893cf2a81e85fc5d76adb0eb4169
MD5 4b0884feaa5789007e27a09ba69ac717
BLAKE2b-256 0338f767471207e0ff734661c85363453ea67aa3d14fb0508ce0a3060d216335

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