About Anaconda Help Download Anaconda

anaconda-cloud / packages / anaconda-cloud-curl
Standard Python conda
0.6.2

A simple private dev tool to make curl-like requests, but authenticated

  • 579 total downloads
  • Last upload: 6 days and 11 hours ago

Installers

  • noarch v0.6.2

pip install

To install this package run one of the following:
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

To install this package run one of the following:
conda install anaconda-cloud::anaconda-cloud-curl
conda install anaconda-cloud/label/dev::anaconda-cloud-curl

Description

anaconda-cloud-curl

A simple private dev tool to make curl-like requests, but authenticated.

We probably shouldn't release this publicly 🙂

Installation

conda install -c anaconda-cloud anaconda-cloud-curl

Basic usage

 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.                                                                │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

Setup for development

Ensure you have conda installed. Then run:

make setup

Run the unit tests

make test

Run the unit tests across isolated environments with tox

make tox

Running the library

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

© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.5) Legal | Privacy Policy