A CLI to run common singularity tasks.
Project description
Singularity Technologies CLI
This CLI is desinged to help Engineers engage with our API and platform much more easily.
The CLI handles HMAC signature generation and sets all necessary headers autonomously.
Its highly recomended that you use the CLI rather than cURL commands.
The CLI has been tested on Ubuntu. If you require support or bug fixes for OSX or Windows operating systems please open an issue!
Pull Requests are always welcome!
Installation
The CLI can easily be installed using pip:
pip3 install singularitytechnologies.singularity-cli
We only officially support usage with Python3.5+
Config file
The CLI will look for a config json file in the location:
$HOME/.singularity/config.json
Which should contain the following:
{
"api_key": <key>,
"secret": <secret>
}
If you'd like to store your config elsewhere, simply set the environment variable:
SINGULARITY_CONFIG_PATH=<path>
Usage
A full list of commands can be seen by simply using the following command:
singularity-cli
You can test your connection to the API by using our PING command:
singularity-cli ping
A successful connection should return the response pong
See this blog post for a short demonstration on how to use the various features of the CLI.
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
Built Distribution
Hashes for singularitytechnologies.singularity-cli-0.2.5.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b26c37375dc015a65d43edd6659c1a592e94dd341ae7ffaf0058b0184a85b2 |
|
MD5 | 8c203113c53abd4f81bf06c03525b52f |
|
BLAKE2b-256 | 522b5ab852deec10b68b6316ea933a71c330ee1f16710902eb62dc3c0fd8dddc |
Hashes for singularitytechnologies.singularity_cli-0.2.5.dev0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb49086b906c04bf1c8f3ce43dcee5250f74dec1a7a76a904f21a0b0ebe67a73 |
|
MD5 | 9cec759fca31861bc08c1ead77821eb1 |
|
BLAKE2b-256 | ea76d69a8ecaf1e8f313d5244fd4e451484ea11d03017b9a60df8e4d264cafe7 |