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.2.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for httpie_astra-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba3d1aa06ff213478895c6bd967c390c06ceb228e6a592d2af9aaafacf49261b |
|
MD5 | efc5d3bd390b1a8dabe4b69ecae8a3b1 |
|
BLAKE2b-256 | 435cb6d0607ede91158518ab32cf8b9ff95bd4d9e828212d168e7201f725183d |