sweatstack-cli 0.7.0__py3-none-any.whl → 0.7.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  """SweatStack CLI — Command-line interface for the SweatStack platform."""
2
2
 
3
- __version__ = "0.7.0"
3
+ __version__ = "0.7.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sweatstack-cli
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Command-line interface for SweatStack — the sports data platform for developers
5
5
  Project-URL: Homepage, https://sweatstack.no
6
6
  Project-URL: Documentation, https://docs.sweatstack.no
@@ -34,11 +34,32 @@ Command-line interface for [SweatStack](https://sweatstack.no) — the sports da
34
34
 
35
35
  ## Installation
36
36
 
37
+ Requires Python 3.11+. We recommend [uv](https://docs.astral.sh/uv/) for installation.
38
+
37
39
  ```bash
40
+ # Run directly without installing
41
+ uvx sweatstack-cli
42
+
43
+ # Or install as a tool
44
+ uv tool install sweatstack-cli
45
+
46
+ # Or with pip
38
47
  pip install sweatstack-cli
39
48
  ```
40
49
 
41
- Requires Python 3.11+.
50
+ To upgrade:
51
+
52
+ ```bash
53
+ uv tool upgrade sweatstack-cli
54
+ ```
55
+
56
+ To reinstall (e.g. after a broken install or Python version change):
57
+
58
+ ```bash
59
+ uvx --reinstall sweatstack-cli
60
+ # or if installed as a tool
61
+ uv tool install --reinstall sweatstack-cli
62
+ ```
42
63
 
43
64
  ## Quick Start
44
65
 
@@ -46,17 +67,9 @@ Requires Python 3.11+.
46
67
  # Authenticate with SweatStack
47
68
  sweatstack login
48
69
 
49
- # Check authentication and version status
50
- sweatstack status
51
-
52
- # Deploy a static site
53
- sweatstack page deploy my-page ./dist
54
-
55
- # Create an OAuth2 application
70
+ # Create an app and deploy
56
71
  sweatstack app create "My App" --page my-page --env
57
-
58
- # Logout
59
- sweatstack logout
72
+ sweatstack page deploy
60
73
  ```
61
74
 
62
75
  ## Commands
@@ -71,29 +84,8 @@ sweatstack logout
71
84
  | `sweatstack status` | Show auth status, user info, and version |
72
85
  | `sweatstack --version` | Show version and check for updates |
73
86
 
74
- ### Page Deployment
75
-
76
- Deploy static sites to SweatStack Pages.
77
-
78
- | Command | Description |
79
- |---------|-------------|
80
- | `sweatstack page deploy [SLUG] [DIRECTORY]` | Deploy a static site |
81
-
82
- - **SLUG** — Page identifier. Falls back to `sweatstack.toml` if omitted.
83
- - **DIRECTORY** — Directory to deploy. Falls back to `sweatstack.toml`, then current directory.
84
-
85
- ```bash
86
- # Deploy using CLI arguments
87
- sweatstack page deploy my-page ./dist
88
-
89
- # Deploy using sweatstack.toml defaults
90
- sweatstack page deploy
91
- ```
92
-
93
87
  ### Application Management
94
88
 
95
- Manage OAuth2 applications.
96
-
97
89
  | Command | Description |
98
90
  |---------|-------------|
99
91
  | `sweatstack app create NAME` | Create a new private OAuth2 application |
@@ -116,9 +108,9 @@ Manage OAuth2 applications.
116
108
  |--------|-------------|
117
109
  | `--force, -f` | Overwrite existing `sweatstack.toml` |
118
110
 
119
- ## Project Configuration
111
+ ### Project Configuration
120
112
 
121
- Commands read defaults from a `sweatstack.toml` in the current directory. This file is created automatically by `app create` and `app link`.
113
+ Both `app create` and `app link` generate a `sweatstack.toml` in the current directory. Other commands read defaults from this file.
122
114
 
123
115
  ```toml
124
116
  [app]
@@ -130,53 +122,18 @@ slug = "my-page"
130
122
  directory = "dist"
131
123
  ```
132
124
 
133
- ## CI/CD Usage
125
+ ### Page Deployment
134
126
 
135
- For automated environments, set environment variables instead of interactive login:
127
+ Deploy static sites to SweatStack Pages.
136
128
 
137
129
  ```bash
138
- export SWEATSTACK_API_KEY="your-access-token"
139
- export SWEATSTACK_REFRESH_TOKEN="your-refresh-token"
130
+ # Deploy using sweatstack.toml defaults (recommended)
131
+ sweatstack page deploy
140
132
 
133
+ # Or specify slug and directory directly
141
134
  sweatstack page deploy my-page ./dist
142
135
  ```
143
136
 
144
- ## Environment Variables
145
-
146
- | Variable | Description | Default |
147
- |----------|-------------|---------|
148
- | `SWEATSTACK_URL` | API base URL | `https://app.sweatstack.no` |
149
- | `SWEATSTACK_API_KEY` | Access token (for CI/CD) | — |
150
- | `SWEATSTACK_REFRESH_TOKEN` | Refresh token (for CI/CD) | — |
151
-
152
- ## Token Storage
153
-
154
- Credentials are stored in your OS user data directory:
155
-
156
- - **macOS**: `~/Library/Application Support/SweatStack/SweatStack/tokens.json`
157
- - **Linux**: `~/.local/share/SweatStack/SweatStack/tokens.json`
158
- - **Windows**: `%APPDATA%\SweatStack\SweatStack\tokens.json`
159
-
160
- Token files are created with `0600` permissions (owner read/write only). This location is shared with the [sweatstack Python library](https://github.com/sweatstack/sweatstack-python), so authenticating with either tool works for both.
161
-
162
- ## Development
163
-
164
- See [DEVELOPMENT.md](DEVELOPMENT.md) for development setup and contribution guidelines.
165
-
166
- ```bash
167
- # Install with dev dependencies
168
- uv pip install -e ".[dev]"
169
-
170
- # Run tests
171
- pytest
172
-
173
- # Lint and format
174
- ruff check . && ruff format .
175
-
176
- # Type check
177
- mypy src/sweatstack_cli
178
- ```
179
-
180
137
  ## License
181
138
 
182
139
  MIT
@@ -1,4 +1,4 @@
1
- sweatstack_cli/__init__.py,sha256=n2zPulBh92qWjkryatKmyuF192Pfhslh0yCiCZdD-Co,100
1
+ sweatstack_cli/__init__.py,sha256=Ukl0v4zMZ7-TDQDGOgP_hE5bZNOGupnWszo_V3w4JM4,100
2
2
  sweatstack_cli/config.py,sha256=cD4OXnVAKVagYazyk9Cw-WWx62tJPqcjQt1cknYyymM,706
3
3
  sweatstack_cli/console.py,sha256=69KWAM7ksnYRTONMYTXGXN4LWRAQhRxcLXO0LcWGLqo,300
4
4
  sweatstack_cli/exceptions.py,sha256=qEUu8GydXGRKR4ndAdZ2wnkHekmFpBXDJiT5bXdl7Yk,613
@@ -17,7 +17,7 @@ sweatstack_cli/commands/__init__.py,sha256=YCO8wYVvdGeoEI0p_oUm8ANLneuET4SHsKDji
17
17
  sweatstack_cli/commands/app.py,sha256=vTMR1Hs76LOJe8q1_FY1AcNPG7LOJdz8SCOfY3ZwayY,6945
18
18
  sweatstack_cli/commands/auth.py,sha256=lmlN2RcZIHdbZG-EEUVFwOSn6vPN-Ijgh_5E-cFQVtU,3478
19
19
  sweatstack_cli/commands/page.py,sha256=tEWjzOmht_IKm47lbprJz-XDKibrx5nFlStuvBRST6A,5329
20
- sweatstack_cli-0.7.0.dist-info/METADATA,sha256=e4RwtVRDIbDAH6uAPnLL4QcEXu_cvgs3yjMt-LxVqm0,5017
21
- sweatstack_cli-0.7.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
22
- sweatstack_cli-0.7.0.dist-info/entry_points.txt,sha256=rnH0EV1U9CQlmKQcJ7RmxGpNRTa9J-YdiIJZDYrAXb4,56
23
- sweatstack_cli-0.7.0.dist-info/RECORD,,
20
+ sweatstack_cli-0.7.1.dist-info/METADATA,sha256=CQ4JeU0g8Cqo4tLd4vUK8mAoUqgiCa7fK1AocVBTPko,3664
21
+ sweatstack_cli-0.7.1.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
22
+ sweatstack_cli-0.7.1.dist-info/entry_points.txt,sha256=rnH0EV1U9CQlmKQcJ7RmxGpNRTa9J-YdiIJZDYrAXb4,56
23
+ sweatstack_cli-0.7.1.dist-info/RECORD,,