Datasphere-API 0.0.0__tar.gz → 0.1.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 (43) hide show
  1. datasphere_api-0.1.0/.github/workflows/release-please.yml +19 -0
  2. datasphere_api-0.1.0/.github/workflows/release.yml +60 -0
  3. datasphere_api-0.1.0/.gitignore +15 -0
  4. datasphere_api-0.1.0/.python-version +1 -0
  5. datasphere_api-0.1.0/.release-please-config.json +25 -0
  6. datasphere_api-0.1.0/.release-please-manifest.json +1 -0
  7. datasphere_api-0.1.0/CHANGELOG.md +28 -0
  8. datasphere_api-0.1.0/LICENSE +21 -0
  9. datasphere_api-0.1.0/PKG-INFO +144 -0
  10. datasphere_api-0.1.0/README.md +119 -0
  11. datasphere_api-0.1.0/pyproject.toml +71 -0
  12. datasphere_api-0.1.0/src/datasphere_api/__init__.py +27 -0
  13. datasphere_api-0.1.0/src/datasphere_api/auth.py +273 -0
  14. datasphere_api-0.1.0/src/datasphere_api/client.py +219 -0
  15. datasphere_api-0.1.0/src/datasphere_api/config.py +52 -0
  16. datasphere_api-0.1.0/src/datasphere_api/exceptions.py +22 -0
  17. datasphere_api-0.1.0/src/datasphere_api/models.py +305 -0
  18. datasphere_api-0.1.0/src/datasphere_api/py.typed +0 -0
  19. datasphere_api-0.1.0/src/datasphere_api/resources/__init__.py +0 -0
  20. datasphere_api-0.1.0/src/datasphere_api/resources/analytical_models.py +631 -0
  21. datasphere_api-0.1.0/src/datasphere_api/resources/base.py +19 -0
  22. datasphere_api-0.1.0/src/datasphere_api/resources/remote_tables.py +213 -0
  23. datasphere_api-0.1.0/src/datasphere_api/resources/task_chains.py +167 -0
  24. datasphere_api-0.1.0/src/datasphere_api/resources/views.py +1248 -0
  25. datasphere_api-0.1.0/tests/__init__.py +0 -0
  26. datasphere_api-0.1.0/tests/conftest.py +30 -0
  27. datasphere_api-0.1.0/tests/test_analytical_models.py +109 -0
  28. datasphere_api-0.1.0/tests/test_auth.py +91 -0
  29. datasphere_api-0.1.0/tests/test_client.py +101 -0
  30. datasphere_api-0.1.0/tests/test_config.py +33 -0
  31. datasphere_api-0.1.0/tests/test_remote_tables.py +113 -0
  32. datasphere_api-0.1.0/tests/test_task_chains.py +80 -0
  33. datasphere_api-0.1.0/tests/test_views.py +225 -0
  34. datasphere_api-0.1.0/uv.lock +440 -0
  35. datasphere_api-0.0.0/Datasphere_API.egg-info/PKG-INFO +0 -40
  36. datasphere_api-0.0.0/Datasphere_API.egg-info/SOURCES.txt +0 -7
  37. datasphere_api-0.0.0/Datasphere_API.egg-info/dependency_links.txt +0 -1
  38. datasphere_api-0.0.0/Datasphere_API.egg-info/top_level.txt +0 -1
  39. datasphere_api-0.0.0/PKG-INFO +0 -40
  40. datasphere_api-0.0.0/README.md +0 -4
  41. datasphere_api-0.0.0/__init__.py +0 -2
  42. datasphere_api-0.0.0/setup.cfg +0 -4
  43. datasphere_api-0.0.0/setup.py +0 -49
