digitalai-release-api-client 26.3.0b1__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 (67) hide show
  1. digitalai_release_api_client-26.3.0b1/.gitignore +218 -0
  2. digitalai_release_api_client-26.3.0b1/LICENSE +21 -0
  3. digitalai_release_api_client-26.3.0b1/PKG-INFO +137 -0
  4. digitalai_release_api_client-26.3.0b1/README.md +112 -0
  5. digitalai_release_api_client-26.3.0b1/pyproject.toml +66 -0
  6. digitalai_release_api_client-26.3.0b1/src/com/__init__.py +0 -0
  7. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/__init__.py +0 -0
  8. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/__init__.py +0 -0
  9. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/__init__.py +0 -0
  10. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/__init__.py +63 -0
  11. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/activity_logs_api.py +27 -0
  12. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/api_base_task.py +296 -0
  13. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/application_api.py +108 -0
  14. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/archive_api.py +56 -0
  15. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/attachment_api.py +80 -0
  16. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/category_api.py +107 -0
  17. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/configuration_api.py +226 -0
  18. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/delivery_api.py +289 -0
  19. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/delivery_pattern_api.py +328 -0
  20. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/dsl_api.py +63 -0
  21. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/environment_api.py +166 -0
  22. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/environment_label_api.py +117 -0
  23. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/environment_reservation_api.py +208 -0
  24. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/environment_stage_api.py +117 -0
  25. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/folder_api.py +634 -0
  26. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/folder_versioning_api.py +344 -0
  27. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/permissions_api.py +25 -0
  28. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/phase_api.py +185 -0
  29. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/release_api.py +493 -0
  30. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/report_api.py +83 -0
  31. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/risk_api.py +187 -0
  32. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/roles_api.py +138 -0
  33. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/search_api.py +136 -0
  34. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/settings_api.py +26 -0
  35. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/task_api.py +482 -0
  36. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/task_reporting_api.py +77 -0
  37. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/team_api.py +194 -0
  38. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/template_api.py +383 -0
  39. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/triggers_api.py +173 -0
  40. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/user_api.py +157 -0
  41. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/api/v1/variable_api.py +137 -0
  42. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/__init__.py +150 -0
  43. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/activity_log.py +16 -0
  44. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/attachment.py +15 -0
  45. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/base.py +43 -0
  46. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/category.py +26 -0
  47. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/configuration.py +24 -0
  48. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/delivery.py +86 -0
  49. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/environment.py +106 -0
  50. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/folder.py +13 -0
  51. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/forms.py +79 -0
  52. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/gate.py +21 -0
  53. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/phase.py +26 -0
  54. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/release.py +67 -0
  55. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/reporting.py +49 -0
  56. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/risk.py +52 -0
  57. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/role.py +21 -0
  58. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/task.py +43 -0
  59. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/team.py +22 -0
  60. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/trigger.py +21 -0
  61. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/user.py +18 -0
  62. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/variable.py +20 -0
  63. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/domain/versioning.py +87 -0
  64. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/scripting/__init__.py +18 -0
  65. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/scripting/dictionary.py +85 -0
  66. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/scripting/external_property.py +37 -0
  67. digitalai_release_api_client-26.3.0b1/src/com/xebialabs/xlrelease/scripting/logger.py +71 -0
