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 directly
sweatstack page deploy my-page ./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.7.1.tar.gz (74.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.7.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sweatstack_cli-0.7.1.tar.gz
  • Upload date:
  • Size: 74.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.10

File hashes

Hashes for sweatstack_cli-0.7.1.tar.gz
Algorithm Hash digest
SHA256 65148ab550682ae049017075f110a523fe8e53388926ecd2928d1a92f8072afe
MD5 23f57a034d68926c1c2e5fe379308cd4
BLAKE2b-256 7021225200885e1476dc577fe72ee784ec71c07159cf41181a4bc8628cb00024

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sweatstack_cli-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 22a427ebc31460a516382d9d2a6945b423fa13f45ce22ea4173c8e88b7806e9c
MD5 f5e1b675c415000bce7ce5f9057a29df
BLAKE2b-256 38182d9ff90bc6eb703d16a59a315db2966502c3226c874614c116ac505a0324

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