CLI and Python client for Arena PLM (app.bom.com): login, get revisions, list/download attachments, and upload to working revisions.
Project description
gladiator-arena
CLI + Python client for interacting with the Arena PLM.
Install
pip install gladiator-arena
Quick start
1) Create login.json
Interactive:
gladiator login --subdomain acme
CI/CD friendly:
gladiator login --subdomain acme --api-key "$ARENA_API_KEY" --ci
To use your existing scripts while prototyping:
gladiator login --subdomain acme --mode bash --scripts-root /path/to/scripts
login.json is stored at ~/.config/gladiator/login.json by default.
2) Queries
Get latest approved revision for an item:
gladiator latest-approved ABC-1234
List files on an item (defaults to latest approved):
gladiator list-files ABC-1234
Download files:
gladiator get-files ABC-1234 --out downloads/
Upload a file to the working revision (will refuse if the revision is approved/released):
gladiator upload-file ABC-1234 ./datasheet.pdf --reference datasheet
Programmatic use
from gladiator import ArenaClient, load_config
client = ArenaClient(load_config())
rev = client.get_latest_approved_revision("ABC-1234")
files = client.list_files("ABC-1234", rev)
Development
python -m pip install -e .[dev]
python -m build
FAQ
- Where is the config kept?
~/.config/gladiator/login.json(override viaGLADIATOR_CONFIG). - Auth method? Prefer API key. Username/password is supported to be CI-friendly but avoid storing passwords when possible.
- Approved states? By default any state labelled
ApprovedorReleasedis treated as approved. Adjust the code if your tenant uses custom labels.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lr_gladiator-0.1.0.tar.gz.
File metadata
- Download URL: lr_gladiator-0.1.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
706b6d8639578e7da96554a09340292d6e095a6e8e12a89333e31656ce99a015
|
|
| MD5 |
445e5135ee5756df1190f249b3f1ede0
|
|
| BLAKE2b-256 |
5afad02091faec462bb44ca7b11c06e2837f9b90258be9229521efe86302e486
|
File details
Details for the file lr_gladiator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lr_gladiator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ed3fbe6821500a511c183db6823d22a4bc8483911d17bf77b26a2f85bba014c
|
|
| MD5 |
c427799cbd9e983fc97eddbfe9c915d2
|
|
| BLAKE2b-256 |
4a9fc6e26bc6dfa2e91eb63be6e05ac727ea8c03b05aba63b0265d83c5929b3f
|