Viper is a handy tool for easily running infrastructure management tasks and commands.
Project description
Viper Infrastructure Commander
Viper is a handy tool for easily running infrastructure management tasks and commands.
Installation
pip install -U viper-infra-commander
Documentations
Getting Started Guide: https://viper-infrastructure-commander.readthedocs.io/en/latest/viper.demo.html#viper-cli-examples
Viperfile Examples and Use Cases: https://viper-infrastructure-commander.readthedocs.io/en/latest/viper.html#viper-project-apis-the-viperfile-py
Viper CLI Reference
usage: viper [-h] [--version] [--debug]
{init,run-job,run,task:from-func,task,task:results,task:format,hosts:from-file,hosts:from-func,hosts,hosts:filter,hosts:count,hosts:sort,hosts:pipe,hosts:format,hosts:where,hosts:task,hosts:run-task,hosts:results,runners:filter,runners:count,runners:sort,runners:pipe,runners:format,runners:where,runners:run,runners:hosts,results:from-history,results,results:filter,results:count,results:sort,results:pipe,results:format,results:where,results:hosts,results:by-task}
...
Viper CLI v0.18.0
positional arguments:
{init,run-job,run,task:from-func,task,task:results,task:format,hosts:from-file,hosts:from-func,hosts,hosts:filter,hosts:count,hosts:sort,hosts:pipe,hosts:format,hosts:where,hosts:task,hosts:run-task,hosts:results,runners:filter,runners:count,runners:sort,runners:pipe,runners:format,runners:where,runners:run,runners:hosts,results:from-history,results,results:filter,results:count,results:sort,results:pipe,results:format,results:where,results:hosts,results:by-task}
init initialize the current workspace
run-job [? -> ?] run a custom defined job
run alias of 'run-job'
task:from-func [-> Task] get the task from a Python function location
task alias of 'task:from-func'
task:results [Task -> Results] get the past results of given task
task:format [Task -> str] format the data using the given template
hosts:from-file [-> Hosts] get a group of hosts from a file
hosts:from-func [-> Hosts] get a group of hosts from a Python function
location
hosts alias of 'hosts:from-func'
hosts:filter [Hosts -> Hosts] filter hosts by a given function
hosts:count [Hosts -> int] count the number of hosts
hosts:sort [Hosts -> Hosts] sort the hosts
hosts:pipe [Hosts -> ?] pipe the hosts to the given handler
hosts:format [Hosts -> str] format the data using the given
template
hosts:where [Hosts -> Hosts] select hosts matching the given query
hosts:task [Hosts -> Runners] assign a task to each host
hosts:run-task [Hosts -> Results] assign a task to each host and run
hosts:results [Hosts -> Results] get the past results of the hosts
runners:filter [Runners -> Runners] filter runners by a given
function
runners:count [Runners -> int] count the number of runners
runners:sort [Runners -> Runners] sort the runners
runners:pipe [Runners -> ?] pipe the runners to the given handler
runners:format [Runners -> str] format the data using the given
template
runners:where [Runners -> Runners] select runners matching the given
query
runners:run [Runners -> Results] run the assigned tasks
runners:hosts [Runners -> Hosts] get the hosts from the runners
results:from-history
[-> Results] get the past results from database
results alias of 'results:from-history'
results:filter [Results -> Results] filter results by a given handler
results:count [Results -> int] count the number of results
results:sort [Results -> Results] sort the results
results:pipe [Results -> ?] pipe the results to the given handler
results:format [Results -> str] format the data using the given
template
results:where [Results -> Results] select results matching the given
query
results:hosts [Results -> Hosts] get the hosts from the results
results:by-task [Task -> Results] get the past results of given task
optional arguments:
-h, --help show this help message and exit
--version show program's version number and exit
--debug show traceback information when an exception is raised
Contributing to Viper
See the contribution guidelines.
NOTE: This file is generated by running "make readme"
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
File details
Details for the file viper-infra-commander-0.18.0.tar.gz
.
File metadata
- Download URL: viper-infra-commander-0.18.0.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98670d60b5b1d2e1cba1d906f772b9ead4c90c6cb9e468243d9171f10014985 |
|
MD5 | cef5f4cd0c5c1bd3294d4aad490ab275 |
|
BLAKE2b-256 | 24d0e2a6f91feced8a3113660cedddc0fdf154bfd82b1722f156e2ec57500a27 |
File details
Details for the file viper_infra_commander-0.18.0-py3-none-any.whl
.
File metadata
- Download URL: viper_infra_commander-0.18.0-py3-none-any.whl
- Upload date:
- Size: 28.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0efdf6c581c6010162f0b0bf98ccfe1f8a623f7201d0eefef1cdd77bf138248d |
|
MD5 | 2ce8fa92528e628f66d9243f489855f8 |
|
BLAKE2b-256 | 7f4201af1c1b71b31c3ad24dbcec859ec4be10b3ea76ec38a3ed4dcfd3130041 |