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.2.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.2.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lr_gladiator-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 0341e62d6680648fb9c69ebc73a99e6860a0f857874c7ea58d2d922602074fa3
MD5 2c1d65e8da43ac8b64326eabef974073
BLAKE2b-256 db1415249cbc45257196dd4f6941f59702f85e3ab1a6c8f2b289960267eadee9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lr_gladiator-0.2.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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9a08662e76195db20e1c3eb5887ed392a5c75c527605d4cd05ae5608c14897c8
MD5 39a67401859eebce3757cb389fd12105
BLAKE2b-256 13b4be748a895dabc295f253e377ca71da7897df94c152a1ff2eaea9e7b1379e

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