slab-cli 0.30.1__tar.gz → 0.30.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.
- {slab_cli-0.30.1 → slab_cli-0.30.2}/PKG-INFO +2 -2
- {slab_cli-0.30.1 → slab_cli-0.30.2}/pyproject.toml +2 -2
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/display.py +12 -10
- {slab_cli-0.30.1 → slab_cli-0.30.2}/README.md +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/__init__.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/banner.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/browse.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/client.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/__init__.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/breaks.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/catalog.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/collection.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/custom_sets.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/export.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/lots.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/pricing.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/registry.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/setup.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/commands/update.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/config.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/context.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/flags.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/help.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/main.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/nav.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/paging.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/picker.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/platforms/__init__.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/platforms/base.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/platforms/posix.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/platforms/windows.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/prompts.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/sources.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.2}/src/slab_cli/theme.py +0 -0
- {slab_cli-0.30.1 → slab_cli-0.30.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.30.
|
|
3
|
+
Version: 0.30.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.
|
|
6
|
+
Requires-Dist: slab-schemas>=0.62.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.30.
|
|
3
|
+
version = "0.30.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.
|
|
15
|
+
"slab-schemas>=0.62.0", # sales velocity heat (hot / warm / cold)
|
|
16
16
|
"httpx>=0.27",
|
|
17
17
|
"rich>=13.0",
|
|
18
18
|
"InquirerPy>=0.3",
|
|
@@ -23,7 +23,7 @@ from slab_schemas.glossary import MetricInfo
|
|
|
23
23
|
from slab_schemas.grading_desk import CollectionGradingDesk, GradingDesk
|
|
24
24
|
from slab_schemas.enums import BreakEvenRegion, Grade, LiquidityLabel, SealedFormat
|
|
25
25
|
from slab_schemas.liquidity import Liquidity
|
|
26
|
-
from slab_schemas.metrics import
|
|
26
|
+
from slab_schemas.metrics import trend_label, velocity_heat, velocity_ratio
|
|
27
27
|
from slab_schemas.pricing import CardComps, CardMarket, PortfolioSummary, SetTopCards
|
|
28
28
|
from slab_schemas.sealed import SealedPriceHistory, SealedProductOut
|
|
29
29
|
from slab_schemas.serials import CardSerials
|
|
@@ -901,20 +901,22 @@ def _ratio_text(ratio: float | None) -> str | None:
|
|
|
901
901
|
return (text.rstrip("0").rstrip(".") if "." in text else text) + "×"
|
|
902
902
|
|
|
903
903
|
|
|
904
|
+
_HEAT_TONE = {"hot": "slab.loss", "warm": "slab.dim", "cold": "slab.accent"}
|
|
905
|
+
|
|
906
|
+
|
|
904
907
|
def _hot_velocity(e: HotPlayer) -> str:
|
|
905
|
-
"""Sales velocity,
|
|
906
|
-
|
|
907
|
-
|
|
908
|
+
"""Sales velocity, read as everywhere: "hot 2× (2 → 4)" — the served heat (the site draws it
|
|
909
|
+
as a gauge), then the ratio and the earlier window's count and the newer one's. A block from an
|
|
910
|
+
older server without `heat`, or no block at all, reads the registry's own heat and ratio."""
|
|
908
911
|
v = e.velocity
|
|
909
912
|
if v is None:
|
|
910
913
|
sales, prior = e.observed.sales, e.observed_prior.sales
|
|
911
|
-
|
|
914
|
+
heat, ratio = velocity_heat(sales, prior), velocity_ratio(sales, prior)
|
|
912
915
|
else:
|
|
913
|
-
sales, prior,
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
return f"[{tone}]{lead}[/] {counts}" if lead else counts
|
|
916
|
+
sales, prior, ratio = v.sales, v.sales_prior, v.ratio
|
|
917
|
+
heat = v.heat or velocity_heat(sales, prior)
|
|
918
|
+
numbers = " ".join(x for x in (_ratio_text(ratio), f"({prior} → {sales})") if x)
|
|
919
|
+
return f"[{_HEAT_TONE[heat]}]{heat}[/] [slab.dim]{numbers}[/]"
|
|
918
920
|
|
|
919
921
|
|
|
920
922
|
def _hot_trend(e: HotPlayer) -> str:
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|