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.5.0.tar.gz (12.1 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.5.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lr_gladiator-0.5.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

Hashes for lr_gladiator-0.5.0.tar.gz
Algorithm Hash digest
SHA256 aba89289d7bc886df142e5ae6c1bcbe61200b4008e168636ad00b6c5216ac4ad
MD5 c619718739500efef5ddf1fd5a36ac20
BLAKE2b-256 8b3805a465989f915ab4a44323a2eeec0326d3f5267814a7483bc20bc98a7333

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lr_gladiator-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.7 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7d1c8d973fbd6097932ae9de74157b5348c3d6cb8a764f4dde40d866a98a3908
MD5 180bd8e4b75da2f2a934880c4da66192
BLAKE2b-256 6f10b18c6e676f07881eb9d102824de4c2a6e5a8b0a05c3dec199545c76871ce

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