Skip to main content

Command-line interface for SweatStack — the sports data platform for developers

Project description

SweatStack CLI

Command-line interface for SweatStack — the sports data platform for developers.

Installation

Requires Python 3.11+. We recommend uv for installation.

# Run directly without installing
uvx sweatstack-cli

# Or install as a tool
uv tool install sweatstack-cli

# Or with pip
pip install sweatstack-cli

To upgrade:

uv tool upgrade sweatstack-cli

To reinstall (e.g. after a broken install or Python version change):

uvx --reinstall sweatstack-cli
# or if installed as a tool
uv tool install --reinstall sweatstack-cli

Quick Start

# Authenticate with SweatStack
sweatstack login

# Create an app and deploy
sweatstack app create "My App" --page my-page --env
sweatstack page deploy

Commands

Authentication

Command Description
sweatstack login Authenticate via browser (OAuth2 PKCE)
sweatstack login --force Force re-authentication
sweatstack logout Remove stored credentials
sweatstack status Show auth status, user info, and version
sweatstack --version Show version and check for updates

Application Management

Command Description
sweatstack app create [NAME] Create a new private OAuth2 application
sweatstack app link Link current directory to an existing application

app create options

Option Description
--description, -d TEXT Application description (max 500 chars)
--page, -p SLUG Associate with a SweatStack Page
--secret, -s Generate a client secret
--env Write credentials to .env
--env-file PATH Write credentials to a specific file
--json Output as JSON

app link options

Option Description
--force, -f Overwrite existing sweatstack.toml

Project Configuration

Both app create and app link generate a sweatstack.toml in the current directory. Other commands read defaults from this file.

[app]
name = "My App"
client_id = "abc123"

[page]
slug = "my-page"
directory = "dist"

Page Deployment

Deploy static sites to SweatStack Pages.

# Deploy using sweatstack.toml defaults (recommended)
sweatstack page deploy

# Or specify slug and directory explicitly
sweatstack page deploy my-page --dir ./dist

License

MIT

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

sweatstack_cli-0.11.0.tar.gz (105.4 kB view details)

Uploaded Source

Built Distribution

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

sweatstack_cli-0.11.0-py3-none-any.whl (38.0 kB view details)

Uploaded Python 3

File details

Details for the file sweatstack_cli-0.11.0.tar.gz.

File metadata

  • Download URL: sweatstack_cli-0.11.0.tar.gz
  • Upload date:
  • Size: 105.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sweatstack_cli-0.11.0.tar.gz
Algorithm Hash digest
SHA256 5178a39b530203524268c296125778073d75124516438dcbb0676677b99297da
MD5 1ddbb5a4afbb902f79bc7ec20f19b40a
BLAKE2b-256 3a7124f5940c11a7b7d8323837eff78201ff66e7f269dd9b119a660be010f81f

See more details on using hashes here.

File details

Details for the file sweatstack_cli-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: sweatstack_cli-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 38.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sweatstack_cli-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1efe1d03ed41f95f449e4ddd8b01f8d0642f89b32483f0ebbd21c5cacf696b2b
MD5 4cb8a5d336d615a525c5bd6410c659ec
BLAKE2b-256 19cfc2f48afd1735e40d06dd6ed2a3dc667e088c91854c30b731a14111d020e8

See more details on using hashes here.

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