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.0.tar.gz (7.1 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.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: httpie_hush-1.0.tar.gz
  • Upload date:
  • Size: 7.1 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.0.tar.gz
Algorithm Hash digest
SHA256 e153d91a5bb2a2375cdc9a3855f503de725e1c8b89c03f26a1eb099d7c7f0498
MD5 10d90fe2f795b08e363b76c7a5e8d4d8
BLAKE2b-256 7432bdcf461816dff7c091ec8968e95fecfd79da9c6b9f2b2355b199dd76bebc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: httpie_hush-1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bcd624b69a9d0e35ec4a4b64d0dbefcdf91aa6b061078f879dc5041c1f3b064
MD5 f4a9cf0f3b3fd46bcdaf63cf54112ed1
BLAKE2b-256 b774590d218efebab8c66ae30ce02b8f587018cd0114b4afee03cdbbc448e084

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