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
pip install sweatstack-cli
Requires Python 3.13+.
Quick Start
# Authenticate with SweatStack
sweatstack login
# Check who you're logged in as
sweatstack whoami
# Deploy a static site
sweatstack pages deploy ./dist --prod
# View authentication status
sweatstack status
# Logout
sweatstack logout
Commands
Authentication
| Command | Description |
|---|---|
sweatstack login |
Authenticate via browser |
sweatstack login --force |
Force re-authentication |
sweatstack logout |
Remove stored credentials |
sweatstack whoami |
Show current user |
sweatstack status |
Show token status and expiry |
Pages
| Command | Description |
|---|---|
sweatstack pages deploy <dir> |
Deploy static site |
sweatstack pages deploy --prod |
Deploy to production |
sweatstack pages list |
List all sites |
sweatstack pages delete <name> |
Delete a site |
CI/CD Usage
For automated environments, use environment variables instead of interactive login:
export SWEATSTACK_API_KEY="your-access-token"
export SWEATSTACK_REFRESH_TOKEN="your-refresh-token"
sweatstack pages deploy ./dist --prod
Configuration
| Environment Variable | Description | Default |
|---|---|---|
SWEATSTACK_URL |
API base URL | https://app.sweatstack.no |
SWEATSTACK_API_KEY |
Access token | — |
SWEATSTACK_REFRESH_TOKEN |
Refresh token | — |
Token Storage
Credentials are stored securely in your OS user data directory:
- macOS:
~/Library/Application Support/SweatStack/SweatStack/tokens.json - Linux:
~/.local/share/SweatStack/SweatStack/tokens.json - Windows:
%APPDATA%\SweatStack\SweatStack\tokens.json
This location is shared with the sweatstack Python library, so authenticating with either tool works for both.
Development
See DEVELOPMENT.md for development setup and contribution guidelines.
# Install with dev dependencies
uv pip install -e ".[dev]"
# Run tests
pytest
# Lint and format
ruff check . && ruff format .
# Type check
mypy src/sweatstack_cli
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sweatstack_cli-0.4.1.tar.gz.
File metadata
- Download URL: sweatstack_cli-0.4.1.tar.gz
- Upload date:
- Size: 73.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
513d87453ba66cfea29dd7e1aeeef5b40e4f362c4b75be0866f88171004df13d
|
|
| MD5 |
b7a6f1191ec46950e11b5f934d6b3bae
|
|
| BLAKE2b-256 |
cc313d1837f8a23aec1fa286ad17feef32e62af89890f21224cfbbeb4412c35b
|
File details
Details for the file sweatstack_cli-0.4.1-py3-none-any.whl.
File metadata
- Download URL: sweatstack_cli-0.4.1-py3-none-any.whl
- Upload date:
- Size: 21.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b54a411f299756af028c415201c9875888855f1c2de6d143d74a4d1bb4266e99
|
|
| MD5 |
9efe8424026e2a577078deb22a32ffc5
|
|
| BLAKE2b-256 |
4a2011461d0f3bfb8052317bca905175cc380df8048c1f23505dcdfb127faaa4
|