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.1.0.tar.gz (58.8 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.1.0-py3-none-any.whl (69.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: slab_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 58.8 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.1.0.tar.gz
Algorithm Hash digest
SHA256 ea30d888be68f1ab412b2d1798375c836fb16ee7c8beea5de301aff33b650dd3
MD5 fe6f1d48d4227a4822e65a1e712ba44d
BLAKE2b-256 a1a5f5429e6d1fcc06dc60de10bbdb8523f0fbd759a8b1ef97b72667c7eb0867

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: slab_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 69.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 16ee004496a631f6f52ebdb01a1f255edc66fc7ac04c74cd3db89dc9bc97dc4b
MD5 cb429f4ec725ef953075319e81c58a67
BLAKE2b-256 c6bdfa0b001c755cd7f04ff19707043fa8e335b4d7e3d5375c22488923f97b5b

See more details on using hashes here.

Provenance

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