httpie-plex
Plex OAuth2 Plugin for HTTPie.
Installation
$ pip install httpie-plex
You should now see plex under --auth-type in $ http --help output.
Homebrew
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 setup.py install \
--prefix=/usr/local/Cellar/httpie/0.9.8/libexec/vendor
Usage
$ http --auth-type=plex \
--auth='client_id:client_secret' \
https://apibase.com/consumers
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 setup.py 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.
Metadata
Release files for httpie-plex 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| httpie-plex-1.0.1-2.tar.gz | 9.0 kB | Without provenance | Details for httpie-plex-1.0.1-2.tar.gz |
Release files / httpie-plex-1.0.1-2.tar.gz
| Download URL | httpie-plex-1.0.1-2.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
81640824821f2af157b99c0725eb468a6128a7a15ae7991804f10f129a9d2e16
|
|
BLAKE2b-256 checksum How to use checksums |
405f744e2d8ddb4b7ec075edb0be77764bbe5d59c18423dc683fc547fd0afb3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for httpie-plex 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.