runapi-seedream 0.4.0__tar.gz → 0.6.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.
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/PKG-INFO +10 -4
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/pyproject.toml +12 -4
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/tests/test_client.py +4 -1
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/README.md +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/__init__.py +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/client.py +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/py.typed +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/resources/__init__.py +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/resources/decompose_layers.py +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/resources/edit_image.py +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/resources/text_to_image.py +0 -0
- {runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/types.py +0 -0
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: runapi-seedream
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: RunAPI Seedream SDK for text-to-image and edit-image workflows in JavaScript, Python, Ruby, Go, Java, and PHP
|
|
5
5
|
Project-URL: Homepage, https://runapi.ai/models/seedream
|
|
6
6
|
Project-URL: Documentation, https://runapi.ai/docs/resources/sdks
|
|
7
7
|
Project-URL: Source, https://github.com/runapi-ai/seedream-sdk
|
|
8
8
|
Project-URL: Issues, https://github.com/runapi-ai/seedream-sdk/issues
|
|
9
9
|
Project-URL: Changelog, https://github.com/runapi-ai/seedream-sdk/blob/main/CHANGELOG.md
|
|
10
|
-
Project-URL: Release Notes, https://github.com/runapi-ai/seedream-sdk/releases/tag/python%2Fv0.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/runapi-ai/seedream-sdk/releases/tag/python%2Fv0.6.0
|
|
11
11
|
Author-email: RunAPI <contact@runapi.ai>
|
|
12
12
|
License-Expression: Apache-2.0
|
|
13
13
|
Keywords: api,golang,gradle,image-api,image-generation,java,maven,python,ruby,runapi,runapi-ai,sdk,seedream,seedream-api,text-to-image,typescript
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Requires-Python: >=3.10
|
|
21
|
+
Requires-Dist: runapi-core~=0.12.0
|
|
16
22
|
Description-Content-Type: text/markdown
|
|
17
23
|
|
|
18
24
|
# Seedream Python SDK for RunAPI
|
|
@@ -4,14 +4,22 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "runapi-seedream"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.6.0"
|
|
8
8
|
description = "RunAPI Seedream SDK for text-to-image and edit-image workflows in JavaScript, Python, Ruby, Go, Java, and PHP"
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Programming Language :: Python :: 3",
|
|
13
|
+
"Programming Language :: Python :: 3.10",
|
|
14
|
+
"Programming Language :: Python :: 3.11",
|
|
15
|
+
"Programming Language :: Python :: 3.12",
|
|
16
|
+
"Programming Language :: Python :: 3.13",
|
|
17
|
+
"Programming Language :: Python :: 3.14",
|
|
18
|
+
]
|
|
11
19
|
license = "Apache-2.0"
|
|
12
20
|
authors = [{ name = "RunAPI", email = "contact@runapi.ai" }]
|
|
13
21
|
keywords = ["runapi", "runapi-ai", "seedream", "api", "sdk", "typescript", "python", "ruby", "golang", "java", "maven", "gradle", "image-generation", "text-to-image", "image-api", "seedream-api"]
|
|
14
|
-
dependencies = ["runapi-core~=0.
|
|
22
|
+
dependencies = ["runapi-core~=0.12.0"]
|
|
15
23
|
|
|
16
24
|
[project.urls]
|
|
17
25
|
Homepage = "https://runapi.ai/models/seedream"
|
|
@@ -19,7 +27,7 @@ Documentation = "https://runapi.ai/docs/resources/sdks"
|
|
|
19
27
|
Source = "https://github.com/runapi-ai/seedream-sdk"
|
|
20
28
|
Issues = "https://github.com/runapi-ai/seedream-sdk/issues"
|
|
21
29
|
Changelog = "https://github.com/runapi-ai/seedream-sdk/blob/main/CHANGELOG.md"
|
|
22
|
-
"Release Notes" = "https://github.com/runapi-ai/seedream-sdk/releases/tag/python%2Fv0.
|
|
30
|
+
"Release Notes" = "https://github.com/runapi-ai/seedream-sdk/releases/tag/python%2Fv0.6.0"
|
|
23
31
|
|
|
24
32
|
[tool.hatch.build.targets.wheel]
|
|
25
33
|
packages = ["src/runapi"]
|
|
@@ -78,7 +78,7 @@ def test_decompose_layers_create_get_and_completed_response():
|
|
|
78
78
|
{"id": "layers-1", "status": "processing"},
|
|
79
79
|
{
|
|
80
80
|
"id": "layers-1",
|
|
81
|
-
"status": "completed", "usage": {"cost": 0.05},
|
|
81
|
+
"status": "completed", "usage": {"cost": 0.05, "generated_images": 2},
|
|
82
82
|
"base_image": {"url": "https://file.runapi.ai/base.jpeg"},
|
|
83
83
|
"layers": [{"url": "https://file.runapi.ai/layer.png", "z_index": 1}]},
|
|
84
84
|
)
|
|
@@ -100,6 +100,7 @@ def test_decompose_layers_create_get_and_completed_response():
|
|
|
100
100
|
)
|
|
101
101
|
assert isinstance(result, DecomposeLayersResponse)
|
|
102
102
|
assert result.base_image.url == "https://file.runapi.ai/base.jpeg"
|
|
103
|
+
assert result.usage.generated_images == 2
|
|
103
104
|
|
|
104
105
|
|
|
105
106
|
# --- request shapes -------------------------------------------------------
|
|
@@ -151,9 +152,11 @@ def test_pro_edit_is_forwarded():
|
|
|
151
152
|
aspect_ratio="3:2",
|
|
152
153
|
output_quality="basic",
|
|
153
154
|
output_format="png",
|
|
155
|
+
background="transparent",
|
|
154
156
|
)
|
|
155
157
|
assert fake.calls[0][2]["model"] == "seedream-5-pro-edit"
|
|
156
158
|
assert fake.calls[0][2]["output_format"] == "png"
|
|
159
|
+
assert fake.calls[0][2]["background"] == "transparent"
|
|
157
160
|
|
|
158
161
|
|
|
159
162
|
def test_get_fetches_by_id():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/resources/decompose_layers.py
RENAMED
|
File without changes
|
|
File without changes
|
{runapi_seedream-0.4.0 → runapi_seedream-0.6.0}/src/runapi/seedream/resources/text_to_image.py
RENAMED
|
File without changes
|
|
File without changes
|