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

Uploaded Python 3

File details

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

File metadata

  • Download URL: lr_gladiator-0.4.0.tar.gz
  • Upload date:
  • Size: 11.5 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.4.0.tar.gz
Algorithm Hash digest
SHA256 960384b39772752b088dd344b417f791f9309f8b76fc0f8344df41dabf7bb98b
MD5 cac998acf521742ecd8d3d7b94fe2553
BLAKE2b-256 7cc5e3c77f03dd031570e7fe118619a30e169f0ada8874dacfb8bf308c0581ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lr_gladiator-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1c1fb3ed7b53b9513761acf9d7647e3f8996e63d17d0974c1739038e7eb2447c
MD5 5c67a30c89556a1ce598924c644b348b
BLAKE2b-256 569733b1c530268bdfe8a9a9fdfb8ff117c0961a847a7f03a72efe907c364872

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