slab-cli 0.27.1__tar.gz → 0.27.2__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.
Files changed (35) hide show
  1. {slab_cli-0.27.1 → slab_cli-0.27.2}/PKG-INFO +2 -2
  2. {slab_cli-0.27.1 → slab_cli-0.27.2}/pyproject.toml +2 -2
  3. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/display.py +9 -11
  4. {slab_cli-0.27.1 → slab_cli-0.27.2}/README.md +0 -0
  5. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/__init__.py +0 -0
  6. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/banner.py +0 -0
  7. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/browse.py +0 -0
  8. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/client.py +0 -0
  9. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/__init__.py +0 -0
  10. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/breaks.py +0 -0
  11. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/catalog.py +0 -0
  12. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/collection.py +0 -0
  13. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/custom_sets.py +0 -0
  14. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/export.py +0 -0
  15. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/lots.py +0 -0
  16. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/pricing.py +0 -0
  17. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/registry.py +0 -0
  18. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/setup.py +0 -0
  19. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/commands/update.py +0 -0
  20. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/config.py +0 -0
  21. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/context.py +0 -0
  22. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/flags.py +0 -0
  23. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/help.py +0 -0
  24. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/main.py +0 -0
  25. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/nav.py +0 -0
  26. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/paging.py +0 -0
  27. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/picker.py +0 -0
  28. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/platforms/__init__.py +0 -0
  29. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/platforms/base.py +0 -0
  30. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/platforms/posix.py +0 -0
  31. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/platforms/windows.py +0 -0
  32. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/prompts.py +0 -0
  33. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/sources.py +0 -0
  34. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/theme.py +0 -0
  35. {slab_cli-0.27.1 → slab_cli-0.27.2}/src/slab_cli/updates.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: slab-cli
3
- Version: 0.27.1
3
+ Version: 0.27.2
4
4
  Summary: CLI for the slab trading-card API — catalog, collect, and track your cards from the terminal.
5
5
  Author: dev_jeb
6
- Requires-Dist: slab-schemas>=0.53.1
6
+ Requires-Dist: slab-schemas>=0.54.0
7
7
  Requires-Dist: httpx>=0.27
8
8
  Requires-Dist: rich>=13.0
9
9
  Requires-Dist: inquirerpy>=0.3
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "slab-cli"
3
- version = "0.27.1"
3
+ version = "0.27.2"
4
4
  description = "CLI for the slab trading-card API — catalog, collect, and track your cards from the terminal."
5
5
  readme = "README.md"
6
6
  authors = [{name = "dev_jeb"}]
@@ -12,7 +12,7 @@ dependencies = [
12
12
  # 0.34 reframes the grading desk from verdicts to break-even readings (BreakEvenRegion,
13
13
  # GradingDesk.break_even) — the desk shows data, never tells the user to grade.
14
14
  # 0.35 adds Liquidity/LiquidityLabel, which the market view's Sells column renders.
15
- "slab-schemas>=0.53.1", # metrics registry: served momentum/trend labels
15
+ "slab-schemas>=0.54.0", # metrics registry: served momentum/trend labels
16
16
  "httpx>=0.27",
17
17
  "rich>=13.0",
18
18
  "InquirerPy>=0.3",
@@ -1396,13 +1396,11 @@ def estimate_caption(estimates) -> str:
1396
1396
  return f"No {names} of this card has sold yet, so {those} estimated from similar cards."
1397
1397
 
1398
1398
 
1399
- def estimate_basis(e) -> str:
1400
- """`PSA 9: 29% below raw, based on 6 … cards ($200+ raw), plus 39 other cards at that price.`
1401
- Same words as the site's `estimateBasis`."""
1402
- pct = round(abs(e.typical_jump) * 100)
1403
- jump = ("about the same as raw" if pct == 0
1404
- else f"{pct}% {'below' if e.typical_jump < 0 else 'above'} raw")
1405
- return f"{e.grade_key.replace('-', ' ')}: {jump}, based on {e.basis_label}."
1399
+ def estimate_lines(e) -> list[str]:
1400
+ """How an estimate was made, as the API's own plain lines with this card's numbers (an older
1401
+ response without them falls back to the cards it rests on). Same as the site's
1402
+ `estimateLines`."""
1403
+ return list(e.explanation) or [f"Cards like this: {e.basis_label}."]
1406
1404
 
1407
1405
 
1408
1406
  def _desk_reading_line(d: GradingDesk) -> str:
@@ -1494,10 +1492,10 @@ def render_grading_desk(d: GradingDesk) -> None:
1494
1492
  if estimates:
1495
1493
  console.print(f" [slab.warn]est.[/] {estimate_caption(estimates)}")
1496
1494
  for e in estimates:
1497
- console.print(f" [slab.dim]{estimate_basis(e)}[/]")
1498
- info = d.glossary.get("grading.estimate")
1499
- if info:
1500
- console.print(f" [slab.dim]How it works: {info.detail}[/]")
1495
+ console.print(f" [slab.value]{e.grade_key.replace('-', ' ')} ≈ "
1496
+ f"{_whole_dollars(e.fair_market_value)}[/]")
1497
+ for line in estimate_lines(e):
1498
+ console.print(f" [slab.dim]{line}[/]")
1501
1499
  if any(l.liquidity for l in d.lanes):
1502
1500
  console.print(" [slab.dim]Sells = how often that grade actually trades — a payoff "
1503
1501
  "at a grade that sells twice a year is a longer wait than one that "
File without changes
File without changes