Skip to main content

Interact with Azul using your terminal instead of clicking in the UI a thousand times!

Project description

Azul Client

Azul client is a near complete client for Azul's RestAPI.

Interact with Azul using your terminal instead of clicking in the UI a thousand times!

Tested on ubuntu 22.04.

Install

pip install azul-client

Setup

Azul Client requires a config file located at ~/.azul.ini

A default config will be generated on first run.

You will need to adjust the config options as appropriate.

[default]
azul_url = http://localhost
oidc_url = http://keycloak/.well-known/openid-configuration
auth_type = callback
auth_scopes =
auth_client_id = azul-web
auth_client_secret =
azul_verify_ssl = True
auth_token = {}
auth_token_time = 0
max_timeout = 300.0
oidc_timeout = 10.0

Root CA

If you have extra Root CAs, you will need to make httpx aware of them or it will complain.

Ubuntu - export SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt

Red Hat - export SSL_CERT_FILE=/etc/ssl/certs/ca-bundle.crt

Alternatively you can point to a certificate directory

export SSL_CERT_DIR=/etc/ssl/certs

This can be added to your ~/.bashrc to prevent you from having to do it for every terminal session.

Usage

For usage guidance refer to the API and CLI documentation.

Integration test suite

The integration test suite is in the tests/integration folder.

The setUpModule method in the file tests/integration/__init__.py creates all files in azul that need to be available for querying and uploading child/dataless. It also waits for those uploaded files to be available in Azul which means during tests you can assume those files exist.

It also exports the sha256's of the files it uploaded to ensure the tests can import those sha256's for their testing.

NOTE - the first time you run the test suite particularly if you've added new files to the module it may be slow. But all subsequent runs will be much faster.

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

azul_client-9.0.23.tar.gz (64.7 kB view details)

Uploaded Source

Built Distribution

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

azul_client-9.0.23-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file azul_client-9.0.23.tar.gz.

File metadata

  • Download URL: azul_client-9.0.23.tar.gz
  • Upload date:
  • Size: 64.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for azul_client-9.0.23.tar.gz
Algorithm Hash digest
SHA256 6a9dd8632b7f0014945e538245bfb1df75bff036ce632db93d9ebc73dd263afd
MD5 c0b4e0ec2d9f94b4a3625b3742494c1a
BLAKE2b-256 4247f9260483367d277fbff5f99f3ed0f94dab4355db007c96975fdfe9b8a012

See more details on using hashes here.

File details

Details for the file azul_client-9.0.23-py3-none-any.whl.

File metadata

  • Download URL: azul_client-9.0.23-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for azul_client-9.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 608e38c4f507595448f6975714d5326714827b0d0dea1e3d1f1f86ace5bd4037
MD5 3dafd7aa90daf8fa40618d63cc99efd6
BLAKE2b-256 f78a31f06e4a68363ad710bc17dff3e7b5ae641b4bcb4a4ba92363aeacf79fcd

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