veed 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.
- veed-0.1.0/.gitignore +6 -0
- veed-0.1.0/LICENSE +21 -0
- veed-0.1.0/PKG-INFO +94 -0
- veed-0.1.0/README.md +81 -0
- veed-0.1.0/pyproject.toml +30 -0
- veed-0.1.0/src/veed/__init__.py +92 -0
- veed-0.1.0/src/veed/_errors.py +139 -0
- veed-0.1.0/src/veed/_transport.py +258 -0
- veed-0.1.0/src/veed/_types.py +37 -0
- veed-0.1.0/src/veed/_version.py +3 -0
- veed-0.1.0/src/veed/client.py +119 -0
- veed-0.1.0/src/veed/py.typed +0 -0
- veed-0.1.0/src/veed/resources/__init__.py +12 -0
- veed-0.1.0/src/veed/resources/cleanAudio.py +258 -0
- veed-0.1.0/src/veed/resources/cleanAudioVideo.py +228 -0
- veed-0.1.0/src/veed/resources/dubbing.py +239 -0
- veed-0.1.0/src/veed/resources/dubbingPro.py +212 -0
- veed-0.1.0/src/veed/resources/fabric.py +242 -0
- veed-0.1.0/src/veed/resources/lipsync20.py +231 -0
- veed-0.1.0/src/veed/resources/videoBackgroundRemoval.py +250 -0
- veed-0.1.0/src/veed/resources/videoBackgroundRemovalFast.py +215 -0
- veed-0.1.0/src/veed/resources/videoBackgroundRemovalGreenScreen.py +207 -0
- veed-0.1.0/tests/test_client.py +213 -0
veed-0.1.0/.gitignore
ADDED
veed-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Veed Limited
|
|
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.
|
veed-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: veed
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Official Python SDK for the VEED API
|
|
5
|
+
Project-URL: Homepage, https://veed.io
|
|
6
|
+
Project-URL: Repository, https://github.com/veedstudio/veed-sdk-python
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Requires-Dist: httpx<1,>=0.27
|
|
11
|
+
Requires-Dist: pydantic<3,>=2.0
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
|
14
|
+
# veed
|
|
15
|
+
|
|
16
|
+
Official Python SDK for the [VEED API](https://api.veed.io) — programmatic access to VEED's AI video models.
|
|
17
|
+
|
|
18
|
+
> Generated from VEED's OpenAPI spec. Do not edit by hand — changes are overwritten on the next release.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install veed
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import veed
|
|
30
|
+
|
|
31
|
+
client = veed.Veed() # reads VEED_API_KEY
|
|
32
|
+
|
|
33
|
+
# One-shot: submit and wait for the finished video.
|
|
34
|
+
job = client.fabric.generate(
|
|
35
|
+
image_url="https://example.com/face.png",
|
|
36
|
+
audio_url="https://example.com/speech.mp3",
|
|
37
|
+
resolution="720p",
|
|
38
|
+
)
|
|
39
|
+
print(job.result.video.url)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Or keep control of the lifecycle:
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
job = client.lipsync20.submit(
|
|
46
|
+
video_url="https://example.com/source.mp4",
|
|
47
|
+
audio_url="https://example.com/dub.mp3",
|
|
48
|
+
)
|
|
49
|
+
# ... persist job.job_id, come back later ...
|
|
50
|
+
job = client.lipsync20.wait(job.job_id, poll_interval=5.0, timeout=1800.0)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Async
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
async with veed.AsyncVeed() as client:
|
|
57
|
+
job = await client.fabric.generate(
|
|
58
|
+
image_url="https://example.com/face.png",
|
|
59
|
+
audio_url="https://example.com/speech.mp3",
|
|
60
|
+
resolution="720p",
|
|
61
|
+
)
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Errors
|
|
65
|
+
|
|
66
|
+
HTTP-layer rejections raise subclasses of `veed.APIError` (with `.status_code`, `.code`,
|
|
67
|
+
`.request_id`). Accepted jobs that fail during rendering raise `veed.JobFailedError` from
|
|
68
|
+
`wait`/`generate`, with the model-specific failure code:
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
try:
|
|
72
|
+
job = client.fabric.generate(...)
|
|
73
|
+
except veed.JobFailedError as e:
|
|
74
|
+
if e.code == veed.FabricJobErrorCode.CONTENT_MODERATION:
|
|
75
|
+
... # handle moderation rejection
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Retries (429/5xx, honoring `Retry-After`) are built in; submits are safe to retry because a
|
|
79
|
+
rejected submit never creates a job.
|
|
80
|
+
|
|
81
|
+
## Development
|
|
82
|
+
|
|
83
|
+
This SDK is generated, so fixes belong upstream rather than here — but to reproduce something
|
|
84
|
+
locally you need only [uv](https://docs.astral.sh/uv/), which fetches the interpreter pinned in
|
|
85
|
+
`.python-version` for you:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
uv sync
|
|
89
|
+
uv run python -m unittest discover -s tests
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## License
|
|
93
|
+
|
|
94
|
+
MIT — see [LICENSE](LICENSE).
|
veed-0.1.0/README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# veed
|
|
2
|
+
|
|
3
|
+
Official Python SDK for the [VEED API](https://api.veed.io) — programmatic access to VEED's AI video models.
|
|
4
|
+
|
|
5
|
+
> Generated from VEED's OpenAPI spec. Do not edit by hand — changes are overwritten on the next release.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install veed
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```python
|
|
16
|
+
import veed
|
|
17
|
+
|
|
18
|
+
client = veed.Veed() # reads VEED_API_KEY
|
|
19
|
+
|
|
20
|
+
# One-shot: submit and wait for the finished video.
|
|
21
|
+
job = client.fabric.generate(
|
|
22
|
+
image_url="https://example.com/face.png",
|
|
23
|
+
audio_url="https://example.com/speech.mp3",
|
|
24
|
+
resolution="720p",
|
|
25
|
+
)
|
|
26
|
+
print(job.result.video.url)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Or keep control of the lifecycle:
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
job = client.lipsync20.submit(
|
|
33
|
+
video_url="https://example.com/source.mp4",
|
|
34
|
+
audio_url="https://example.com/dub.mp3",
|
|
35
|
+
)
|
|
36
|
+
# ... persist job.job_id, come back later ...
|
|
37
|
+
job = client.lipsync20.wait(job.job_id, poll_interval=5.0, timeout=1800.0)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Async
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
async with veed.AsyncVeed() as client:
|
|
44
|
+
job = await client.fabric.generate(
|
|
45
|
+
image_url="https://example.com/face.png",
|
|
46
|
+
audio_url="https://example.com/speech.mp3",
|
|
47
|
+
resolution="720p",
|
|
48
|
+
)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Errors
|
|
52
|
+
|
|
53
|
+
HTTP-layer rejections raise subclasses of `veed.APIError` (with `.status_code`, `.code`,
|
|
54
|
+
`.request_id`). Accepted jobs that fail during rendering raise `veed.JobFailedError` from
|
|
55
|
+
`wait`/`generate`, with the model-specific failure code:
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
try:
|
|
59
|
+
job = client.fabric.generate(...)
|
|
60
|
+
except veed.JobFailedError as e:
|
|
61
|
+
if e.code == veed.FabricJobErrorCode.CONTENT_MODERATION:
|
|
62
|
+
... # handle moderation rejection
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Retries (429/5xx, honoring `Retry-After`) are built in; submits are safe to retry because a
|
|
66
|
+
rejected submit never creates a job.
|
|
67
|
+
|
|
68
|
+
## Development
|
|
69
|
+
|
|
70
|
+
This SDK is generated, so fixes belong upstream rather than here — but to reproduce something
|
|
71
|
+
locally you need only [uv](https://docs.astral.sh/uv/), which fetches the interpreter pinned in
|
|
72
|
+
`.python-version` for you:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
uv sync
|
|
76
|
+
uv run python -m unittest discover -s tests
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## License
|
|
80
|
+
|
|
81
|
+
MIT — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Code generated from the VEED OpenAPI spec. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
[build-system]
|
|
4
|
+
requires = ["hatchling"]
|
|
5
|
+
build-backend = "hatchling.build"
|
|
6
|
+
|
|
7
|
+
[project]
|
|
8
|
+
name = "veed"
|
|
9
|
+
version = "0.1.0"
|
|
10
|
+
description = "Official Python SDK for the VEED API"
|
|
11
|
+
readme = "README.md"
|
|
12
|
+
requires-python = ">=3.9"
|
|
13
|
+
license = "MIT"
|
|
14
|
+
license-files = ["LICENSE"]
|
|
15
|
+
dependencies = [
|
|
16
|
+
"httpx>=0.27,<1",
|
|
17
|
+
"pydantic>=2.0,<3",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[project.urls]
|
|
21
|
+
Homepage = "https://veed.io"
|
|
22
|
+
Repository = "https://github.com/veedstudio/veed-sdk-python"
|
|
23
|
+
|
|
24
|
+
[tool.hatch.build.targets.wheel]
|
|
25
|
+
packages = ["src/veed"]
|
|
26
|
+
|
|
27
|
+
# hatchling ships the whole tree by default, which put .github/workflows on
|
|
28
|
+
# PyPI. (.gitignore lands there regardless of this list.)
|
|
29
|
+
[tool.hatch.build.targets.sdist]
|
|
30
|
+
include = ["src/veed", "tests", "README.md", "LICENSE", "pyproject.toml"]
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Code generated from the VEED OpenAPI spec. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from ._errors import (
|
|
4
|
+
APIConnectionError,
|
|
5
|
+
APIError,
|
|
6
|
+
AuthenticationError,
|
|
7
|
+
InternalServerError,
|
|
8
|
+
InvalidRequestError,
|
|
9
|
+
JobCancelledError,
|
|
10
|
+
JobFailedError,
|
|
11
|
+
NotFoundError,
|
|
12
|
+
PermissionDeniedError,
|
|
13
|
+
RateLimitError,
|
|
14
|
+
VeedError,
|
|
15
|
+
WaitTimeoutError,
|
|
16
|
+
)
|
|
17
|
+
from ._types import (
|
|
18
|
+
JOB_STATUS_CANCELLED,
|
|
19
|
+
JOB_STATUS_COMPLETED,
|
|
20
|
+
JOB_STATUS_FAILED,
|
|
21
|
+
JOB_STATUS_PROCESSING,
|
|
22
|
+
File,
|
|
23
|
+
JobErrorDetail,
|
|
24
|
+
JobStatus,
|
|
25
|
+
)
|
|
26
|
+
from ._version import VERSION
|
|
27
|
+
from .client import AsyncVeed, Veed
|
|
28
|
+
from .resources.cleanAudio import (
|
|
29
|
+
AsyncCleanAudio,
|
|
30
|
+
CleanAudio,
|
|
31
|
+
CleanAudioJob,
|
|
32
|
+
CleanAudioJobError,
|
|
33
|
+
CleanAudioJobErrorCode,
|
|
34
|
+
CleanAudio,
|
|
35
|
+
CleanAudioOutputFormat,
|
|
36
|
+
)
|
|
37
|
+
from .resources.cleanAudioVideo import (
|
|
38
|
+
AsyncCleanAudioVideo,
|
|
39
|
+
CleanAudioVideo,
|
|
40
|
+
CleanAudioVideoJob,
|
|
41
|
+
CleanAudioVideo,
|
|
42
|
+
)
|
|
43
|
+
from .resources.dubbing import (
|
|
44
|
+
AsyncDubbing,
|
|
45
|
+
Dubbing,
|
|
46
|
+
DubbingJob,
|
|
47
|
+
DubbingJobError,
|
|
48
|
+
DubbingJobErrorCode,
|
|
49
|
+
Dubbing,
|
|
50
|
+
)
|
|
51
|
+
from .resources.dubbingPro import (
|
|
52
|
+
AsyncDubbingPro,
|
|
53
|
+
DubbingPro,
|
|
54
|
+
)
|
|
55
|
+
from .resources.fabric import (
|
|
56
|
+
AsyncFabric,
|
|
57
|
+
Fabric,
|
|
58
|
+
FabricJob,
|
|
59
|
+
FabricJobError,
|
|
60
|
+
FabricJobErrorCode,
|
|
61
|
+
FabricVideo,
|
|
62
|
+
FabricResolution,
|
|
63
|
+
)
|
|
64
|
+
from .resources.lipsync20 import (
|
|
65
|
+
AsyncLipsync20,
|
|
66
|
+
Lipsync20,
|
|
67
|
+
Lipsync20Job,
|
|
68
|
+
Lipsync20JobError,
|
|
69
|
+
Lipsync20JobErrorCode,
|
|
70
|
+
Lipsync20Video,
|
|
71
|
+
)
|
|
72
|
+
from .resources.videoBackgroundRemoval import (
|
|
73
|
+
AsyncVideoBackgroundRemoval,
|
|
74
|
+
VideoBackgroundRemoval,
|
|
75
|
+
VideoBackgroundRemovalJob,
|
|
76
|
+
VideoBackgroundRemovalJobError,
|
|
77
|
+
VideoBackgroundRemovalJobErrorCode,
|
|
78
|
+
VideoBackgroundRemovalFiles,
|
|
79
|
+
VideoBackgroundRemovalOutputCodec,
|
|
80
|
+
)
|
|
81
|
+
from .resources.videoBackgroundRemovalFast import (
|
|
82
|
+
AsyncVideoBackgroundRemovalFast,
|
|
83
|
+
VideoBackgroundRemovalFast,
|
|
84
|
+
VideoBackgroundRemovalFastOutputCodec,
|
|
85
|
+
)
|
|
86
|
+
from .resources.videoBackgroundRemovalGreenScreen import (
|
|
87
|
+
AsyncVideoBackgroundRemovalGreenScreen,
|
|
88
|
+
VideoBackgroundRemovalGreenScreen,
|
|
89
|
+
VideoBackgroundRemovalGreenScreenOutputCodec,
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
__version__ = VERSION
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
# Code generated from the VEED OpenAPI spec. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Any, List, Optional
|
|
6
|
+
|
|
7
|
+
# The server chooses Retry-After and no timeout covers a sleep, so an unclamped
|
|
8
|
+
# header is a remote hang.
|
|
9
|
+
MAX_RETRY_AFTER = 60.0
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class VeedError(Exception):
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class APIConnectionError(VeedError):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class APIError(VeedError):
|
|
21
|
+
"""HTTP-layer error: the request itself was rejected. For submits this
|
|
22
|
+
means no job was created (per the API contract)."""
|
|
23
|
+
|
|
24
|
+
def __init__(
|
|
25
|
+
self,
|
|
26
|
+
*,
|
|
27
|
+
status_code: int,
|
|
28
|
+
code: str,
|
|
29
|
+
message: str,
|
|
30
|
+
request_id: str,
|
|
31
|
+
details: Optional[List[Any]] = None,
|
|
32
|
+
retry_after: float = 0.0,
|
|
33
|
+
) -> None:
|
|
34
|
+
self.status_code = status_code
|
|
35
|
+
self.code = code
|
|
36
|
+
self.message = message
|
|
37
|
+
self.request_id = request_id
|
|
38
|
+
self.details = details or []
|
|
39
|
+
self.retry_after = retry_after
|
|
40
|
+
super().__init__(f"veed: {status_code} {code}: {message} (request_id: {request_id})")
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class InvalidRequestError(APIError):
|
|
44
|
+
pass
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class AuthenticationError(APIError):
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class PermissionDeniedError(APIError):
|
|
52
|
+
pass
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class NotFoundError(APIError):
|
|
56
|
+
pass
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class RateLimitError(APIError):
|
|
60
|
+
pass
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class InternalServerError(APIError):
|
|
64
|
+
pass
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
_STATUS_MAP = {
|
|
68
|
+
400: InvalidRequestError,
|
|
69
|
+
401: AuthenticationError,
|
|
70
|
+
403: PermissionDeniedError,
|
|
71
|
+
404: NotFoundError,
|
|
72
|
+
422: InvalidRequestError,
|
|
73
|
+
429: RateLimitError,
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
def error_from_response(resp: Any) -> APIError:
|
|
78
|
+
status = resp.status_code
|
|
79
|
+
cls = _STATUS_MAP.get(status)
|
|
80
|
+
if cls is None:
|
|
81
|
+
cls = InternalServerError if status >= 500 else APIError
|
|
82
|
+
code = ""
|
|
83
|
+
message = ""
|
|
84
|
+
details = None
|
|
85
|
+
request_id = resp.headers.get("X-Request-ID", "")
|
|
86
|
+
try:
|
|
87
|
+
body = resp.json().get("error") or {}
|
|
88
|
+
code = body.get("code", "")
|
|
89
|
+
message = body.get("message", "")
|
|
90
|
+
details = body.get("details")
|
|
91
|
+
request_id = body.get("request_id") or request_id
|
|
92
|
+
except Exception:
|
|
93
|
+
message = resp.text[:200]
|
|
94
|
+
retry_after = 0.0
|
|
95
|
+
ra = resp.headers.get("Retry-After")
|
|
96
|
+
if ra and ra.isdigit():
|
|
97
|
+
retry_after = min(float(ra), MAX_RETRY_AFTER)
|
|
98
|
+
return cls(
|
|
99
|
+
status_code=status,
|
|
100
|
+
code=code,
|
|
101
|
+
message=message,
|
|
102
|
+
request_id=request_id,
|
|
103
|
+
details=details,
|
|
104
|
+
retry_after=retry_after,
|
|
105
|
+
)
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class JobFailedError(VeedError):
|
|
109
|
+
"""Job-layer failure: the job was accepted, but rendering failed. Raised
|
|
110
|
+
by wait/generate, not as an HTTP error. `code` holds the model-specific
|
|
111
|
+
failure code and `job` the final job object."""
|
|
112
|
+
|
|
113
|
+
def __init__(self, *, job_id: str, code: str, message: str, details: Any = None, job: Any = None) -> None:
|
|
114
|
+
self.job_id = job_id
|
|
115
|
+
self.code = code
|
|
116
|
+
self.message = message
|
|
117
|
+
self.details = details or []
|
|
118
|
+
self.job = job
|
|
119
|
+
super().__init__(f"veed: job {job_id} failed ({code}): {message}")
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class JobCancelledError(VeedError):
|
|
123
|
+
def __init__(self, *, job_id: str, job: Any = None) -> None:
|
|
124
|
+
self.job_id = job_id
|
|
125
|
+
self.job = job
|
|
126
|
+
super().__init__(f"veed: job {job_id} was cancelled")
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class WaitTimeoutError(VeedError):
|
|
130
|
+
"""wait/generate gave up before the job reached a terminal state. The job
|
|
131
|
+
may still finish server-side; resume with wait(job_id)."""
|
|
132
|
+
|
|
133
|
+
def __init__(self, *, job_id: str, timeout: float, job: Any = None) -> None:
|
|
134
|
+
self.job_id = job_id
|
|
135
|
+
self.timeout = timeout
|
|
136
|
+
self.job = job
|
|
137
|
+
super().__init__(
|
|
138
|
+
f"veed: timed out after {timeout}s waiting for job {job_id} (the job may still finish; resume with wait)"
|
|
139
|
+
)
|