Hammerspace CLI tool and python toolkit (hstk)
Project description
Hammerspace CLI tool and python toolkit (hstk)
Supports Hammerspace release 4.6.0 and later.
Install
Installing with pip
The easiest way to install the hs command + hstk library is with pip. You may need to use your package manager (yum/apt/etc) to install the python-pip package. Once you have the 'pip' command, decide if you want to install for all users in the system libraries or for just your account.
As your user (installs in your account only) or using sudo/root (installs in system directories):
$ pip install hstk
This will pull down the needed dependencies as well. This does not install the bash completions, see shell completions
python click dependency
There is a dependency on the click python package. It is known to work with click version 6.7 that comes from the EPEL repo for centos 7. The easiest thing to do is to grab that RPM. If you have EPEL repos enabled: $ yum install python2-click
If not, you can build your own RPM of click... This example grabs an older version of click, if you try a newer version and it doesn't work, plese file a bug at https://github.com/hammer-space/hstk
$ yum install rpm-build $ wget https://github.com/pallets/click/archive/6.7.tar.gz $ tar xzvf 6.7.tar.gz $ cd click-6.7/ $ python2 setup.py bdist_rpm $ ls -l dist/click-6.7-1.noarch.rpm -rw-r----- 1 user group 120312 Dec 18 19:59 dist/click-6.7-1.noarch.rpm
building hstk rpm
$ git clone https://github.com/hammer-space/hstk.git $ cd hstk $ python2 setup.py bdist_rpm $ ls -l dist/hstk-4.1.0.1-1.noarch.rpm -rw-r----- 1 root root 20652 Dec 18 20:01 dist/hstk-4.1.0.1-1.noarch.rpm
shell completion
The above pip and rpm install methods don't configure shell completion. The short version, for bash, to enable system wide completions, add this file $ cat /etc/bash_completion.d/hs_bash_completion eval "$(_HS_COMPLETE=source hs)"
More details on how to enable shell completion are available from the Click Project
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 Distributions
File details
Details for the file hstk-4.6.3.5.tar.gz
.
File metadata
- Download URL: hstk-4.6.3.5.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b1812d9714cf5e9278b37541becd746c515d3a8da0dbf60f48bb7ce89a29d6e |
|
MD5 | 2e9018619218b010a723eb9a8448c03a |
|
BLAKE2b-256 | b1cd291b114c2a7ab997d93b7600bd78f9049946b44642ce527209d9297bc7a4 |
File details
Details for the file hstk-4.6.3.5-py3-none-any.whl
.
File metadata
- Download URL: hstk-4.6.3.5-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf8085c093de2996456a72b284eebf6546e27a6bf0ac9ecce222de566db4935 |
|
MD5 | 3de5fd44fdf7955706619b8040330ece |
|
BLAKE2b-256 | 3a8ae791626163372c50872081b2e5481060972364d01132bc76ec01978dbebd |
File details
Details for the file hstk-4.6.3.5-py2-none-any.whl
.
File metadata
- Download URL: hstk-4.6.3.5-py2-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f4d9893dbd28064e8e25eebe8550a4796308e634c1853112b2a5b99dde05db6 |
|
MD5 | cccc0ed8eb38d033d6d23e536ed48967 |
|
BLAKE2b-256 | 6b101d70a00e29495d372c138ab914cad149bd3f431229a0a291fa659d2a1f3c |