Skip to main content

Client CLI for talking to an Encapsia system.

Project description

About

Known Vulnerabilities

This package provides command line access to Encapsia over the REST API.

All of these are designed to work with server 1.5 and beyond.

Autocomplete

Setup autocomplete using the instructions found on https://github.com/click-contrib/click-completion

Tests

Unit tests

Run:

poetry run pytest

Walkthrough Tests

Prerequisite: an instance of ice must be running on your localhost, and valid token for it must be present in your key store.

See the walkthrough_tests directory for bash scripts which exercise the CLI.

Run them e.g. with:

poetry run bash walkthrough_tests/all.sh

or test specific subcommands with:

poetry run bash walkthrough_tests/token.sh

Note that these tests are not self-verifying; they just provide helpful coverage, assurance, and working documentation.

Release checklist

  • Run: poetry run black .
  • Run: poetry run isort .
  • Run: poetry run flake8 .
  • Run: poetry run mypy .
  • Ensure "tests" run ok (see above).
  • Capture test output and commit with: poetry run bash walkthrough_tests/all.sh 2>&1 | poetry run ansi2html -f 80% >WALKTHROUGH.html
  • Create requirements.txt for Snyk scanning with: poetry export -f requirements.txt >requirements.txt
  • Ensure git tag, package version, and encapsia_cli.__version__ are all equal.

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

encapsia_cli-0.5.7.tar.gz (25.3 kB view details)

Uploaded Source

Built Distribution

encapsia_cli-0.5.7-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

Details for the file encapsia_cli-0.5.7.tar.gz.

File metadata

  • Download URL: encapsia_cli-0.5.7.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.5.0-14-generic

File hashes

Hashes for encapsia_cli-0.5.7.tar.gz
Algorithm Hash digest
SHA256 9af3dacbe0930861d0e979c273f375e9bb19abd0ee19f66ea55f61f4f40b7e4c
MD5 833ea65a842e9b9db98dfd8f0e7a5dfa
BLAKE2b-256 2eb516c90ac5570204b5705edcea0dc143dcecec73aff761f521add7e441bba8

See more details on using hashes here.

File details

Details for the file encapsia_cli-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: encapsia_cli-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 30.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.7 Linux/6.5.0-14-generic

File hashes

Hashes for encapsia_cli-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c7742719a21f475791a385d1a3efe69af0872e02273fb7cfa20cbaa12f88010e
MD5 ae8622aa981822f75b8a9709f1b3a11d
BLAKE2b-256 4589278581fe46c8be24654887ff292be31a9c938149f1b0e6709c6105df6c7b

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