runapi-topaz 0.2.0__tar.gz → 0.2.2__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.
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/PKG-INFO +8 -8
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/README.md +3 -3
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/pyproject.toml +4 -4
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/contract_gen.py +7 -1
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/tests/test_client.py +1 -1
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/__init__.py +0 -0
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/client.py +0 -0
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/py.typed +0 -0
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/resources/__init__.py +0 -0
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/resources/upscale_image.py +0 -0
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/resources/upscale_video.py +0 -0
- {runapi_topaz-0.2.0 → runapi_topaz-0.2.2}/src/runapi/topaz/types.py +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: runapi-topaz
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: RunAPI Topaz SDK for image and video upscaling workflows in JavaScript, Python, Ruby, Go, Java, and PHP
|
|
5
5
|
Project-URL: Homepage, https://runapi.ai/models/topaz
|
|
6
|
-
Project-URL: Documentation, https://runapi.ai/docs
|
|
6
|
+
Project-URL: Documentation, https://runapi.ai/docs/resources/sdks
|
|
7
7
|
Project-URL: Source, https://github.com/runapi-ai/topaz-sdk
|
|
8
8
|
Project-URL: Issues, https://github.com/runapi-ai/topaz-sdk/issues
|
|
9
9
|
Project-URL: Changelog, https://github.com/runapi-ai/topaz-sdk/blob/main/CHANGELOG.md
|
|
10
|
-
Project-URL: Release Notes, https://github.com/runapi-ai/topaz-sdk/releases/tag/python%2Fv0.2.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/runapi-ai/topaz-sdk/releases/tag/python%2Fv0.2.2
|
|
11
11
|
Author-email: RunAPI <contact@runapi.ai>
|
|
12
12
|
License-Expression: Apache-2.0
|
|
13
13
|
Keywords: api,golang,gradle,image-upscaling,java,maven,python,ruby,runapi,runapi-ai,sdk,topaz,topaz-api,typescript,upscaling,video-upscaling
|
|
14
14
|
Requires-Python: >=3.9
|
|
15
|
-
Requires-Dist: runapi-core>=0.
|
|
15
|
+
Requires-Dist: runapi-core>=0.7.1
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
|
|
18
18
|
# Topaz Python SDK for RunAPI
|
|
19
19
|
|
|
20
20
|
The Topaz Python SDK is the language-specific package for Topaz on RunAPI. Use this package for image upscale, video upscale, restoration, and production cleanup workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Python.
|
|
21
21
|
|
|
22
|
-
This README is the Python package guide inside the public `topaz-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/topaz; for API reference, use https://runapi.ai/docs
|
|
22
|
+
This README is the Python package guide inside the public `topaz-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/topaz; for API reference, use https://runapi.ai/docs/api/topaz/upscale-image; for SDK docs, use https://runapi.ai/docs/resources/sdks.
|
|
23
23
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
@@ -70,8 +70,8 @@ Pass parameters as keyword arguments and catch the `runapi.topaz` error classes
|
|
|
70
70
|
## Links
|
|
71
71
|
|
|
72
72
|
- Model page: https://runapi.ai/models/topaz
|
|
73
|
-
- SDK docs: https://runapi.ai/docs
|
|
74
|
-
- Product docs: https://runapi.ai/docs
|
|
73
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
74
|
+
- Product docs: https://runapi.ai/docs/api/topaz/upscale-image
|
|
75
75
|
- Pricing and rate limits: https://runapi.ai/models/topaz/upscale-image
|
|
76
76
|
- Provider comparison: https://runapi.ai/providers/topaz
|
|
77
77
|
- Full catalog: https://runapi.ai/models
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The Topaz Python SDK is the language-specific package for Topaz on RunAPI. Use this package for image upscale, video upscale, restoration, and production cleanup workflows when your application needs request bodies, task status lookup, and consistent RunAPI errors in Python.
|
|
4
4
|
|
|
5
|
-
This README is the Python package guide inside the public `topaz-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/topaz; for API reference, use https://runapi.ai/docs
|
|
5
|
+
This README is the Python package guide inside the public `topaz-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/topaz; for API reference, use https://runapi.ai/docs/api/topaz/upscale-image; for SDK docs, use https://runapi.ai/docs/resources/sdks.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -53,8 +53,8 @@ Pass parameters as keyword arguments and catch the `runapi.topaz` error classes
|
|
|
53
53
|
## Links
|
|
54
54
|
|
|
55
55
|
- Model page: https://runapi.ai/models/topaz
|
|
56
|
-
- SDK docs: https://runapi.ai/docs
|
|
57
|
-
- Product docs: https://runapi.ai/docs
|
|
56
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
57
|
+
- Product docs: https://runapi.ai/docs/api/topaz/upscale-image
|
|
58
58
|
- Pricing and rate limits: https://runapi.ai/models/topaz/upscale-image
|
|
59
59
|
- Provider comparison: https://runapi.ai/providers/topaz
|
|
60
60
|
- Full catalog: https://runapi.ai/models
|
|
@@ -4,22 +4,22 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "runapi-topaz"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "RunAPI Topaz SDK for image and video upscaling workflows in JavaScript, Python, Ruby, Go, Java, and PHP"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
11
11
|
license = "Apache-2.0"
|
|
12
12
|
authors = [{ name = "RunAPI", email = "contact@runapi.ai" }]
|
|
13
13
|
keywords = ["runapi", "runapi-ai", "topaz", "api", "sdk", "typescript", "python", "ruby", "golang", "java", "maven", "gradle", "upscaling", "image-upscaling", "video-upscaling", "topaz-api"]
|
|
14
|
-
dependencies = ["runapi-core>=0.
|
|
14
|
+
dependencies = ["runapi-core>=0.7.1"]
|
|
15
15
|
|
|
16
16
|
[project.urls]
|
|
17
17
|
Homepage = "https://runapi.ai/models/topaz"
|
|
18
|
-
Documentation = "https://runapi.ai/docs
|
|
18
|
+
Documentation = "https://runapi.ai/docs/resources/sdks"
|
|
19
19
|
Source = "https://github.com/runapi-ai/topaz-sdk"
|
|
20
20
|
Issues = "https://github.com/runapi-ai/topaz-sdk/issues"
|
|
21
21
|
Changelog = "https://github.com/runapi-ai/topaz-sdk/blob/main/CHANGELOG.md"
|
|
22
|
-
"Release Notes" = "https://github.com/runapi-ai/topaz-sdk/releases/tag/python%2Fv0.2.
|
|
22
|
+
"Release Notes" = "https://github.com/runapi-ai/topaz-sdk/releases/tag/python%2Fv0.2.2"
|
|
23
23
|
|
|
24
24
|
[tool.hatch.build.targets.wheel]
|
|
25
25
|
packages = ["src/runapi"]
|
|
@@ -3,11 +3,14 @@ CONTRACT = {
|
|
|
3
3
|
"models": ["topaz-upscale-image"],
|
|
4
4
|
"fields_by_model": {
|
|
5
5
|
"topaz-upscale-image": {
|
|
6
|
+
"model": {
|
|
7
|
+
"required": True
|
|
8
|
+
},
|
|
6
9
|
"source_image_url": {
|
|
7
10
|
"required": True
|
|
8
11
|
},
|
|
9
12
|
"upscale_factor": {
|
|
10
|
-
"enum": [1, 2, 4
|
|
13
|
+
"enum": [1, 2, 4],
|
|
11
14
|
"required": True,
|
|
12
15
|
"type": "integer"
|
|
13
16
|
}
|
|
@@ -18,6 +21,9 @@ CONTRACT = {
|
|
|
18
21
|
"models": ["topaz-upscale-video"],
|
|
19
22
|
"fields_by_model": {
|
|
20
23
|
"topaz-upscale-video": {
|
|
24
|
+
"model": {
|
|
25
|
+
"required": True
|
|
26
|
+
},
|
|
21
27
|
"source_video_url": {
|
|
22
28
|
"required": True
|
|
23
29
|
},
|
|
@@ -166,7 +166,7 @@ def test_image_requires_upscale_factor():
|
|
|
166
166
|
|
|
167
167
|
def test_image_rejects_bad_factor():
|
|
168
168
|
client = TopazClient(api_key="k", http_client=FakeHttp())
|
|
169
|
-
with pytest.raises(ValidationError, match="upscale_factor must be one of: 1, 2, 4
|
|
169
|
+
with pytest.raises(ValidationError, match="upscale_factor must be one of: 1, 2, 4"):
|
|
170
170
|
client.upscale_image.create(
|
|
171
171
|
model="topaz-upscale-image", source_image_url="https://x/y.jpg", upscale_factor=3
|
|
172
172
|
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|