Skip to main content

Auth plugin for HTTPie for MediaMath's Plex.

Project description

Plex OAuth2 Plugin for HTTPie.


$ pip install httpie-plex

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


If you’ve installed HTTPie using Homebrew, but it’s pointing to your system Python, there may be other hoops to jump through. Note that this doesn’t apply if you’ve also installed Python via Homebrew: essentially, if pip list lists httpie, you’re good to go with the method above. Otherwise, you’ll need to manually install it into the proper directory. First, clone the repository. You’ll then need to figure out which version of HTTPie you have installed. Then do something like:

$ PYTHONPATH="/usr/local/Cellar/httpie/0.9.8/libexec/lib/python2.7/site-packages:/usr/local/Cellar/httpie/0.9.8/libexec/vendor/lib/python2.7/site-packages" \
    python install \


$ http --auth-type=plex \
    --auth='client_id:client_secret' \

Token Storage

To cache the OAuth2 token, this package uses a folder plex inside the HTTPie config directory. This defaults to, on *nix machines, ~/.httpie/plex. You can set a different base directory by setting the HTTPIE_CONFIG_DIR environment variable.

Testing and Contributing

Tests are run with

$ python test

Contributions are welcome! For new features, tests are a requirement and should have good coverage. For bug fixes/improvements, tests must pass. Further, code must be style-checked with pycodestyle.

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
httpie-plex-1.0.1-2.tar.gz (9.0 kB) Copy SHA256 hash SHA256 Source None Jan 31, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page