Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slab_cli-0.2.0.tar.gz (58.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slab_cli-0.2.0-py3-none-any.whl (70.0 kB view details)

Uploaded Python 3

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

Hashes for slab_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 ec71b5e95e37fcd8886b5f8308cf5038e593a0e61d48d0be0854fb1b3696f8a2
MD5 2925581fa687a81cd03e0fbff9b1bd8e
BLAKE2b-256 981ab697c9aa0948fc4e43c481097cc4345d01a261ed8e6d9149b92a9616a2d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for slab_cli-0.2.0.tar.gz:

Publisher: cli_pypi.yml on dev-jeb/slab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for slab_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac4dce684d9977fec5ddbfb20fbe44dc60cd26b652c1716e2c7eaf9e1c245f3e
MD5 dbf6eb788decdf9808093d525f3a7348
BLAKE2b-256 5a78f567ab55f0f0b0661d67cf5e4afe7bf509afb01f87d7c8f9631c577ef619

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page