Invariant: manage ACLs in an entirely new way
Project description
Invariant CLI and Python SDK
Installation
The Invariant client is available as a Python package. You can install it through pip or pipx like so:
pip install invariant-client
# Or using pipx
pipx install invariant-client
The Invariant CLI can be used to run Invariant from your test automation workflow. This example shows one way to install it for Github Actions:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: python -m pip install --upgrade pip invariant-client
- name: Evaluate current directory using Invariant
run: |
python -m invariant-client run
Usage: Command Line Interface
The Invariant CLI can analyize local changes to network configuration files.
$ invariant login
Open this link in your browser to log in:
https://invariant.tech/login?code=320664
Login successful.
$ invariant run
Uploading snapshot...
Processing... (51643c3e-9a08-47b9-968e-1d2d7e2ca42e)
Analysis complete.
+---------------+----------+
| File | RowCount |
+---------------+----------+
| exposed_ports | 15 |
+---------------+----------+
$ invariant show exposed_ports --json
# JSON report here
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
invariant_client-1.1.2.tar.gz
(47.3 kB
view hashes)
Built Distribution
Close
Hashes for invariant_client-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 711edf02d2628fa54851ba345e2d51e54d6154e551c75cdf7c7a42f702903712 |
|
MD5 | 940da710e934c9db3543d7784169e1fa |
|
BLAKE2b-256 | abee1d356c731f22e6e46670cdff83dbc7553fc51ab1737013c0d0e9d6e59f21 |