Skip to main content

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 lr-gladiator

Quick start

1) Create login.json

Interactive:

gladiator login

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

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 via GLADIATOR_CONFIG).

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

lr_gladiator-0.7.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

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

lr_gladiator-0.7.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file lr_gladiator-0.7.0.tar.gz.

File metadata

  • Download URL: lr_gladiator-0.7.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for lr_gladiator-0.7.0.tar.gz
Algorithm Hash digest
SHA256 fed07a06f8e298c881507d577deb2533d528a08727ca6175f8c3ad17c2ab111f
MD5 bba49344eafd3aaacfa6a33f75f40616
BLAKE2b-256 b3fadb1e23b6995c72ad45d4b0cfc19c0b78c68abc433b2a78207cfc876e2e39

See more details on using hashes here.

File details

Details for the file lr_gladiator-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: lr_gladiator-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for lr_gladiator-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45873e49c1b492fc193dfedc4ee121567c2650607151fbeee553a3ce5b5d95dd
MD5 cd087071b1c418e3d36c5c6d10678c85
BLAKE2b-256 0a4dbd98f6492a7682c141bdb8d889701c626687ba1c51b0ea877783aad464a2

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