A simple private dev tool to make curl-like requests, but authenticated
pip install -i https://pypi.anaconda.org/anaconda-cloud/simple anaconda-cloud-curl
pip install -i https://pypi.anaconda.org/anaconda-cloud/label/dev/simple anaconda-cloud-curl
conda install anaconda-cloud::anaconda-cloud-curl
conda install anaconda-cloud/label/dev::anaconda-cloud-curl
A simple private dev tool to make curl-like requests, but authenticated.
We probably shouldn't release this publicly 🙂
conda install -c anaconda-cloud anaconda-cloud-curl
❯ anaconda curl
Usage: anaconda curl [OPTIONS] URL
A simple curl-like mimic for making authenticated requests to Anaconda.cloud
╭─ Arguments ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * url TEXT [default: None] [required] │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --method -X TEXT The request method [default: GET] │
│ --data -d TEXT Additional JSON string to pass in request payload [default: None] │
│ --quiet -q Quiet stderr output │
│ --redirect --no-redirect Enable HTTP redirects [default: redirect] │
│ --anonymous --no-anonymous Disable authentication [default: no-anonymous] │
│ --domain TEXT API Domain [default: None] │
│ --auth-domain TEXT Auth Domain if different from API Domain [default: None] │
│ --client-id TEXT Authorization client id [default: None] │
│ --stream --no-stream Stream response to stdout [default: no-stream] │
│ --use-browser-token --no-use-browser-token Force usage of a browser JWT (will require browser login) [default: no-use-browser-token] │
│ --headers -H TEXT Additional request headers [default: None] │
│ --response-headers --no-response-headers Print response headers [default: no-response-headers] │
│ --ssl-verify --no-ssl-verify Enable SSL Verification [default: ssl-verify] │
│ --help Show this message and exit. │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Ensure you have conda
installed.
Then run:
make setup
make test
make tox
You just need to be in the ./env
conda environment, and then the cloud library is pip install (in editable mode) so your changes are reflected.
For example:
conda run -p ./env anaconda curl --method GET /api/account