Metadata-Version: 2.0
Name: httpie-media-auth
Version: 0.0.8
Summary: BCE/Media auth plugin for HTTPie.
Home-page: https://github.com/semicarryispig/bce-multimedia-tool
Author: liumin
Author-email: liumin08@baidu.com
License: BSD
Download-URL: https://github.com/semicarryispig/bce-multimedia-tool
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Environment :: Plugins
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Utilities
Requires-Dist: httpie (>=0.9.7)

httpie-media-auth

Bce Multimedia auth plugin for HTTPie.

Installation

$ pip install --upgrade httpie-media-auth

Usage

Credentials on the CLI

The syntax and behavior is the same as with the basic auth.

Specify both access key ID and secret

http --auth-type media -a ACCESSKEYXXX:SECRETKEYXXX http://localhost:80/test
Specify only the key

There'll be a password prompt:

$ http -A media -a ACCESSKEYXXX http://localhost:80/test
http: password for ACCESSKEYXXX@localhost: <enter secret key>
Auth via the Media_* environment variables

