lr-gladiator 0.1.0__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {lr_gladiator-0.1.0/src/lr_gladiator.egg-info → lr_gladiator-0.3.0}/PKG-INFO +4 -18
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/README.md +3 -17
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/pyproject.toml +1 -1
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/gladiator/arena.py +2 -1
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/gladiator/cli.py +0 -1
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0/src/lr_gladiator.egg-info}/PKG-INFO +4 -18
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/LICENSE +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/setup.cfg +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/gladiator/__init__.py +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/gladiator/config.py +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/lr_gladiator.egg-info/SOURCES.txt +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/lr_gladiator.egg-info/dependency_links.txt +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/lr_gladiator.egg-info/entry_points.txt +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/lr_gladiator.egg-info/requires.txt +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/src/lr_gladiator.egg-info/top_level.txt +0 -0
- {lr_gladiator-0.1.0 → lr_gladiator-0.3.0}/tests/test_smoke.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lr-gladiator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: CLI and Python client for Arena PLM (app.bom.com): login, get revisions, list/download attachments, and upload to working revisions.
|
|
5
5
|
Author-email: Jonas Estberger <jonas.estberger@lumenradio.com>
|
|
6
6
|
License: MIT
|
|
@@ -28,7 +28,7 @@ CLI + Python client for interacting with the Arena PLM.
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
pip install gladiator
|
|
31
|
+
pip install lr-gladiator
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Quick start
|
|
@@ -38,19 +38,7 @@ pip install gladiator-arena
|
|
|
38
38
|
Interactive:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
gladiator login
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
CI/CD friendly:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
gladiator login --subdomain acme --api-key "$ARENA_API_KEY" --ci
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
To use your existing scripts while prototyping:
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
gladiator login --subdomain acme --mode bash --scripts-root /path/to/scripts
|
|
41
|
+
gladiator login
|
|
54
42
|
```
|
|
55
43
|
|
|
56
44
|
`login.json` is stored at `~/.config/gladiator/login.json` by default.
|
|
@@ -75,7 +63,7 @@ Download files:
|
|
|
75
63
|
gladiator get-files ABC-1234 --out downloads/
|
|
76
64
|
```
|
|
77
65
|
|
|
78
|
-
Upload a file to the working revision
|
|
66
|
+
Upload a file to the working revision
|
|
79
67
|
|
|
80
68
|
```bash
|
|
81
69
|
gladiator upload-file ABC-1234 ./datasheet.pdf --reference datasheet
|
|
@@ -100,5 +88,3 @@ python -m build
|
|
|
100
88
|
## FAQ
|
|
101
89
|
|
|
102
90
|
- **Where is the config kept?** `~/.config/gladiator/login.json` (override via `GLADIATOR_CONFIG`).
|
|
103
|
-
- **Auth method?** Prefer API key. Username/password is supported to be CI-friendly but avoid storing passwords when possible.
|
|
104
|
-
- **Approved states?** By default any state labelled `Approved` or `Released` is treated as approved. Adjust the code if your tenant uses custom labels.
|
|
@@ -5,7 +5,7 @@ CLI + Python client for interacting with the Arena PLM.
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pip install gladiator
|
|
8
|
+
pip install lr-gladiator
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick start
|
|
@@ -15,19 +15,7 @@ pip install gladiator-arena
|
|
|
15
15
|
Interactive:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
gladiator login
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
CI/CD friendly:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
gladiator login --subdomain acme --api-key "$ARENA_API_KEY" --ci
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
To use your existing scripts while prototyping:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
gladiator login --subdomain acme --mode bash --scripts-root /path/to/scripts
|
|
18
|
+
gladiator login
|
|
31
19
|
```
|
|
32
20
|
|
|
33
21
|
`login.json` is stored at `~/.config/gladiator/login.json` by default.
|
|
@@ -52,7 +40,7 @@ Download files:
|
|
|
52
40
|
gladiator get-files ABC-1234 --out downloads/
|
|
53
41
|
```
|
|
54
42
|
|
|
55
|
-
Upload a file to the working revision
|
|
43
|
+
Upload a file to the working revision
|
|
56
44
|
|
|
57
45
|
```bash
|
|
58
46
|
gladiator upload-file ABC-1234 ./datasheet.pdf --reference datasheet
|
|
@@ -77,5 +65,3 @@ python -m build
|
|
|
77
65
|
## FAQ
|
|
78
66
|
|
|
79
67
|
- **Where is the config kept?** `~/.config/gladiator/login.json` (override via `GLADIATOR_CONFIG`).
|
|
80
|
-
- **Auth method?** Prefer API key. Username/password is supported to be CI-friendly but avoid storing passwords when possible.
|
|
81
|
-
- **Approved states?** By default any state labelled `Approved` or `Released` is treated as approved. Adjust the code if your tenant uses custom labels.
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "lr-gladiator"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.3.0"
|
|
8
8
|
description = "CLI and Python client for Arena PLM (app.bom.com): login, get revisions, list/download attachments, and upload to working revisions."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -413,7 +413,8 @@ class ArenaClient:
|
|
|
413
413
|
return data
|
|
414
414
|
|
|
415
415
|
# Else: create a new association on WORKING
|
|
416
|
-
# 2) Resolve file category guid by name (default: CAD Data)
|
|
416
|
+
# 2) Resolve file category guid by name (default: CAD Data)
|
|
417
|
+
cats_url = f"{self._api_base()}/settings/files/categories"
|
|
417
418
|
self._log(f"GET {cats_url}")
|
|
418
419
|
r = self.session.get(cats_url)
|
|
419
420
|
r.raise_for_status()
|
|
@@ -118,7 +118,6 @@ def get_files(
|
|
|
118
118
|
item: str = typer.Argument(..., help="Item/article number"),
|
|
119
119
|
revision: Optional[str] = typer.Option(None, "--rev", help="Revision (default: latest approved)"),
|
|
120
120
|
out: Path = typer.Option(Path("downloads"), "--out", help="Output directory"),
|
|
121
|
-
format: Optional[str] = typer.Option(None, "--format", "-f", help="Output format: human (default) or json"),
|
|
122
121
|
):
|
|
123
122
|
try:
|
|
124
123
|
paths = _client().download_files(item, revision, out_dir=out)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lr-gladiator
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.3.0
|
|
4
4
|
Summary: CLI and Python client for Arena PLM (app.bom.com): login, get revisions, list/download attachments, and upload to working revisions.
|
|
5
5
|
Author-email: Jonas Estberger <jonas.estberger@lumenradio.com>
|
|
6
6
|
License: MIT
|
|
@@ -28,7 +28,7 @@ CLI + Python client for interacting with the Arena PLM.
|
|
|
28
28
|
## Install
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
|
-
pip install gladiator
|
|
31
|
+
pip install lr-gladiator
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
## Quick start
|
|
@@ -38,19 +38,7 @@ pip install gladiator-arena
|
|
|
38
38
|
Interactive:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
gladiator login
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
CI/CD friendly:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
gladiator login --subdomain acme --api-key "$ARENA_API_KEY" --ci
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
To use your existing scripts while prototyping:
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
gladiator login --subdomain acme --mode bash --scripts-root /path/to/scripts
|
|
41
|
+
gladiator login
|
|
54
42
|
```
|
|
55
43
|
|
|
56
44
|
`login.json` is stored at `~/.config/gladiator/login.json` by default.
|
|
@@ -75,7 +63,7 @@ Download files:
|
|
|
75
63
|
gladiator get-files ABC-1234 --out downloads/
|
|
76
64
|
```
|
|
77
65
|
|
|
78
|
-
Upload a file to the working revision
|
|
66
|
+
Upload a file to the working revision
|
|
79
67
|
|
|
80
68
|
```bash
|
|
81
69
|
gladiator upload-file ABC-1234 ./datasheet.pdf --reference datasheet
|
|
@@ -100,5 +88,3 @@ python -m build
|
|
|
100
88
|
## FAQ
|
|
101
89
|
|
|
102
90
|
- **Where is the config kept?** `~/.config/gladiator/login.json` (override via `GLADIATOR_CONFIG`).
|
|
103
|
-
- **Auth method?** Prefer API key. Username/password is supported to be CI-friendly but avoid storing passwords when possible.
|
|
104
|
-
- **Approved states?** By default any state labelled `Approved` or `Released` is treated as approved. Adjust the code if your tenant uses custom labels.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|