Skip to main content

Agilicus SDK

Project description

Agilicus SDK (Python)

The Agilicus Platform API github is defined using OpenAPI 3.0, and may be used from any language. This allows configuration of our Zero-Trust Network Access cloud native platform using REST. You can see the API specification online.

This package provides a Python SDK, class library interfaces for use in accessing individual collections. In addition it provides a command-line-interface (CLI) for interactive use.

Read the class-library documentation online

A subset of this code (that which accesses the above API) is generated

Generally you may install this as:

pip install --upgrade agilicus

You may wish to add bash completion by adding this to your ~/.bashrc:

eval "$(_AGILICUS_CLI_COMPLETE=source agilicus-cli)"

Build

(first generate the api access, 'cd ..; ./local-build')

poetry install
poetry run pre-commit install
poetry run pytest

To run the CLI from the development venv: gene

poetry run python -m agilicus.main

To format & lint:

poetry run black .
poetry run flake8

CLI Usage

Credentials are cached in ~/.config/agilicus, per issuer.

agilicus-cli list-applications

Debugging with Codium

"python.venvPath": "~/.cache/pypoetry/virtualenvs"

Examples

The examples directory provides examples for working with the agilicus API in a python environment.

Update a user

Retrieve a specific user, update/replace properties (via PUT).

See agilicus/examples/update_user.py

python -m agilicus.examples.update_user --help

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

agilicus-1.149.0.tar.gz (1.7 MB view hashes)

Uploaded source

Built Distribution

agilicus-1.149.0-py3-none-any.whl (3.5 MB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page