Upvest CLI: CLI for using the Upvest CLI
Project description
Use the Upvest API from the command line!
Installation
To install the Upvest CLI, clone this repository and then using python >= 3.7, run:
pip install .
or alternatively without cloning:
pip install git+ssh://git@github.com/toknapp/upvest-cli
Basic usage
There are three ‘layers’ of the upvest CLI commands.
upvest
the starting point for commands to configure which endpoint to talk toapp
oruser
to decide between using the application (tenant) API or the user (clientele) API and include the necessary credentialscommands : such as ‘createuser’ or ‘listassets’ or ‘createwallet’
For example:
Create a user:
upvest -e https://api.playground.upvest.co/ app -K keyid -S keysecret -P keypassphrase createuser username password
Configuration file
A configuration file will help to fill in most command line arguments, thus avoiding having to repeat several credentials and ensuring secrets and passwords do not linger in your bash history.
--help
on each subcommand will show which environment variables to set in place
of commandline arguments, however a configuration file can also be used.
This will be loaded by default from upvest.yaml
or .upvest.yaml
however
this can be configured using the --configfile
or -c
flag to pass in the path
to the configuration file.
The configuration file should take the following form:
endpoints: my_playground_name: base_url: https://api.playground.upvest.co/ api_key: ... api_key_secret: ... api_key_passphrase: ... oauth_client_id: ... oauth_client_secret: ...
This can then be referenced from the command line to switch between environments or applications as you define them:
upvest -e my_playground_name user -l username -w password listwallets
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 Distributions
Built Distribution
File details
Details for the file upvest_cli-0.1.dev0-py3-none-any.whl
.
File metadata
- Download URL: upvest_cli-0.1.dev0-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62fd6d4cf120fb237b9180b064f3003395447339611e84575aa519713e5ae894 |
|
MD5 | 1da451ec8388b9238b102c506b587eab |
|
BLAKE2b-256 | fb56e0ae7f92c6507de6e082a5a168a402a6f22569e18589503190382fc40d64 |