xoople-cli 0.4.0__tar.gz → 0.5.0__tar.gz

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.
Files changed (25) hide show
  1. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/PKG-INFO +2 -2
  2. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/pyproject.toml +3 -3
  3. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/pyproject.toml.orig +3 -3
  4. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/access.py +1 -1
  5. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/analyses.py +2 -43
  6. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/packages.py +23 -1
  7. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/LICENSE +0 -0
  8. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/README.md +0 -0
  9. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/__init__.py +0 -0
  10. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/__main__.py +0 -0
  11. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/_ciam.py +0 -0
  12. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/_context.py +0 -0
  13. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/_errors.py +0 -0
  14. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/_output.py +0 -0
  15. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/_spec.py +0 -0
  16. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/_version.py +0 -0
  17. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/auth.py +0 -0
  18. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/catalog.py +0 -0
  19. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/events.py +0 -0
  20. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/main.py +0 -0
  21. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/outputs.py +0 -0
  22. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/projects.py +0 -0
  23. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/runs.py +0 -0
  24. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/schedules.py +0 -0
  25. {xoople_cli-0.4.0 → xoople_cli-0.5.0}/src/xoople/cli/usage.py +0 -0
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xoople-cli
3
- Version: 0.4.0
3
+ Version: 0.5.0
4
4
  Summary: Command-line interface for the Xoople Products API.
5
5
  License-Expression: LicenseRef-Xoople-Proprietary
6
6
  License-File: LICENSE
7
7
  Classifier: Development Status :: 3 - Alpha
8
8
  Classifier: Programming Language :: Python :: 3.12
9
- Requires-Dist: xoople-sdk>=0.6.0
9
+ Requires-Dist: xoople-sdk>=0.7.0
10
10
  Requires-Dist: cyclopts>=4.18,<5
11
11
  Requires-Dist: rich>=13.7
12
12
  Requires-Python: >=3.12
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xoople-cli"
3
- version = "0.4.0"
3
+ version = "0.5.0"
4
4
  description = "Command-line interface for the Xoople Products API."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -11,7 +11,7 @@ classifiers = [
11
11
  "Programming Language :: Python :: 3.12",
12
12
  ]
13
13
  dependencies = [
14
- "xoople-sdk>=0.6.0",
14
+ "xoople-sdk>=0.7.0",
15
15
  "cyclopts>=4.18,<5",
16
16
  "rich>=13.7",
17
17
  ]
@@ -23,7 +23,7 @@ xoople = "xoople.cli.main:main"
23
23
  Homepage = "https://xoople.com"
24
24
 
25
25
  [build-system]
26
- requires = ["uv_build>=0.11.6,<0.12"]
26
+ requires = ["uv_build>=0.13.0,<0.14"]
27
27
  build-backend = "uv_build"
28
28
 
29
29
  [tool.uv.build-backend]
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "xoople-cli"
3
- version = "0.4.0"
3
+ version = "0.5.0"
4
4
  description = "Command-line interface for the Xoople Products API."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.12"
@@ -13,7 +13,7 @@ classifiers = [
13
13
  "Programming Language :: Python :: 3.12",
14
14
  ]