@@ -0,0 +1,218 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ # Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ # uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ # poetry.lock
109
+ # poetry.toml
110
+
111
+ # pdm
112
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
113
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
114
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
115
+ # pdm.lock
116
+ # pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # pixi
121
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
122
+ # pixi.lock
123
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
124
+ # in the .venv directory. It is recommended not to include this directory in version control.
125
+ .pixi
126
+
127
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
128
+ __pypackages__/
129
+
130
+ # Celery stuff
131
+ celerybeat-schedule
132
+ celerybeat.pid
133
+
134
+ # Redis
135
+ *.rdb
136
+ *.aof
137
+ *.pid
138
+
139
+ # RabbitMQ
140
+ mnesia/
141
+ rabbitmq/
142
+ rabbitmq-data/
143
+
144
+ # ActiveMQ
145
+ activemq-data/
146
+
147
+ # SageMath parsed files
148
+ *.sage.py
149
+
150
+ # Environments
151
+ .env
152
+ .envrc
153
+ .venv
154
+ env/
155
+ venv/
156
+ ENV/
157
+ env.bak/
158
+ venv.bak/
159
+
160
+ # Spyder project settings
161
+ .spyderproject
162
+ .spyproject
163
+
164
+ # Rope project settings
165
+ .ropeproject
166
+
167
+ # mkdocs documentation
168
+ /site
169
+
170
+ # mypy
171
+ .mypy_cache/
172
+ .dmypy.json
173
+ dmypy.json
174
+
175
+ # Pyre type checker
176
+ .pyre/
177
+
178
+ # pytype static type analyzer
179
+ .pytype/
180
+
181
+ # Cython debug symbols
182
+ cython_debug/
183
+
184
+ # PyCharm
185
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
186
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
187
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
188
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
189
+ # .idea/
190
+
191
+ # Abstra
192
+ # Abstra is an AI-powered process automation framework.
193
+ # Ignore directories containing user credentials, local state, and settings.
194
+ # Learn more at https://abstra.io/docs
195
+ .abstra/
196
+
197
+ # Visual Studio Code
198
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
199
+ # that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
200
+ # and can be added to the global gitignore or merged into this file. However, if you prefer,
201
+ # you could uncomment the following to ignore the entire vscode folder
202
+ # .vscode/
203
+ # Temporary file for partial code execution
204
+ tempCodeRunnerFile.py
205
+
206
+ # Ruff stuff:
207
+ .ruff_cache/
208
+
209
+ # PyPI configuration file
210
+ .pypirc
211
+
212
+ # Marimo
213
+ marimo/_static/
214
+ marimo/_lsp/
215
+ __marimo__/
216
+
217
+ # Streamlit
218
+ .streamlit/secrets.toml
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Digital.ai
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,137 @@
1
+ Metadata-Version: 2.4
2
+ Name: digitalai-release-api-client
3
+ Version: 26.3.0b1
4
+ Summary: Digital.ai Release API Client
5
+ Project-URL: Homepage, https://digital.ai/
6
+ Project-URL: Documentation, https://docs.digital.ai/
7
+ Author-email: "Digital.ai" <pypi-devops@digital.ai>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Requires-Python: >=3.10
20
+ Requires-Dist: digitalai-release-sdk==26.3.0b1
21
+ Requires-Dist: pydantic>=2.0.0
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
24
+ Description-Content-Type: text/markdown
25
+
26
+ # digitalai-release-api-client
27
+
28
+ The **Digital.ai Release API Client** (`digitalai-release-api-client`) is a Python client for the **Digital.ai Release** public API. It is the Python equivalent of the public
29
+ [Digital.ai Release Jython API](https://apidocs.digital.ai/jython-docs/#!/xl-release/26.1.x) —
30
+ the same `com.xebialabs.xlrelease` packages and **camelCase** method names, so existing Release automation scripts port to Python with minimal changes.
31
+
32
+ ## Features
33
+ - Call the full Digital.ai Release v1 API from Python using familiar **camelCase** method names.
34
+ - Connect with **username/password** or **personal access token** authentication.
35
+ - Use the client standalone, or get a pre-configured client inside a Release container task — no URL or credentials needed.
36
+ - Subclass `ApiBaseTask` for lazily created, cached API objects (`releaseApi`, `phaseApi`, `taskApi`, ...).
37
+ - Typed request/response models powered by `pydantic`.
38
+
39
+ ## Installation
40
+
41
+ ```sh
42
+ pip install digitalai-release-api-client
43
+ ```
44
+
45
+ > **Note:** This client depends on [`digitalai-release-sdk`](https://pypi.org/project/digitalai-release-sdk/), which is installed automatically — no separate install required.
46
+
47
+ ## Getting Started
48
+
49
+ Build a `ReleaseAPIClient`, then wrap it with the API class you need.
50
+
51
+ ### Option 1 — username / password (HTTP basic auth)
52
+
53
+ ```python
54
+ from digitalai.release.release_api_client import ReleaseAPIClient
55
+ from com.xebialabs.xlrelease.api.v1.release_api import ReleaseApi
56
+
57
+ client = ReleaseAPIClient("http://localhost:5516", "admin", "admin")
58
+ release = ReleaseApi(client).getRelease("Applications/Releasexxxxxxxx")
59
+ print(release.id, release.title, release.status)
60
+ ```
61
+
62
+ ### Option 2 — personal access token
63
+
64
+ ```python
65
+ from digitalai.release.release_api_client import ReleaseAPIClient
66
+ from com.xebialabs.xlrelease.api.v1.release_api import ReleaseApi
67
+
68
+ client = ReleaseAPIClient(
69
+ "http://localhost:5516",
70
+ personal_access_token="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
71
+ )
72
+ release = ReleaseApi(client).getRelease("Applications/Releasexxxxxxxx")
73
+ print(release.id, release.title, release.status)
74
+ ```
75
+
76
+ ### Option 3 — inside a Release container task
77
+
78
+ When your code runs as a custom task (a subclass of `BaseTask` from the
79
+ integration SDK), call `self.get_release_api_client()` to get a client already
80
+ configured from the task's "Run as user" context — no URL or credentials needed:
81
+
82
+ ```python
83
+ from digitalai.release.integration.base_task import BaseTask
84
+ from com.xebialabs.xlrelease.api.v1.release_api import ReleaseApi
85
+
86
+
87
+ class MyTask(BaseTask):
88
+ def execute(self) -> None:
89
+ client = self.get_release_api_client()
90
+ release = ReleaseApi(client).getRelease("Applications/Releasexxxxxxxx")
91
+ print(release.id, release.title, release.status)
92
+ ```
93
+
94
+ ### Option 4 — subclass `ApiBaseTask` instead of `BaseTask`
95
+
96
+ To skip the boilerplate, subclass `ApiBaseTask`. It exposes every v1 API as a
97
+ lazily created property (`releaseApi`, `phaseApi`, `taskApi`, ... — one per API
98
+ class), all sharing a single client built from the task's "Run as user" context.
99
+ The client and each API object are created on first access and cached for the
100
+ life of the task (call `self.reset_api_clients()` to force a rebuild):
101
+
102
+ ```python
103
+ from com.xebialabs.xlrelease.api.v1.api_base_task import ApiBaseTask
104
+
105
+
106
+ class MyTask(ApiBaseTask):
107
+ def execute(self) -> None:
108
+ release = self.releaseApi.getRelease("Applications/Releasexxxxxxxx")
109
+ print(release.id, release.title, release.status)
110
+ ```
111
+
112
+ ## Changelog
113
+
114
+ ### Version 26.3.0 (Beta)
115
+
116
+ #### 🚀 Features
117
+
118
+ - Initial release of the Python API client for Digital.ai Release.
119
+ - Full v1 API coverage with **camelCase** method names matching the Jython API.
120
+ - `ApiBaseTask` base class exposing lazily created, cached API objects.
121
+
122
+ ---
123
+
124
+ ## 🔗 Related Resources
125
+
126
+ - 🧪 **Python Template Project**: [release-integration-template-python](https://github.com/digital-ai/release-integration-template-python)
127
+ A starting point for building custom integrations using Digital.ai Release and Python.
128
+
129
+ - 📘 **Official Documentation**: [Digital.ai Release Python SDK Docs](https://docs.digital.ai/release/docs/category/python-sdk)
130
+ Comprehensive guide to using the Python SDK and building custom tasks.
131
+
132
+ - 📦 **Digital.ai Release Python SDK**: [digitalai-release-sdk on PyPI](https://pypi.org/project/digitalai-release-sdk/)
133
+ The official SDK package for integrating with Digital.ai Release.
134
+
135
+ ## License
136
+
137
+ Licensed under the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,112 @@
1
+ # digitalai-release-api-client
2
+
3
+ The **Digital.ai Release API Client** (`digitalai-release-api-client`) is a Python client for the **Digital.ai Release** public API. It is the Python equivalent of the public
4
+ [Digital.ai Release Jython API](https://apidocs.digital.ai/jython-docs/#!/xl-release/26.1.x) —
5
+ the same `com.xebialabs.xlrelease` packages and **camelCase** method names, so existing Release automation scripts port to Python with minimal changes.
6
+
7
+ ## Features
8
+ - Call the full Digital.ai Release v1 API from Python using familiar **camelCase** method names.
9
+ - Connect with **username/password** or **personal access token** authentication.
10
+ - Use the client standalone, or get a pre-configured client inside a Release container task — no URL or credentials needed.
11
+ - Subclass `ApiBaseTask` for lazily created, cached API objects (`releaseApi`, `phaseApi`, `taskApi`, ...).
12
+ - Typed request/response models powered by `pydantic`.
13
+
14
+ ## Installation
15
+
16
+ ```sh
17
+ pip install digitalai-release-api-client
18
+ ```
19
+
20
+ > **Note:** This client depends on [`digitalai-release-sdk`](https://pypi.org/project/digitalai-release-sdk/), which is installed automatically — no separate install required.
21
+
22
+ ## Getting Started
23
+
24
+ Build a `ReleaseAPIClient`, then wrap it with the API class you need.
25
+
26
+ ### Option 1 — username / password (HTTP basic auth)
27
+
28
+ ```python
29
+ from digitalai.release.release_api_client import ReleaseAPIClient
30
+ from com.xebialabs.xlrelease.api.v1.release_api import ReleaseApi
31
+
32
+ client = ReleaseAPIClient("http://localhost:5516", "admin", "admin")
33
+ release = ReleaseApi(client).getRelease("Applications/Releasexxxxxxxx")
34
+ print(release.id, release.title, release.status)
35
+ ```
36
+
37
+ ### Option 2 — personal access token
38
+
39
+ ```python
40
+ from digitalai.release.release_api_client import ReleaseAPIClient
41
+ from com.xebialabs.xlrelease.api.v1.release_api import ReleaseApi
42
+
43
+ client = ReleaseAPIClient(
44
+ "http://localhost:5516",
45
+ personal_access_token="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
46
+ )
47
+ release = ReleaseApi(client).getRelease("Applications/Releasexxxxxxxx")
48
+ print(release.id, release.title, release.status)
49
+ ```
50
+
51
+ ### Option 3 — inside a Release container task
52
+
53
+ When your code runs as a custom task (a subclass of `BaseTask` from the
54
+ integration SDK), call `self.get_release_api_client()` to get a client already
55
+ configured from the task's "Run as user" context — no URL or credentials needed:
56
+
57
+ ```python
58
+ from digitalai.release.integration.base_task import BaseTask
59
+ from com.xebialabs.xlrelease.api.v1.release_api import ReleaseApi
60
+
61
+
62
+ class MyTask(BaseTask):
63
+ def execute(self) -> None:
64
+ client = self.get_release_api_client()
65
+ release = ReleaseApi(client).getRelease("Applications/Releasexxxxxxxx")
66
+ print(release.id, release.title, release.status)
67
+ ```
68
+
69
+ ### Option 4 — subclass `ApiBaseTask` instead of `BaseTask`
70
+
71
+ To skip the boilerplate, subclass `ApiBaseTask`. It exposes every v1 API as a
72
+ lazily created property (`releaseApi`, `phaseApi`, `taskApi`, ... — one per API
73
+ class), all sharing a single client built from the task's "Run as user" context.
74
+ The client and each API object are created on first access and cached for the
75
+ life of the task (call `self.reset_api_clients()` to force a rebuild):
76
+
77
+ ```python
78
+ from com.xebialabs.xlrelease.api.v1.api_base_task import ApiBaseTask
79
+
80
+
81
+ class MyTask(ApiBaseTask):
82
+ def execute(self) -> None:
83
+ release = self.releaseApi.getRelease("Applications/Releasexxxxxxxx")
84
+ print(release.id, release.title, release.status)
85
+ ```
86
+
87
+ ## Changelog
88
+
89
+ ### Version 26.3.0 (Beta)
90
+
91
+ #### 🚀 Features
92
+
93
+ - Initial release of the Python API client for Digital.ai Release.
94
+ - Full v1 API coverage with **camelCase** method names matching the Jython API.
95
+ - `ApiBaseTask` base class exposing lazily created, cached API objects.
96
+
97
+ ---
98
+
99
+ ## 🔗 Related Resources
100
+
101
+ - 🧪 **Python Template Project**: [release-integration-template-python](https://github.com/digital-ai/release-integration-template-python)
102
+ A starting point for building custom integrations using Digital.ai Release and Python.
103
+
104
+ - 📘 **Official Documentation**: [Digital.ai Release Python SDK Docs](https://docs.digital.ai/release/docs/category/python-sdk)
105
+ Comprehensive guide to using the Python SDK and building custom tasks.
106
+
107
+ - 📦 **Digital.ai Release Python SDK**: [digitalai-release-sdk on PyPI](https://pypi.org/project/digitalai-release-sdk/)
108
+ The official SDK package for integrating with Digital.ai Release.
109
+
110
+ ## License
111
+
112
+ Licensed under the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,66 @@
1
+ [project]
2
+ name = "digitalai-release-api-client"
3
+ version = "26.3.0b1"
4
+ description = "Digital.ai Release API Client"
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICENSE"]
8
+ authors = [{ name = "Digital.ai", email = "pypi-devops@digital.ai" }]
9
+ requires-python = ">=3.10"
10
+ classifiers = [
11
+ "Development Status :: 4 - Beta",
12
+ "Intended Audience :: Developers",
13
+ "Topic :: Software Development :: Libraries",
14
+ "Programming Language :: Python :: 3",
15
+ "Programming Language :: Python :: 3.10",
16
+ "Programming Language :: Python :: 3.11",
17
+ "Programming Language :: Python :: 3.12",
18
+ "Programming Language :: Python :: 3.13",
19
+ "Operating System :: OS Independent"
20
+ ]
21
+ dependencies = [
22
+ "pydantic>=2.0.0",
23
+ "digitalai-release-sdk==26.3.0b1",
24
+ ]
25
+
26
+ [project.optional-dependencies]
27
+ dev = [
28
+ "pytest>=8.0.0",
29
+ ]
30
+
31
+ [project.urls]
32
+ Homepage = "https://digital.ai/"
33
+ Documentation = "https://docs.digital.ai/"
34
+
35
+ [build-system]
36
+ requires = ["hatchling"]
37
+ build-backend = "hatchling.build"
38
+
39
+ # Files never shipped in any build artifact
40
+ [tool.hatch.build]
41
+ exclude = [
42
+ "**/__pycache__",
43
+ "**/*.py[cod]",
44
+ ".coverage",
45
+ ".mypy_cache",
46
+ ".pytest_cache",
47
+ ".ruff_cache",
48
+ "tests",
49
+ "docs",
50
+ "DEVELOPMENT.md",
51
+ ]
52
+
53
+ # Wheel ships only the com.xebialabs.xlrelease package tree
54
+ [tool.hatch.build.targets.wheel]
55
+ packages = ["src/com"]
56
+
57
+ # Source distribution: package code + project metadata only (no tests)
58
+ [tool.hatch.build.targets.sdist]
59
+ include = [
60
+ "/src",
61
+ "/README.md",
62
+ "/pyproject.toml",
63
+ ]
64
+
65
+ [tool.pytest.ini_options]
66
+ testpaths = ["tests"]
@@ -0,0 +1,63 @@
1
+ from com.xebialabs.xlrelease.api.v1.activity_logs_api import ActivityLogsApi
2
+ from com.xebialabs.xlrelease.api.v1.application_api import ApplicationApi
3
+ from com.xebialabs.xlrelease.api.v1.archive_api import ArchiveApi
4
+ from com.xebialabs.xlrelease.api.v1.attachment_api import AttachmentApi
5
+ from com.xebialabs.xlrelease.api.v1.category_api import CategoryApi
6
+ from com.xebialabs.xlrelease.api.v1.configuration_api import ConfigurationApi
7
+ from com.xebialabs.xlrelease.api.v1.delivery_api import DeliveryApi
8
+ from com.xebialabs.xlrelease.api.v1.delivery_pattern_api import DeliveryPatternApi
9
+ from com.xebialabs.xlrelease.api.v1.dsl_api import DslApi
10
+ from com.xebialabs.xlrelease.api.v1.environment_api import EnvironmentApi
11
+ from com.xebialabs.xlrelease.api.v1.environment_label_api import EnvironmentLabelApi
12
+ from com.xebialabs.xlrelease.api.v1.environment_reservation_api import (
13
+ EnvironmentReservationApi,
14
+ )
15
+ from com.xebialabs.xlrelease.api.v1.environment_stage_api import EnvironmentStageApi
16
+ from com.xebialabs.xlrelease.api.v1.folder_api import FolderApi
17
+ from com.xebialabs.xlrelease.api.v1.folder_versioning_api import FolderVersioningApi
18
+ from com.xebialabs.xlrelease.api.v1.permissions_api import PermissionsApi
19
+ from com.xebialabs.xlrelease.api.v1.phase_api import PhaseApi
20
+ from com.xebialabs.xlrelease.api.v1.release_api import ReleaseApi
21
+ from com.xebialabs.xlrelease.api.v1.report_api import ReportApi
22
+ from com.xebialabs.xlrelease.api.v1.risk_api import RiskApi
23
+ from com.xebialabs.xlrelease.api.v1.roles_api import RolesApi
24
+ from com.xebialabs.xlrelease.api.v1.search_api import SearchApi
25
+ from com.xebialabs.xlrelease.api.v1.task_api import TaskApi
26
+ from com.xebialabs.xlrelease.api.v1.task_reporting_api import TaskReportingApi
27
+ from com.xebialabs.xlrelease.api.v1.team_api import TeamApi
28
+ from com.xebialabs.xlrelease.api.v1.template_api import TemplateApi
29
+ from com.xebialabs.xlrelease.api.v1.triggers_api import TriggersApi
30
+ from com.xebialabs.xlrelease.api.v1.user_api import UserApi
31
+ from com.xebialabs.xlrelease.api.v1.variable_api import VariableApi
32
+
33
+ __all__ = [
34
+ "ActivityLogsApi",
35
+ "ApplicationApi",
36
+ "ArchiveApi",
37
+ "AttachmentApi",
38
+ "CategoryApi",
39
+ "ConfigurationApi",
40
+ "DeliveryApi",
41
+ "DeliveryPatternApi",
42
+ "DslApi",
43
+ "EnvironmentApi",
44
+ "EnvironmentLabelApi",
45
+ "EnvironmentReservationApi",
46
+ "EnvironmentStageApi",
47
+ "FolderApi",
48
+ "FolderVersioningApi",
49
+ "PermissionsApi",
50
+ "PhaseApi",
51
+ "ReleaseApi",
52
+ "ReportApi",
53
+ "RiskApi",
54
+ "RolesApi",
55
+ "SearchApi",
56
+ "TaskApi",
57
+ "TaskReportingApi",
58
+ "TeamApi",
59
+ "TemplateApi",
60
+ "TriggersApi",
61
+ "UserApi",
62
+ "VariableApi",
63
+ ]
@@ -0,0 +1,27 @@
1
+ from __future__ import annotations
2
+
3
+ from digitalai.release.release_api_client import ReleaseAPIClient
4
+
5
+ from com.xebialabs.xlrelease.domain.activity_log import ActivityLogEntry
6
+
7
+
8
+ class ActivityLogsApi:
9
+ """Operations on activity logs."""
10
+
11
+ def __init__(self, api: ReleaseAPIClient):
12
+ """
13
+ Initializes the ActivityLogsApi.
14
+
15
+ :param api: an instance of ReleaseAPIClient used to make HTTP requests.
16
+ """
17
+ self.api = api
18
+
19
+ def getActivityLogs(self, containerId: str) -> list[ActivityLogEntry]:
20
+ """
21
+ Gets activity logs for a container (Release, Task, Delivery, or Trigger).
22
+
23
+ :param containerId: the container identifier.
24
+ :return: a list of activity log entries.
25
+ """
26
+ response = self.api.get(f"/api/v1/activities/{containerId}")
27
+ return ActivityLogEntry.from_response_to_list(response)