Metadata-Version: 2.1
Name: httpie-kong-hmac
Version: 0.0.4
Summary: Kong Hmac plugin for HTTPie.
Home-page: https://github.com/JoveYu/httpie-kong-hmac
Author: Jove Yu
Author-email: yushijun110@126.com
License: MIT
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Intended Audience :: Developers
Classifier: Environment :: Plugins
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
Requires-Dist: httpie (>=0.9.7)

# httpie-kong-hmac

HMAC auth plugin for [HTTPie](https://httpie.org/) and [Kong](https://konghq.com/)

It currently provides support for Kong Hmac


## Installation

```bash
$ pip install httpie-kong-hmac
```

## Usage

```bash
$ http --auth-type=kong-hmac --auth='client-key:client-secret' example.org
```

You can also use [HTTPie sessions](https://httpie.org/doc#sessions):
```bash
# 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](https://github.com/kennethreitz/requests):

```python
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)
```


