Skip to main content

laam

The laam (LAA Manager) is a python application that allows to interact with the LAA REST API via console or in python scripts.

Requirements

You must be connected to the same network as the LAA and able to see its local webserver

Optionally you can install uv which manages dependencies automatically. laam has been created with uv, the dependencies are listed in pyproject.toml

Installation

You can install laam via PyPI, just open a console and run:

pip install laam

You can install laam also via GitLab if you want to use the latest "dev version".

git clone git@gitlab.com:Linaro/lava/appliance/laam.git
cd laam
pip install -e .

You can run laam from source. In this case, you'll have to adapt all your laam commands in this way:

cd <path>/laam
uv run laam --version

Remember to also adapt all the files path appropriately.

Quick Tests

You can quickly test laam by opening a random bash and checking the version.

laam --version

You can test a simple interaction between laam and the LAA with the files command.

laam -i <laa-XXX> files list

If the LAA is new the working folder is empty and you'll get no elements back. But the request should succeed without any errors.

In order to work check the Requirements

To run the full test suite against the built-in mock appliance:

uv run --dev -- pytest tests

The mock server listens on port 8080 by default. Override it with LAAM_MOCK_PORT:

LAAM_MOCK_PORT=8181 uv run --dev -- pytest tests

Configuration

You'll have to create an LAA identity for laam

Documentation

In out documentation webpage you can find:

Contributing

Contributions, bug reports and feature requests are welcome! Please see the issues or open a merge request.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

laam-0.11.0.tar.gz (218.8 kB view details)

Uploaded Source

Built Distribution

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

laam-0.11.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file laam-0.11.0.tar.gz.

File metadata

  • Download URL: laam-0.11.0.tar.gz
  • Upload date:
  • Size: 218.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for laam-0.11.0.tar.gz
Algorithm Hash digest
SHA256 27b3626006c1db018425312302aafd7a49bc0e412351798c7b8efa1829ff6c31
MD5 10c361d047c881f062527ac282275c21
BLAKE2b-256 5844e966826c436a1df7d4b56b5d6754a0b299cf9c2a53f91f0491f73beaba4b

See more details on using hashes here.

File details

Details for the file laam-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: laam-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.34.2

File hashes

Hashes for laam-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7107ac09ef9e15839956fda7caa47d40bdc223408c562d31f04d212c127fdfee
MD5 3b4fa817e4cacae8c79a7f602f910b74
BLAKE2b-256 637636f35711c110ec4e4618b72a61448dd5511a9853393c9b473f38b25fcedd

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