Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hstk-4.6.0.2.tar.gz (19.4 kB view details)

Uploaded Source

Built Distributions

hstk-4.6.0.2-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

hstk-4.6.0.2-py2-none-any.whl (22.6 kB view details)

Uploaded Python 2

File details

Details for the file hstk-4.6.0.2.tar.gz.

File metadata

  • Download URL: hstk-4.6.0.2.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.0

File hashes

Hashes for hstk-4.6.0.2.tar.gz
Algorithm Hash digest
SHA256 400bcf98c51fd49c1e75c7adc3ef585e4e847ff2a820b01103988f0291165207
MD5 cb09e5ee11023fd07d05b53bfeff5f54
BLAKE2b-256 2e9229c1069c1fac04e9601cb5fc8e884618cd223afdedbf313fcac8f4d5137a

See more details on using hashes here.

File details

Details for the file hstk-4.6.0.2-py3-none-any.whl.

File metadata

  • Download URL: hstk-4.6.0.2-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.0

File hashes

Hashes for hstk-4.6.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8ac0704a79641c7a3b4f6596713cf994f3b7d51a4b6b3be509a8c1904a6003b2
MD5 f079b24236eb2b12ec5023ba6e860e04
BLAKE2b-256 ea7318cb25b2df3fd1b88b315d387b2145b7bdeb8e94ffd8ef7fc740a357c4a3

See more details on using hashes here.

File details

Details for the file hstk-4.6.0.2-py2-none-any.whl.

File metadata

  • Download URL: hstk-4.6.0.2-py2-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.0

File hashes

Hashes for hstk-4.6.0.2-py2-none-any.whl
Algorithm Hash digest
SHA256 24477358704f6f7016d871b3a83d63bcea87005d3e86e0460ea2458feadd3e0d
MD5 7c2ffee17cdaced23fb3eb8110c2dd26
BLAKE2b-256 3412e8d9d45b1d30cdcc059f0410c94866c5d7a044d6dff44d9c01d1d6c6d1f9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page