lr-gladiator 0.3.0__py3-none-any.whl → 0.4.0__py3-none-any.whl

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.
gladiator/arena.py CHANGED
@@ -431,14 +431,11 @@ class ArenaClient:
431
431
  title = title or file_path.stem
432
432
  file_format = file_format or (file_path.suffix[1:].lower() if file_path.suffix else "bin")
433
433
  description = description or "Uploaded via gladiator"
434
+ files = {"content": (file_path.name, open(file_path, "rb"), "application/octet-stream")}
434
435
 
435
- files = {
436
- "content": (file_path.name, open(file_path, "rb"), "application/octet-stream"),
437
- }
438
436
  # NOTE: nested field names are sent in `data`, not `files`
439
437
  data_form = {
440
438
  "file.title": title,
441
- "file.name": filename,
442
439
  "file.description": description,
443
440
  "file.category.guid": cat_guid,
444
441
  "file.format": file_format,
gladiator/cli.py CHANGED
@@ -137,7 +137,7 @@ def upload_file(
137
137
  category: str = typer.Option("CAD Data", "--category", help='File category name (default: "CAD Data")'),
138
138
  file_format: Optional[str] = typer.Option(None, "--format", help="File format (default: file extension)"),
139
139
  description: Optional[str] = typer.Option(None, "--desc", help="Optional description"),
140
- primary: bool = typer.Option(True, "--primary/--no-primary", help="Mark association as primary"),
140
+ primary: bool = typer.Option(False, "--primary/--no-primary", help="Mark association as primary"),
141
141
  edition: str = typer.Option("1", "--edition", help="Edition number when creating a new association (default: 1)"),
142
142
  ):
143
143
  """If a file with the same filename exists: update its content (new edition).
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lr-gladiator
3
- Version: 0.3.0
3
+ Version: 0.4.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
@@ -0,0 +1,10 @@
1
+ gladiator/__init__.py,sha256=kVgJiGDD6714tJ3SN6mdao3rdVO57jlMvLMHAFjHX4A,207
2
+ gladiator/arena.py,sha256=bRKbt4a4hp57XC6KqZixExxZ2Efp7nCMhpehfovgKRE,21593
3
+ gladiator/cli.py,sha256=GP-sBRusZWwjnn5RtT0VhNps6xQzoIj2BFKUysi_lF0,6445
4
+ gladiator/config.py,sha256=pnuVrcW8yafxMB7RU9wyi_4jS_oMBIuNryfet203Wng,1738
5
+ lr_gladiator-0.4.0.dist-info/licenses/LICENSE,sha256=2CEtbEagerjoU3EDSk-eTM5LKgI_RpiVIOh3_CV4kms,1069
6
+ lr_gladiator-0.4.0.dist-info/METADATA,sha256=X3TfGY-kQ5CtL0z2azFPtLCBmvXYQp3ov07I7iJJc64,1912
7
+ lr_gladiator-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ lr_gladiator-0.4.0.dist-info/entry_points.txt,sha256=SLka4w7iGS2B8HrbeZyNk5mxaIC6QKcv93us1OaWNwQ,48
9
+ lr_gladiator-0.4.0.dist-info/top_level.txt,sha256=tfrcAmK7_7Lf63w7kWy0wv_Qg9RrcFWGoins1-jGUF4,10
10
+ lr_gladiator-0.4.0.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- gladiator/__init__.py,sha256=kVgJiGDD6714tJ3SN6mdao3rdVO57jlMvLMHAFjHX4A,207
2
- gladiator/arena.py,sha256=GUexGV7aSnOKXM86MSh6hp05S5qfnAgRAt7hX4gGV_4,21652
3
- gladiator/cli.py,sha256=K5qM5rTlz4EXZ_7kc4EjOGrGzj_-4E4HXFCrt-BTCxU,6444
4
- gladiator/config.py,sha256=pnuVrcW8yafxMB7RU9wyi_4jS_oMBIuNryfet203Wng,1738
5
- lr_gladiator-0.3.0.dist-info/licenses/LICENSE,sha256=2CEtbEagerjoU3EDSk-eTM5LKgI_RpiVIOh3_CV4kms,1069
6
- lr_gladiator-0.3.0.dist-info/METADATA,sha256=xuB5t1e8lBt86agY-L7jb63qm3K5YEa7be1ZxWNFu0w,1912
7
- lr_gladiator-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- lr_gladiator-0.3.0.dist-info/entry_points.txt,sha256=SLka4w7iGS2B8HrbeZyNk5mxaIC6QKcv93us1OaWNwQ,48
9
- lr_gladiator-0.3.0.dist-info/top_level.txt,sha256=tfrcAmK7_7Lf63w7kWy0wv_Qg9RrcFWGoins1-jGUF4,10
10
- lr_gladiator-0.3.0.dist-info/RECORD,,