dedalus-sdk 0.0.1__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.
- dedalus_sdk-0.0.1/.gitignore +15 -0
- dedalus_sdk-0.0.1/.release-please-manifest.json +3 -0
- dedalus_sdk-0.0.1/CHANGELOG.md +45 -0
- dedalus_sdk-0.0.1/CONTRIBUTING.md +127 -0
- dedalus_sdk-0.0.1/LICENSE +7 -0
- dedalus_sdk-0.0.1/PKG-INFO +503 -0
- dedalus_sdk-0.0.1/README.md +468 -0
- dedalus_sdk-0.0.1/SECURITY.md +27 -0
- dedalus_sdk-0.0.1/api.md +116 -0
- dedalus_sdk-0.0.1/bin/check-release-environment +17 -0
- dedalus_sdk-0.0.1/bin/publish-pypi +11 -0
- dedalus_sdk-0.0.1/examples/.keep +4 -0
- dedalus_sdk-0.0.1/pyproject.toml +255 -0
- dedalus_sdk-0.0.1/release-please-config.json +69 -0
- dedalus_sdk-0.0.1/requirements-dev.lock +110 -0
- dedalus_sdk-0.0.1/src/dedalus/lib/.keep +4 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/__init__.py +92 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_base_client.py +2149 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_client.py +534 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_compat.py +226 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_constants.py +14 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_exceptions.py +108 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_files.py +123 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_models.py +882 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_qs.py +150 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_resource.py +43 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_response.py +835 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_streaming.py +338 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_types.py +271 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/__init__.py +64 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_compat.py +45 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_datetime_parse.py +136 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_json.py +35 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_logs.py +25 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_proxy.py +65 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_reflection.py +42 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_resources_proxy.py +24 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_streams.py +12 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_sync.py +58 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_transform.py +457 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_typing.py +156 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_utils/_utils.py +421 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/_version.py +4 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/lib/.keep +4 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/pagination.py +50 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/py.typed +0 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/__init__.py +19 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/workspaces/__init__.py +89 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/workspaces/artifacts.py +374 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/workspaces/executions.py +698 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/workspaces/previews.py +490 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/workspaces/ssh.py +484 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/workspaces/terminals.py +502 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/resources/workspaces/workspaces.py +763 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/__init__.py +10 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/lifecycle_status.py +35 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspace.py +24 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspace_create_params.py +17 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspace_list.py +34 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspace_list_params.py +13 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspace_update_params.py +21 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/__init__.py +30 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/artifact.py +30 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/artifact_list.py +14 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/artifact_list_params.py +13 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/artifact_ref.py +11 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution.py +52 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution_create_params.py +24 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution_event.py +31 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution_events.py +14 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution_events_params.py +15 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution_list.py +14 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution_list_params.py +13 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/execution_output.py +23 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/preview.py +35 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/preview_create_params.py +15 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/preview_list.py +14 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/preview_list_params.py +13 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/ssh_connection.py +20 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/ssh_create_params.py +13 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/ssh_host_trust.py +15 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/ssh_list_params.py +13 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/ssh_session.py +32 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/ssh_session_list.py +14 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/terminal.py +37 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/terminal_create_params.py +22 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/terminal_list.py +14 -0
- dedalus_sdk-0.0.1/src/dedalus_sdk/types/workspaces/terminal_list_params.py +13 -0
- dedalus_sdk-0.0.1/tests/__init__.py +1 -0
- dedalus_sdk-0.0.1/tests/api_resources/__init__.py +1 -0
- dedalus_sdk-0.0.1/tests/api_resources/test_workspaces.py +432 -0
- dedalus_sdk-0.0.1/tests/api_resources/workspaces/__init__.py +1 -0
- dedalus_sdk-0.0.1/tests/api_resources/workspaces/test_artifacts.py +311 -0
- dedalus_sdk-0.0.1/tests/api_resources/workspaces/test_executions.py +637 -0
- dedalus_sdk-0.0.1/tests/api_resources/workspaces/test_previews.py +415 -0
- dedalus_sdk-0.0.1/tests/api_resources/workspaces/test_ssh.py +413 -0
- dedalus_sdk-0.0.1/tests/api_resources/workspaces/test_terminals.py +429 -0
- dedalus_sdk-0.0.1/tests/conftest.py +84 -0
- dedalus_sdk-0.0.1/tests/sample_file.txt +1 -0
- dedalus_sdk-0.0.1/tests/test_client.py +2004 -0
- dedalus_sdk-0.0.1/tests/test_deepcopy.py +58 -0
- dedalus_sdk-0.0.1/tests/test_extract_files.py +64 -0
- dedalus_sdk-0.0.1/tests/test_files.py +51 -0
- dedalus_sdk-0.0.1/tests/test_models.py +963 -0
- dedalus_sdk-0.0.1/tests/test_qs.py +78 -0
- dedalus_sdk-0.0.1/tests/test_required_args.py +111 -0
- dedalus_sdk-0.0.1/tests/test_response.py +277 -0
- dedalus_sdk-0.0.1/tests/test_streaming.py +248 -0
- dedalus_sdk-0.0.1/tests/test_transform.py +460 -0
- dedalus_sdk-0.0.1/tests/test_utils/test_datetime_parse.py +110 -0
- dedalus_sdk-0.0.1/tests/test_utils/test_json.py +126 -0
- dedalus_sdk-0.0.1/tests/test_utils/test_proxy.py +34 -0
- dedalus_sdk-0.0.1/tests/test_utils/test_typing.py +73 -0
- dedalus_sdk-0.0.1/tests/utils.py +167 -0
- dedalus_sdk-0.0.1/uv.lock +1829 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.0.1 (2026-03-18)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.0.1...v0.0.1](https://github.com/dedalus-labs/dedalus-python/compare/v0.0.1...v0.0.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **api:** consolidate pagination & disable websockets ([f5c935c](https://github.com/dedalus-labs/dedalus-python/commit/f5c935c4c01861bd455825cde5b3aa0c7ed36765))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **api:** update homebrew tap and code samples ([8efa47d](https://github.com/dedalus-labs/dedalus-python/commit/8efa47d77d66dc5aa692b05fb92131e87100b397))
|
|
15
|
+
|
|
16
|
+
## 0.0.1 (2026-03-18)
|
|
17
|
+
|
|
18
|
+
Full Changelog: [v0.0.1...v0.0.1](https://github.com/dedalus-labs/dedalus-python/compare/v0.0.1...v0.0.1)
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **api:** stable beta ([e6391a9](https://github.com/dedalus-labs/dedalus-python/commit/e6391a959ccc51ad1f9c5072e2190ea7bfb5a94a))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* **api:** update flags ([21bb2b7](https://github.com/dedalus-labs/dedalus-python/commit/21bb2b79a38d89d4cd092ab2d3f6a70800fbc679))
|
|
28
|
+
* **deps:** bump minimum typing-extensions version ([7016283](https://github.com/dedalus-labs/dedalus-python/commit/7016283a4a8b4278321f56b30fec1d5b39bda19e))
|
|
29
|
+
* **pydantic:** do not pass `by_alias` unless set ([113574f](https://github.com/dedalus-labs/dedalus-python/commit/113574f4a1f50ea676188724b48497b5491afb5d))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Chores
|
|
33
|
+
|
|
34
|
+
* **api:** resolving merge conflicts ([706fa9e](https://github.com/dedalus-labs/dedalus-python/commit/706fa9e077164a8e7a4159e5aa536434ac7e6550))
|
|
35
|
+
* **ci:** skip uploading artifacts on stainless-internal branches ([972c929](https://github.com/dedalus-labs/dedalus-python/commit/972c929aef5d5a2bbd8f6b5b0a2ec3d4902dd3b7))
|
|
36
|
+
* configure new SDK language ([15fc048](https://github.com/dedalus-labs/dedalus-python/commit/15fc048d78b703a0a1e3e3b763f6890bdefa2e19))
|
|
37
|
+
* **internal:** tweak CI branches ([c8ce919](https://github.com/dedalus-labs/dedalus-python/commit/c8ce919b2190e19a9b429494b1016490acae315d))
|
|
38
|
+
* update placeholder string ([b8e57a4](https://github.com/dedalus-labs/dedalus-python/commit/b8e57a48d562d50b003121ffe8ecb3bfe9182035))
|
|
39
|
+
* update SDK settings ([01a998a](https://github.com/dedalus-labs/dedalus-python/commit/01a998a38e06160aed0acfb53a6b13388fc64761))
|
|
40
|
+
* update SDK settings ([b7e80bb](https://github.com/dedalus-labs/dedalus-python/commit/b7e80bb8af98797576d31f5b218fdd2bdf417cd7))
|
|
41
|
+
* update SDK settings ([4ceefe7](https://github.com/dedalus-labs/dedalus-python/commit/4ceefe72c5a920b2a83924bfd662cff81c260f42))
|
|
42
|
+
* update SDK settings ([00d1f1a](https://github.com/dedalus-labs/dedalus-python/commit/00d1f1ab5a81bbf4bbe076de7261311f351ee477))
|
|
43
|
+
* update SDK settings ([2240862](https://github.com/dedalus-labs/dedalus-python/commit/22408628cfde349577c7830b4fb2326e91f43444))
|
|
44
|
+
* update SDK settings ([9580045](https://github.com/dedalus-labs/dedalus-python/commit/958004593a4a1369dd7983af2591ac5e0ca655af))
|
|
45
|
+
* update SDK settings ([f9cd760](https://github.com/dedalus-labs/dedalus-python/commit/f9cd760421fd8d06c920e23c12e9c289dab2d81a))
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
## Setting up the environment
|
|
2
|
+
|
|
3
|
+
### With `uv`
|
|
4
|
+
|
|
5
|
+
We use [uv](https://docs.astral.sh/uv/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
$ ./scripts/bootstrap
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Or [install uv manually](https://docs.astral.sh/uv/getting-started/installation/) and run:
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
$ uv sync --all-extras
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You can then run scripts using `uv run python script.py` or by manually activating the virtual environment:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
# manually activate - https://docs.python.org/3/library/venv.html#how-venvs-work
|
|
21
|
+
$ source .venv/bin/activate
|
|
22
|
+
|
|
23
|
+
# now you can omit the `uv run` prefix
|
|
24
|
+
$ python script.py
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Without `uv`
|
|
28
|
+
|
|
29
|
+
Alternatively if you don't want to install `uv`, you can stick with the standard `pip` setup by ensuring you have the Python version specified in `.python-version`, create a virtual environment however you desire and then install dependencies using this command:
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
$ pip install -r requirements-dev.lock
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Modifying/Adding code
|
|
36
|
+
|
|
37
|
+
Most of the SDK is generated code. Modifications to code will be persisted between generations, but may
|
|
38
|
+
result in merge conflicts between manual patches and changes from the generator. The generator will never
|
|
39
|
+
modify the contents of the `src/dedalus_sdk/lib/` and `examples/` directories.
|
|
40
|
+
|
|
41
|
+
## Adding and running examples
|
|
42
|
+
|
|
43
|
+
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
|
|
44
|
+
|
|
45
|
+
```py
|
|
46
|
+
# add an example to examples/<your-example>.py
|
|
47
|
+
|
|
48
|
+
#!/usr/bin/env -S uv run python
|
|
49
|
+
…
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```sh
|
|
53
|
+
$ chmod +x examples/<your-example>.py
|
|
54
|
+
# run the example against your api
|
|
55
|
+
$ ./examples/<your-example>.py
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Using the repository from source
|
|
59
|
+
|
|
60
|
+
If you’d like to use the repository from source, you can either install from git or link to a cloned repository:
|
|
61
|
+
|
|
62
|
+
To install via git:
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
$ pip install git+ssh://git@github.com/dedalus-labs/dedalus-python.git
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Alternatively, you can build from source and install the wheel file:
|
|
69
|
+
|
|
70
|
+
Building this package will create two files in the `dist/` directory, a `.tar.gz` containing the source files and a `.whl` that can be used to install the package efficiently.
|
|
71
|
+
|
|
72
|
+
To create a distributable version of the library, all you have to do is run this command:
|
|
73
|
+
|
|
74
|
+
```sh
|
|
75
|
+
$ uv build
|
|
76
|
+
# or
|
|
77
|
+
$ python -m build
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Then to install:
|
|
81
|
+
|
|
82
|
+
```sh
|
|
83
|
+
$ pip install ./path-to-wheel-file.whl
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Running tests
|
|
87
|
+
|
|
88
|
+
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
$ ./scripts/mock
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
$ ./scripts/test
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Linting and formatting
|
|
99
|
+
|
|
100
|
+
This repository uses [ruff](https://github.com/astral-sh/ruff) and
|
|
101
|
+
[black](https://github.com/psf/black) to format the code in the repository.
|
|
102
|
+
|
|
103
|
+
To lint:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
$ ./scripts/lint
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
To format and fix all ruff issues automatically:
|
|
110
|
+
|
|
111
|
+
```sh
|
|
112
|
+
$ ./scripts/format
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
## Publishing and releases
|
|
116
|
+
|
|
117
|
+
Changes made to this repository via the automated release PR pipeline should publish to PyPI automatically. If
|
|
118
|
+
the changes aren't made through the automated pipeline, you may want to make releases manually.
|
|
119
|
+
|
|
120
|
+
### Publish with a GitHub workflow
|
|
121
|
+
|
|
122
|
+
You can release to package managers by using [the `Publish PyPI` GitHub action](https://www.github.com/dedalus-labs/dedalus-python/actions/workflows/publish-pypi.yml). This requires a setup organization or repository secret to be set up.
|
|
123
|
+
|
|
124
|
+
### Publish manually
|
|
125
|
+
|
|
126
|
+
If you need to manually release a package, you can run the `bin/publish-pypi` script with a `PYPI_TOKEN` set on
|
|
127
|
+
the environment.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright 2026 Dedalus
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|