Kong Hmac plugin for HTTPie.
Project description
httpie-kong-hmac
HMAC auth plugin for HTTPie and Kong
It currently provides support for Kong Hmac
Installation
$ pip install httpie-kong-hmac
Usage
$ http --auth-type=kong-hmac --auth='client-key:client-secret' example.org
You can also use HTTPie sessions:
# Create session $ http --session=logged-in --auth-type=kong-hmac --auth='client-key:client-secret' example.org # Re-use auth $ http --session=logged-in POST example.org hello=world
If you use requests:
from httpie_kong_hmac import KongHMAC import requests resp = requests.get('http://example.org', auth=KongHMAC('client-key','client-secret'), ) print(resp.status_code, resp.content)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size httpie_kong_hmac-0.0.6-py3-none-any.whl (3.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size httpie-kong-hmac-0.0.6.tar.gz (2.7 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for httpie_kong_hmac-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ad1c4a2cc931f54b06e131ebe687454e1f334c52389634ba4745f5686f8a3f |
|
MD5 | 0036b7cb3e6192a5516bf509984eb750 |
|
BLAKE2-256 | bcf6f7a406cd9181cf38083a7ba8bce267bd0c82f72c7bbdab3769cf63cfd1fe |