@@ -0,0 +1,19 @@
1
+ name: release-please
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+
7
+ permissions:
8
+ contents: write
9
+ pull-requests: write
10
+
11
+ jobs:
12
+ release-please:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: googleapis/release-please-action@v4
16
+ with:
17
+ token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
18
+ config-file: .release-please-config.json
19
+ manifest-file: .release-please-manifest.json
@@ -0,0 +1,60 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags: ["v*"]
6
+
7
+ permissions:
8
+ contents: read
9
+
10
+ concurrency:
11
+ group: release-${{ github.ref }}
12
+ cancel-in-progress: false
13
+
14
+ jobs:
15
+ build:
16
+ name: Build distributions
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ - uses: astral-sh/setup-uv@v6
21
+ - run: uv build
22
+ - uses: actions/upload-artifact@v4
23
+ with:
24
+ name: dist
25
+ path: dist/
26
+ if-no-files-found: error
27
+
28
+ publish-pypi:
29
+ name: Publish to PyPI
30
+ needs: build
31
+ runs-on: ubuntu-latest
32
+ environment:
33
+ name: pypi
34
+ url: https://pypi.org/p/Datasphere-API
35
+ permissions:
36
+ id-token: write
37
+ steps:
38
+ - uses: actions/download-artifact@v4
39
+ with:
40
+ name: dist
41
+ path: dist/
42
+ - uses: pypa/gh-action-pypi-publish@release/v1
43
+ with:
44
+ skip-existing: true
45
+
46
+ github-release:
47
+ name: Upload distributions to GitHub Release
48
+ needs: publish-pypi
49
+ runs-on: ubuntu-latest
50
+ permissions:
51
+ contents: write
52
+ steps:
53
+ - uses: actions/download-artifact@v4
54
+ with:
55
+ name: dist
56
+ path: dist/
57
+ - uses: softprops/action-gh-release@v2
58
+ with:
59
+ tag_name: ${{ github.ref_name }}
60
+ files: dist/*
@@ -0,0 +1,15 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
11
+
12
+ # Tool caches
13
+ .pytest_cache/
14
+ .ruff_cache/
15
+ .coverage
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,25 @@
1
+ {
2
+ "release-type": "python",
3
+ "bump-minor-pre-major": false,
4
+ "bump-patch-for-minor-pre-major": true,
5
+ "include-component-in-tag": false,
6
+ "pull-request-title-pattern": "chore: release ${version}",
7
+ "packages": {
8
+ ".": {
9
+ "package-name": "Datasphere-API",
10
+ "changelog-path": "CHANGELOG.md"
11
+ }
12
+ },
13
+ "changelog-sections": [
14
+ { "type": "feat", "section": "Features" },
15
+ { "type": "fix", "section": "Bug Fixes" },
16
+ { "type": "perf", "section": "Performance" },
17
+ { "type": "refactor", "section": "Refactoring" },
18
+ { "type": "docs", "section": "Documentation" },
19
+ { "type": "ci", "section": "Continuous Integration", "hidden": true },
20
+ { "type": "chore", "section": "Misc", "hidden": true },
21
+ { "type": "test", "section": "Tests", "hidden": true },
22
+ { "type": "style", "section": "Style", "hidden": true },
23
+ { "type": "build", "section": "Build", "hidden": true }
24
+ ]
25
+ }
@@ -0,0 +1 @@
1
+ {".":"0.1.0"}
@@ -0,0 +1,28 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0 (2026-07-07)
4
+
5
+
6
+ ### Features
7
+
8
+ * added analytical models resource ([b8a939f](https://github.com/peterschwps/SAP-Datasphere-API/commit/b8a939f54c54f058f5896999e904d46f60bf5d44))
9
+ * added async datasphere client ([0c76823](https://github.com/peterschwps/SAP-Datasphere-API/commit/0c76823581056c23b6d3b5583b0db623552e57ad))
10
+ * added configuration and exceptions ([952a883](https://github.com/peterschwps/SAP-Datasphere-API/commit/952a883d42302361cf9696f042e002fe1e1c59d2))
11
+ * added data models ([6bd54ca](https://github.com/peterschwps/SAP-Datasphere-API/commit/6bd54ca6bee10a3116b1b6418f974a520e0e4dbb))
12
+ * added incremental result callbacks to all view batch methods ([cfa3bc7](https://github.com/peterschwps/SAP-Datasphere-API/commit/cfa3bc78235b28820af3ab49d1fe5f8dc244bbcc))
13
+ * added remote tables resource ([c30d832](https://github.com/peterschwps/SAP-Datasphere-API/commit/c30d832754c2ffef77b15ac41bb9b3e7dfe92ca7))
14
+ * added task chains resource ([024e3cd](https://github.com/peterschwps/SAP-Datasphere-API/commit/024e3cdfe25fab2e5a87867ab5584374d43313d1))
15
+ * added token store and oauth authentication ([9fc89b3](https://github.com/peterschwps/SAP-Datasphere-API/commit/9fc89b30deb1662a24938fabb32754d1e642b6ee))
16
+ * added views resource ([0e38058](https://github.com/peterschwps/SAP-Datasphere-API/commit/0e380581fe535ea0d3bb303fe2b2d4d40c7fe598))
17
+ * exported public api ([1a7bb5d](https://github.com/peterschwps/SAP-Datasphere-API/commit/1a7bb5dfbb99bd498ac4cd6bf7bdbee33f42dfeb))
18
+
19
+
20
+ ### Documentation
21
+
22
+ * added readme ([cab9a3d](https://github.com/peterschwps/SAP-Datasphere-API/commit/cab9a3d3f06d2cdad455d6823ea23e707ce29572))
23
+ * updated cli repository link ([9c83f95](https://github.com/peterschwps/SAP-Datasphere-API/commit/9c83f953e07b2e361e42649fd957a6f6367fa893))
24
+
25
+
26
+ ### Continuous Integration
27
+
28
+ * added release-please and pypi release pipeline ([e11b56e](https://github.com/peterschwps/SAP-Datasphere-API/commit/e11b56e1be80db58fbf4edd843cf210be9f2e6f2))
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Peter Schwips
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,144 @@
1
+ Metadata-Version: 2.4
2
+ Name: Datasphere-API
3
+ Version: 0.1.0
4
+ Summary: Unofficial async Python client for the SAP Datasphere automation APIs.
5
+ Project-URL: Homepage, https://github.com/peterschwps/SAP-Datasphere-API
6
+ Project-URL: Repository, https://github.com/peterschwps/SAP-Datasphere-API
7
+ Project-URL: Issues, https://github.com/peterschwps/SAP-Datasphere-API/issues
8
+ Author: Peter Schwips
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: API,Async,Automation,Client,Datasphere,SAP
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: >=3.12
21
+ Requires-Dist: httpx>=0.28.1
22
+ Requires-Dist: platformdirs>=4.4.0
23
+ Requires-Dist: playwright>=1.54.0
24
+ Description-Content-Type: text/markdown
25
+
26
+ # Datasphere-API
27
+
28
+ Unofficial async Python client for the SAP Datasphere automation APIs.
29
+ This library powers the
30
+ [SAP-Datasphere-CLI](https://github.com/peterschwps/SAP-Datasphere-CLI)
31
+ and can be used to build your own automations (e.g. MCP servers or
32
+ scheduled jobs).
33
+
34
+ > [!NOTE]
35
+ > This project is not affiliated with, endorsed by, or supported by SAP.
36
+ > It uses the same internal HTTP endpoints as the SAP Datasphere web UI,
37
+ > which may change without notice.
38
+
39
+ ## Features
40
+
41
+ - **Views**: export view analytics (persistence candidates), search
42
+ views by attribute, persist/unpersist views, create/remove partitions,
43
+ lock/unlock partitions.
44
+ - **Remote Tables**: list tables with statistics information,
45
+ create/update statistics (Record Count / Simple / Histogram), refresh
46
+ statistics.
47
+ - **Task Chains**: run task chains and wait for their completion.
48
+ - **Analytical Models**: export models with all their views (optionally
49
+ per space), measure view persistence runtimes.
50
+ - **OAuth login included**: interactive authorization code flow via a
51
+ real Chrome/Edge window (Playwright) with automatic token refresh and
52
+ a shared token cache.
53
+
54
+ ## Installation
55
+
56
+ ```bash
57
+ uv add datasphere-api
58
+ # or
59
+ pip install datasphere-api
60
+ ```
61
+
62
+ The interactive login drives an installed Chrome or Edge browser via
63
+ Playwright channels — a regular Chrome/Edge installation is required,
64
+ no `playwright install` download is needed.
65
+
66
+ ## Quickstart
67
+
68
+ ```python
69
+ import asyncio
70
+
71
+ from datasphere_api import DatasphereClient, DatasphereConfig
72
+
73
+
74
+ async def main() -> None:
75
+ config = DatasphereConfig(
76
+ base_url="https://example.eu10.hcs.cloud.sap",
77
+ authorization_url=(
78
+ "https://example.authentication.eu10.hana.ondemand.com"
79
+ "/oauth/authorize"
80
+ ),
81
+ token_url=(
82
+ "https://example.authentication.eu10.hana.ondemand.com"
83
+ "/oauth/token"
84
+ ),
85
+ client_id="...",
86
+ client_secret="...",
87
+ )
88
+ client = DatasphereClient(config)
89
+ try:
90
+ await client.login()
91
+ results = await client.task_chains.run(
92
+ chains=[{"entity": "MY_CHAIN", "space": "MY_SPACE"}],
93
+ )
94
+ print(results)
95
+ finally:
96
+ await client.aclose()
97
+
98
+
99
+ asyncio.run(main())
100
+ ```
101
+
102
+ The URLs and credentials can be found in your tenant under
103
+ System > Administration (Tenant Links and App Integration). The OAuth
104
+ client has to be of type "Interactive Usage" with the redirect URI
105
+ `http://localhost:8080`.
106
+
107
+ ## Authentication
108
+
109
+ `client.login()` first tries to refresh cached tokens from the token
110
+ store (`session.json` in the user data directory of `Datasphere`). If no
111
+ tokens are cached or the refresh fails, a browser window opens for the
112
+ interactive login. All consumers of this library share the same token
113
+ cache, so a login in one tool also benefits the others.
114
+
115
+ ## Layered results
116
+
117
+ The library returns data on two levels:
118
+
119
+ - **Curated results** (recommended): high-level operations like
120
+ `views.persist_views()` or `remote_tables.create_statistics()` return
121
+ small, typed result structures (see `datasphere_api.models`). Their
122
+ keys intentionally match the CSV/JSON exports of the CLI.
123
+ - **Raw payloads**: low-level fetchers like `views.get_all_views()` or
124
+ `remote_tables.get_all_tables()` return the parsed API payload, typed
125
+ with broad TypedDicts. For anything not covered, `client.session` is
126
+ the authenticated `httpx.AsyncClient` — you can call any endpoint
127
+ directly.
128
+
129
+ Long-running batch operations accept an `on_result`/`on_update`
130
+ callback that is invoked after every finished item, so consumers can
131
+ save intermediate results during runs that take hours.
132
+
133
+ ## Development
134
+
135
+ ```bash
136
+ uv sync
137
+ uv run pytest
138
+ uv run ruff check .
139
+ uv run pyright
140
+ ```
141
+
142
+ ## License
143
+
144
+ [MIT](LICENSE)
@@ -0,0 +1,119 @@
1
+ # Datasphere-API
2
+
3
+ Unofficial async Python client for the SAP Datasphere automation APIs.
4
+ This library powers the
5
+ [SAP-Datasphere-CLI](https://github.com/peterschwps/SAP-Datasphere-CLI)
6
+ and can be used to build your own automations (e.g. MCP servers or
7
+ scheduled jobs).
8
+
9
+ > [!NOTE]
10
+ > This project is not affiliated with, endorsed by, or supported by SAP.
11
+ > It uses the same internal HTTP endpoints as the SAP Datasphere web UI,
12
+ > which may change without notice.
13
+
14
+ ## Features
15
+
16
+ - **Views**: export view analytics (persistence candidates), search
17
+ views by attribute, persist/unpersist views, create/remove partitions,
18
+ lock/unlock partitions.
19
+ - **Remote Tables**: list tables with statistics information,
20
+ create/update statistics (Record Count / Simple / Histogram), refresh
21
+ statistics.
22
+ - **Task Chains**: run task chains and wait for their completion.
23
+ - **Analytical Models**: export models with all their views (optionally
24
+ per space), measure view persistence runtimes.
25
+ - **OAuth login included**: interactive authorization code flow via a
26
+ real Chrome/Edge window (Playwright) with automatic token refresh and
27
+ a shared token cache.
28
+
29
+ ## Installation
30
+
31
+ ```bash
32
+ uv add datasphere-api
33
+ # or
34
+ pip install datasphere-api
35
+ ```
36
+
37
+ The interactive login drives an installed Chrome or Edge browser via
38
+ Playwright channels — a regular Chrome/Edge installation is required,
39
+ no `playwright install` download is needed.
40
+
41
+ ## Quickstart
42
+
43
+ ```python
44
+ import asyncio
45
+
46
+ from datasphere_api import DatasphereClient, DatasphereConfig
47
+
48
+
49
+ async def main() -> None:
50
+ config = DatasphereConfig(
51
+ base_url="https://example.eu10.hcs.cloud.sap",
52
+ authorization_url=(
53
+ "https://example.authentication.eu10.hana.ondemand.com"
54
+ "/oauth/authorize"
55
+ ),
56
+ token_url=(
57
+ "https://example.authentication.eu10.hana.ondemand.com"
58
+ "/oauth/token"
59
+ ),
60
+ client_id="...",
61
+ client_secret="...",
62
+ )
63
+ client = DatasphereClient(config)
64
+ try:
65
+ await client.login()
66
+ results = await client.task_chains.run(
67
+ chains=[{"entity": "MY_CHAIN", "space": "MY_SPACE"}],
68
+ )
69
+ print(results)
70
+ finally:
71
+ await client.aclose()
72
+
73
+
74
+ asyncio.run(main())
75
+ ```
76
+
77
+ The URLs and credentials can be found in your tenant under
78
+ System > Administration (Tenant Links and App Integration). The OAuth
79
+ client has to be of type "Interactive Usage" with the redirect URI
80
+ `http://localhost:8080`.
81
+
82
+ ## Authentication
83
+
84
+ `client.login()` first tries to refresh cached tokens from the token
85
+ store (`session.json` in the user data directory of `Datasphere`). If no
86
+ tokens are cached or the refresh fails, a browser window opens for the
87
+ interactive login. All consumers of this library share the same token
88
+ cache, so a login in one tool also benefits the others.
89
+
90
+ ## Layered results
91
+
92
+ The library returns data on two levels:
93
+
94
+ - **Curated results** (recommended): high-level operations like
95
+ `views.persist_views()` or `remote_tables.create_statistics()` return
96
+ small, typed result structures (see `datasphere_api.models`). Their
97
+ keys intentionally match the CSV/JSON exports of the CLI.
98
+ - **Raw payloads**: low-level fetchers like `views.get_all_views()` or
99
+ `remote_tables.get_all_tables()` return the parsed API payload, typed
100
+ with broad TypedDicts. For anything not covered, `client.session` is
101
+ the authenticated `httpx.AsyncClient` — you can call any endpoint
102
+ directly.
103
+
104
+ Long-running batch operations accept an `on_result`/`on_update`
105
+ callback that is invoked after every finished item, so consumers can
106
+ save intermediate results during runs that take hours.
107
+
108
+ ## Development
109
+
110
+ ```bash
111
+ uv sync
112
+ uv run pytest
113
+ uv run ruff check .
114
+ uv run pyright
115
+ ```
116
+
117
+ ## License
118
+
119
+ [MIT](LICENSE)
@@ -0,0 +1,71 @@
1
+ [project]
2
+ name = "Datasphere-API"
3
+ version = "0.1.0"
4
+ description = "Unofficial async Python client for the SAP Datasphere automation APIs."
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ license = "MIT"
8
+ license-files = ["LICENSE"]
9
+ authors = [{ name = "Peter Schwips" }]
10
+ keywords = ["SAP", "Datasphere", "API", "Client", "Automation", "Async"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Intended Audience :: Developers",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3.12",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Typing :: Typed",
20
+ ]
21
+ dependencies = [
22
+ "httpx>=0.28.1",
23
+ "platformdirs>=4.4.0",
24
+ "playwright>=1.54.0",
25
+ ]
26
+
27
+ [project.urls]
28
+ Homepage = "https://github.com/peterschwps/SAP-Datasphere-API"
29
+ Repository = "https://github.com/peterschwps/SAP-Datasphere-API"
30
+ Issues = "https://github.com/peterschwps/SAP-Datasphere-API/issues"
31
+
32
+ [build-system]
33
+ requires = ["hatchling"]
34
+ build-backend = "hatchling.build"
35
+
36
+ [tool.ruff]
37
+ line-length = 79
38
+ indent-width = 4
39
+
40
+ [tool.ruff.lint]
41
+ select = [
42
+ "E", # pycodestyle
43
+ "F", # Pyflakes
44
+ "UP", # pyupgrade
45
+ "B", # flake8-bugbear
46
+ "SIM", # flake8-simplify
47
+ "G", # flake8-logging-format
48
+ "I", # isort
49
+ ]
50
+
51
+ [tool.pytest.ini_options]
52
+ addopts = "-ra --strict-markers --strict-config"
53
+ testpaths = ["tests"]
54
+ asyncio_mode = "auto"
55
+
56
+ [tool.coverage.run]
57
+ branch = true
58
+ source = ["src/datasphere_api"]
59
+
60
+ [tool.pyright]
61
+ typeCheckingMode = "basic"
62
+
63
+ [dependency-groups]
64
+ dev = [
65
+ "pyright>=1.1.405",
66
+ "pytest>=9.0.0",
67
+ "pytest-asyncio>=1.3.0",
68
+ "pytest-cov>=7.0.0",
69
+ "respx>=0.22.0",
70
+ "ruff>=0.13.0",
71
+ ]
@@ -0,0 +1,27 @@
1
+ import logging
2
+
3
+ from datasphere_api.auth import TokenStore
4
+ from datasphere_api.client import DatasphereClient
5
+ from datasphere_api.config import Browser, DatasphereConfig
6
+ from datasphere_api.exceptions import (
7
+ AuthenticationFailed,
8
+ DatasphereException,
9
+ InvalidConfiguration,
10
+ MissingCredentials,
11
+ UnexpectedResponse,
12
+ )
13
+
14
+ # Library logger stays silent unless the consumer adds handlers
15
+ logging.getLogger(__name__).addHandler(logging.NullHandler())
16
+
17
+ __all__ = [
18
+ "AuthenticationFailed",
19
+ "Browser",
20
+ "DatasphereClient",
21
+ "DatasphereConfig",
22
+ "DatasphereException",
23
+ "InvalidConfiguration",
24
+ "MissingCredentials",
25
+ "TokenStore",
26
+ "UnexpectedResponse",
27
+ ]