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.10.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

encapsia_cli-0.5.10-py3-none-any.whl (30.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: encapsia_cli-0.5.10.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-35-generic

File hashes

Hashes for encapsia_cli-0.5.10.tar.gz
Algorithm Hash digest
SHA256 63456058fee1ec4b791e30d04b3a5b9fc514b00e7cd457f10284cfc6cd3274fc
MD5 aff4a04d68555d235af69e55aad9f7bf
BLAKE2b-256 d5c6fe6c84c9ee59096091a0e406338d72b8ce792d6dd12b2e63c96319e0574e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: encapsia_cli-0.5.10-py3-none-any.whl
  • Upload date:
  • Size: 30.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-35-generic

File hashes

Hashes for encapsia_cli-0.5.10-py3-none-any.whl
Algorithm Hash digest
SHA256 715c53cf640b9036dff139ce8bfb0b142ee39837a970f431f135ed7f9a6ff6f0
MD5 bd78c438f2d5b48d1d589acd574e81f9
BLAKE2b-256 439c2d503eec3b170c76534b25d37821238ee0d6587b4efa962c627c54752e1f

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