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.166.0.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agilicus-1.166.0-py3-none-any.whl (3.7 MB view details)

Uploaded Python 3

File details

Details for the file agilicus-1.166.0.tar.gz.

File metadata

  • Download URL: agilicus-1.166.0.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.7.13 Linux/5.15.0-40-generic

File hashes

Hashes for agilicus-1.166.0.tar.gz
Algorithm Hash digest
SHA256 683ec868b1fdc133bc1364a0a6bff5a0357066c1099d39e9560a4bc4609f16b0
MD5 34638003237d844da3572f69c4bd814f
BLAKE2b-256 25a85a8700a62cef387b52097f9116f9fd77e58e95fab330ba60ea0fef94f513

See more details on using hashes here.

File details

Details for the file agilicus-1.166.0-py3-none-any.whl.

File metadata

  • Download URL: agilicus-1.166.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.7.13 Linux/5.15.0-40-generic

File hashes

Hashes for agilicus-1.166.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ab99024f9ad8894e1804895b87447e58ad64ae47d528c4315cc15cf15bbc2c4b
MD5 c7e17c99a93e3d482c161c4dd643bc27
BLAKE2b-256 dce462455b320c238b6a69d5525933650bb6cee3d279f12b72b5d6d9d3e67bf6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page