CLI for the slab trading-card API — catalog, collect, and track your cards from the terminal.
Project description
slab-cli
A terminal client for the slab trading-card API — browse the catalog, price cards against real sales comps, and track your own collection from the command line.
pip install slab-cli
This installs the slab command.
Setup
The CLI talks to the hosted slab API. You need an API key — mint one from the slab portal (sign in → API Keys → create). Then:
export SLAB_API_KEY=sk_live_... # your key (required)
# optional:
export SLAB_API_URL=https://api.slab.dev-jeb.com # default; override for a self-hosted API
export SLAB_COLLECTOR=<collector-uuid> # your active collector, reused across commands
Quickstart
# Catalog + pricing (no collector needed)
slab card search --subject "Connor Bedard" # find cards
slab card price <card-uuid> # fair-market value from sales comps
slab card comps <card-uuid> # the underlying recent sales
slab set "OPC Platinum" # a set's sealed FMV + top cards
# Your collection
slab collector create # one-time: create your collector profile
slab collection add # add an owned copy (grade, cost, acquisition)
slab collection cost # log grading/shipping costs on a copy
slab break new # record a box/case break
slab collection dashboard # portfolio value, cost basis, P&L
slab collection search # search + filter your copies
Run slab with no arguments for the full command list, or slab <group> (e.g. slab collection)
to see a group's verbs.
Configuration reference
| Env var | Purpose | Default |
|---|---|---|
SLAB_API_KEY |
API key for authentication (required) | — |
SLAB_API_URL |
Base URL of the slab API | https://api.slab.dev-jeb.com |
SLAB_COLLECTOR |
Active collector UUID, reused per command | — |
What it depends on
Requests and responses are typed against slab-schemas —
the same pydantic wire contract the API itself uses — so the CLI and API can never drift.
Requires Python 3.13+.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slab_cli-0.2.0.tar.gz.
File metadata
- Download URL: slab_cli-0.2.0.tar.gz
- Upload date:
- Size: 58.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec71b5e95e37fcd8886b5f8308cf5038e593a0e61d48d0be0854fb1b3696f8a2
|
|
| MD5 |
2925581fa687a81cd03e0fbff9b1bd8e
|
|
| BLAKE2b-256 |
981ab697c9aa0948fc4e43c481097cc4345d01a261ed8e6d9149b92a9616a2d5
|
Provenance
The following attestation bundles were made for slab_cli-0.2.0.tar.gz:
Publisher:
cli_pypi.yml on dev-jeb/slab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slab_cli-0.2.0.tar.gz -
Subject digest:
ec71b5e95e37fcd8886b5f8308cf5038e593a0e61d48d0be0854fb1b3696f8a2 - Sigstore transparency entry: 2239612568
- Sigstore integration time:
-
Permalink:
dev-jeb/slab@63315128eb91ba0ca66cb43b3377d60f6a81b62e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dev-jeb
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli_pypi.yml@63315128eb91ba0ca66cb43b3377d60f6a81b62e -
Trigger Event:
push
-
Statement type:
File details
Details for the file slab_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: slab_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 70.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac4dce684d9977fec5ddbfb20fbe44dc60cd26b652c1716e2c7eaf9e1c245f3e
|
|
| MD5 |
dbf6eb788decdf9808093d525f3a7348
|
|
| BLAKE2b-256 |
5a78f567ab55f0f0b0661d67cf5e4afe7bf509afb01f87d7c8f9631c577ef619
|
Provenance
The following attestation bundles were made for slab_cli-0.2.0-py3-none-any.whl:
Publisher:
cli_pypi.yml on dev-jeb/slab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
slab_cli-0.2.0-py3-none-any.whl -
Subject digest:
ac4dce684d9977fec5ddbfb20fbe44dc60cd26b652c1716e2c7eaf9e1c245f3e - Sigstore transparency entry: 2239613267
- Sigstore integration time:
-
Permalink:
dev-jeb/slab@63315128eb91ba0ca66cb43b3377d60f6a81b62e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dev-jeb
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cli_pypi.yml@63315128eb91ba0ca66cb43b3377d60f6a81b62e -
Trigger Event:
push
-
Statement type: