CLI for the Nessy Locking system
Project description
Simple command line interface to the Nessy locking system.
Installation
It is simplest to install via PyPI using:
pip install nessy-cli
Usage
For convenience, you should set the nessy server claims URL in your environment:
export NESSY_CLAIMS_URL=http://nessy.example.com/v1/claims
If NESSY_CLAIMS_URL or GENOME_NESSY_SERVER are set in your environment, then those will be used; otherwise, you will need to specify the URL on the command line with the –url option.
To list active claims:
nessy list --status active
To revoke claims matching a filter:
nessy revoke --status active --min-active-duration 100000
To avoid a race condition while trying to revoke a specific claim on a resource, you should add a filter on the active duration:
nessy revoke --status active --min-active-duration 100000 --resource <RESOURCE>
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
nessy-cli-0.8.1.tar.gz
(16.0 kB
view details)
File details
Details for the file nessy-cli-0.8.1.tar.gz
.
File metadata
- Download URL: nessy-cli-0.8.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cedcf3a7604525a20cb2e19fc5ad850b2ca43267c9b12a31e29d5b88821f43e7 |
|
MD5 | ffd522ee10412150db37742e0aa57821 |
|
BLAKE2b-256 | 1fd40e184aa516425255e94f9350e3606b38adef39e4e3d96d46e0e749980840 |