The Jarvice CLI by Nimbix, Inc. This consists of two components:
- Python API for programmatically accessing https://api.jarvice.com or another JARVICE API service
- jarviceclient, a command-line tool for calling the API
For more information and the full API documentation, see https://api.jarvice.com.
The easiest way to get set up:
Create ~/.jarvice.cfg with the following contents:
[auth]
username: username
apikey: apikey-from-portal
The JARVICE CLI
Installation
The easiest way to install is directly from PyPI
pip install --user jarviceclient
If the installation was successful, you should have an executable called jarvice_cli in your path after installing the jarviceclient package.
Interacting with Jobs
Launching a job
Launch a job from the portal and save the JSON to job.json. To launch it again, do the following:
jarvice_cli submit -j job.json
List a summary of your jobs
jarvice_cli summary
See the output/error of a currently running job
jarvice_cli tail -number <jobnumber>
See the output of a job that has ended
jarvice_cli output -number <jobnumber>
Get connection details (address, password)
jarvice_cli connect -number <jobnumber>
Cleanly shutdown a job (with shutdown signal)
jarvice_cli shutdown -number <jobnumber>
Force termination of a job (like kill -9)
jarvice_cli terminate -number <jobnumber>
Get the stats on your job
jarvice_cli info -number <jobnumber>
Get the status of your job
jarvice_cli status -number <jobnumber>
Perform a configured action on your job
jarvice_cli action -number <jobnumber> -action <action>
Get a list of currently running jobs
jarvice_cli jobs
Cleanly shutdown all currently running jobs
jarvice_cli shutdown_all
Force termination of a job (like kill -9)
jarvice_cli terminate_all
Wait for a job to end
jarvice_cli wait_for -number <jobnumber>
Data Management for JARVICE Storage Vault
The default is drop.jarvice.com, for the Nimbix public cloud
Upload
jarvice_cli download -drop <source> -local <destination> [-storage <vault name>]
Upload file or directory to drop.jarvice.com
jarvice_cli upload -local <source> -drop <destination>
Upload file or directory to an alternate vault
jarvice_cli upload -local <source> -drop <destination> -storage altvault.jarvice.com
List files on drop.jarvice.com
jarvice_cli ls
or
jarvice_cli ls -d <remote_dir>
List files on an alternate vault
jarvice_cli ls -d <remote_dir> -storage altvault.jarvice.com
Querying JARVICE Options
See the available apps and a schema describing inputs
jarvice_cli apps
Query available machine types
jarvice_cli machines
JarviceAPI
JarviceAPI contains a Client and AuthenticatedClient for interacting with a JARVICE API, defaulting to https://api.jarvice.com
Release files for jarviceclient 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jarviceclient-1.0.5.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jarviceclient-1.0.5-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 31.2 kB
Release files / jarviceclient-1.0.5.tar.gz
| Download URL | jarviceclient-1.0.5.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c97bfc94f9b5ac44cecd7aa7ad92cfd7de7a4497b482933978c19c1b29e94141
|
|
BLAKE2b-256 checksum How to use checksums |
3e1047d0f67d676ed636c95b2e8957d266b4a3b528cce5caf5856124fc5d694e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17
|
Release files / jarviceclient-1.0.5-py2.py3-none-any.whl
| Download URL | jarviceclient-1.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
af60498299495f2e6667905005df3a22adef7ccc43b60a1711d0feab61b03293
|
|
BLAKE2b-256 checksum How to use checksums |
1400976e31ac39e5069e9c7abd417d1ef072d1ce2196d5626292dde1cacf13da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17
|