Astra plugin for HTTPie.
Project description
Astra plugin for HTTPie.
Installation
To install from sources:
$ python setup.py install
If using python 3 on Mac, replace python with python3:
$ python3 setup.py install
Usage
The Astra plugin relies on a .astrarc credentials file that will be created in your home directory and organized by [section] following the format below. Each [section] can contain a different credentials set allowing you to store all of your credentials in a single file.
[default]
ASTRA_DB_REGION = *******
ASTRA_DB_ID = *********************
ASTRA_DB_USERNAME = *********
ASTRA_DB_PASSWORD = *********
ASTRA_DB_KEYBASE = tutorial
ASTRA_DB_TOKEN = xxxx
ASTRA_DB_TOKEN_TIME = X
[section1]
ASTRA_DB_REGION = *******
ASTRA_DB_ID = *********************
ASTRA_DB_USERNAME = *********
ASTRA_DB_PASSWORD = *********
ASTRA_DB_KEYBASE = tutorial
ASTRA_DB_TOKEN = xxxx
ASTRA_DB_TOKEN_TIME = X
Once you have the credentials set up, here is an example of what an Astra Call call would look like:
% http --auth-type astra -a default: :/v2/schemas/keyspaces
When you run the command, if your authentication token has expired it will refresh it for you.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
httpie-astra-0.0.3.tar.gz
(7.4 kB
view hashes)
Built Distributions
httpie_astra-0.0.3-py3.8.egg
(3.4 kB
view hashes)
Close
Hashes for httpie_astra-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41599730f790939a01fda823dc56d197869fbc360f2437974fd8c7432f8a8f23 |
|
MD5 | eb830d773ab3865c2e8f03d8954b968a |
|
BLAKE2b-256 | 409c486685b36abbb4cf2ee90ff23f79a14e235e3effd8b2e15630087ec70339 |