sbclient - CLI Splunkbase client
Project description
sbclient - CLI Splunkbase client
sbclient is a command-line client for interacting with the officially unofficial Splunkbase API.
Installation
sbclient can be installed using pip3:
pip3 install sbclient
Or, if you're feeling adventurous, can be installed directly from github:
pip3 install git+https://github.com/HurricaneLabs/sbclient.git
Usage
Usage: sbclient [OPTIONS] COMMAND [ARGS]...
Options:
-U, --username TEXT [required]
-P, --password TEXT
--help Show this message and exit.
Commands:
check-app-for-update
download-app
get-latest-version
sbclient is broken into several smaller commands. Credentials for Splunkbase can be passed as parameters, or can be set as environment variables
export SPLUNKBASE_USERNAME="doug.merritt"
export SPLUNKBASE_PASSWORD="spLunk1sc00l"
check-app-for-update
check-app-for-update
will parse an app directory for details, and check for updates on
Splunkbase for that app. It will also output the current version of the app, and details of the
update if one is available.
Usage: sbclient check-app-for-update [OPTIONS] APP_DIR
Options:
--splunk-version TEXT Restrict to app versions compatible with a given
Splunk version
--help Show this message and exit.
download-app
download-app
will download an app from Splunkbase, either a specific version or the latest
available.
Usage: sbclient download-app [OPTIONS] APP_NAME
Options:
--output-path TEXT Path and filename location to save the app
--version TEXT Version of app to download, default is latest
--help Show this message and exit.
get-latest-version
get-latest-version
will check Splunkbase and output information on the latest version of an app
available. Optionally, you can restrict the latest version to the latest version compatible with a
specific Splunk version.
Usage: sbclient get-latest-version [OPTIONS] APP_NAME
Options:
--splunk-version TEXT Restrict to app versions compatible with a given
Splunk version
--help Show this message and exit.
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
File details
Details for the file sbclient-1.0.1.tar.gz
.
File metadata
- Download URL: sbclient-1.0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04a4aa6db5f1df54ab9d84647389a2bb41e8021de8903d35dfd0a72a49d08fe0 |
|
MD5 | 54053ab66bccc4c2a7be150d2d8ca923 |
|
BLAKE2b-256 | 3a9d4c581e67f522320e51ba9f50a6ac8e37cfad6d1094a5f7da5b3e622f01b3 |