Skip to main content

Client CLI for talking to an Encapsia system.

Project description

About

Workflows PyPI pre-commit PyPI - Python Version

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
  • Ensure git tag and package version are 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.12.tar.gz (25.8 kB view details)

Uploaded Source

Built Distribution

encapsia_cli-0.5.12-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: encapsia_cli-0.5.12.tar.gz
  • Upload date:
  • Size: 25.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-41-generic

File hashes

Hashes for encapsia_cli-0.5.12.tar.gz
Algorithm Hash digest
SHA256 bdcae603bace38700f9cd97efed16269c6427c525ba83376c4520f02cf48604b
MD5 07f9ed0108e7029c22956ec344c7a0be
BLAKE2b-256 c5d8d0f4af88ee91b0163271110aaefcd2a11b6cb226115c1b8cb685240164de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: encapsia_cli-0.5.12-py3-none-any.whl
  • Upload date:
  • Size: 30.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.6 Linux/6.8.0-41-generic

File hashes

Hashes for encapsia_cli-0.5.12-py3-none-any.whl
Algorithm Hash digest
SHA256 95c815fd7432262ffe26dfdf748a26449b036c0b130b198bd18f9ed44befa24e
MD5 92bb878d27f882c66ed0d5ca03a72577
BLAKE2b-256 dd18e51ad46c49ddd3769203dd14561451b1b884c6a7afa2ef381245d25f9887

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