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.3.0.tar.gz (59.4 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.3.0-py3-none-any.whl (70.5 kB view details)

Uploaded Python 3

File details

Details for the file slab_cli-0.3.0.tar.gz.

File metadata

  • Download URL: slab_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 59.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 3c63e2621131e3cf23e4d22e2999a4bcd16e78c127a6dcb937c30cfd23cbcc23
MD5 f588912ef5981b615e83a62615fbc62c
BLAKE2b-256 2670d246d435574c34046f06ff24c845a660477d2b63ce0206472efad4796f55

See more details on using hashes here.

Provenance

The following attestation bundles were made for slab_cli-0.3.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: slab_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 70.5 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46306f3e02cb63c77af91ea8414408636e6e1ff66ccc12a0d52e56ef6bafe8a1
MD5 9640f9577ebb548d147d162142a754de
BLAKE2b-256 bfc4cbef94da4b4c8dc372fdd34cc0f947fa44a6c093d7896ad9054f711c3217

See more details on using hashes here.

Provenance

The following attestation bundles were made for slab_cli-0.3.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