15
15
  dependencies = [
16
- "xoople-sdk>=0.6.0",
16
+ "xoople-sdk>=0.7.0",
17
17
  # Cyclopts parses docstrings for parameter help so signatures stay plain,
18
18
  # supports union types and Pydantic models natively, and owns its parser.
19
19
  # Global options + dependency injection go through the meta-app launcher
@@ -29,7 +29,7 @@ xoople = "xoople.cli.main:main"
29
29
  Homepage = "https://xoople.com"
30
30
 
31
31
  [build-system]
32
- requires = ["uv_build>=0.11.6,<0.12"]
32
+ requires = ["uv_build>=0.13.0,<0.14"]
33
33
  build-backend = "uv_build"
34
34
 
35
35
  [tool.uv.build-backend]
@@ -22,7 +22,7 @@ class _FlagRow(BaseModel):
22
22
 
23
23
  @app.command(name="me")
24
24
  def me(*, settings: SettingsParam) -> None:
25
- """Show your Delta Sharing recipient and the share it reads."""
25
+ """Show your Delta Sharing recipient and the schema of your org's shared tables."""
26
26
  emit_model(settings.client().data_access.me(), as_json=settings.as_json)
27
27
 
28
28
 
@@ -1,5 +1,5 @@
1
1
  from pathlib import Path
2
- from typing import Annotated, Literal
2
+ from typing import Annotated
3
3
 
4
4
  from cyclopts import App, Parameter
5
5
  from xoople.cli._context import SettingsParam, at_least_one
@@ -30,6 +30,7 @@ FIELDS = [
30
30
  ("Display name", "display_name"),
31
31
  ("Product", "product"),
32
32
  ("Product version", "product_version"),
33
+ ("Output schema outdated", "output_schema_outdated"),
33
34
  ("State", "state"),
34
35
  ("State message", "state_message"),
35
36
  ("Owner", "owner"),
@@ -178,48 +179,6 @@ def cancel(analysis: str, *, settings: SettingsParam) -> None:
178
179
  emit_one(settings.client().analyses.cancel(analysis), FIELDS, as_json=settings.as_json)
179
180
 
180
181
 
181
- @app.command(name="share")
182
- def share(
183
- analysis: str,
184
- *,
185
- settings: SettingsParam,
186
- scope: Literal["org"] = "org",
187
- ) -> None:
188
- """Let your organisation read one analysis.
189
-
190
- Anyone in your organisation can then open it by name. It stays out of their
191
- listings, and the share grants them no reuse action and no access to the
192
- underlying data. Only the owner may share; repeating the call changes
193
- nothing.
194
-
195
- Parameters
196
- ----------
197
- analysis:
198
- The analysis to share.
199
- scope:
200
- Who to share with. Only your own organisation may be named.
201
- """
202
- emit_one(settings.client().analyses.share(analysis, scope), FIELDS, as_json=settings.as_json)
203
-
204
-
205
- @app.command(name="unshare")
206
- def unshare(analysis: str, *, settings: SettingsParam, share: str = "org") -> None:
207
- """Revoke one grant on an analysis.
208
-
209
- Only the owner may unshare; repeating the call changes nothing.
210
-
211
- Parameters
212
- ----------
213
- analysis:
214
- The analysis to revoke a grant on.
215
- share:
216
- Which grant to revoke. `org` names your whole organisation, the only
217
- audience an analysis can be shared with today.
218
- """
219
- settings.client().analyses.unshare(analysis, share)
220
- note(f"[dim]{analysis} is no longer shared with {share}[/dim]")
221
-
222
-
223
182
  @app.command(name="run-again")
224
183
  def run_again(
225
184
  analysis: str,
@@ -2,7 +2,7 @@ from typing import Annotated
2
2
 
3
3
  from cyclopts import App, Parameter
4
4
  from xoople.cli._context import SettingsParam, at_least_one
5
- from xoople.cli._output import emit, emit_model
5
+ from xoople.cli._output import emit, emit_model, note
6
6
 
7
7
  app = App(
8
8
  name="packages",
@@ -90,3 +90,25 @@ def access_url(
90
90
  analysis, package, access_ttl_hours=access_ttl_hours
91
91
  )
92
92
  emit_model(result, as_json=settings.as_json)
93
+
94
+
95
+ @app.command(name="delete")
96
+ def delete(analysis: str, package: str, *, settings: SettingsParam) -> None:
97
+ """Delete a package and its files; the source table and other packages stay.
98
+
99
+ Cleanup runs in the background, so the package shows as DELETING until
100
+ `packages get` reports DELETED. Run this again on a DELETE_FAILED package
101
+ to retry it.
102
+
103
+ Parameters
104
+ ----------
105
+ analysis:
106
+ The analysis the package belongs to.
107
+ package:
108
+ The package to delete. Needs its owner; a package still being built cannot be deleted.
109
+ """
110
+ result = settings.client().analyses.packages.delete(analysis, package)
111
+ if result is None:
112
+ note(f"[dim]{package} is already deleted[/dim]")
113
+ return
114
+ emit_model(result, as_json=settings.as_json)
File without changes
File without changes