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.1.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for httpie_astra-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d28502a59770df36347d8d00c2a32d1819bb285ada7380813129fb4f396e88b9 |
|
MD5 | 7962cb1522f1d7cc57eda97432c3fe6f |
|
BLAKE2b-256 | ced91f820ca8a684e17aca928b3cbc86a938882430913fcd74e3f7cdf6bf7ba2 |