Metadata-Version: 2.4
Name: azul-client
Version: 9.0.24
Summary: Interact with Azul using your terminal instead of clicking in the UI a thousand times!
Home-page: https://www.asd.gov.au/
Author: Azul
Author-email: azul@asd.gov.au
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: cart
Requires-Dist: malpz
Requires-Dist: click
Requires-Dist: pendulum
Requires-Dist: rich
Requires-Dist: httpx
Requires-Dist: pydantic>2
Requires-Dist: pydantic-settings
Requires-Dist: tenacity
Requires-Dist: azul-bedrock
Requires-Dist: filelock
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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.

```yaml
[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](./docs/api.md) and [CLI](./docs/cli.md) 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.
