runapi-seedream 0.1.2__tar.gz → 0.2.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.1.2 → runapi_seedream-0.2.0}/PKG-INFO +3 -3
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/pyproject.toml +3 -3
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/client.py +4 -5
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/README.md +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/__init__.py +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/contract_gen.py +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/py.typed +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/resources/__init__.py +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/resources/edit_image.py +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/resources/text_to_image.py +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/types.py +0 -0
- {runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/tests/test_client.py +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: runapi-seedream
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.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#sdk-seedream
|
|
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.2.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
14
|
Requires-Python: >=3.9
|
|
15
|
-
Requires-Dist: runapi-core>=0.
|
|
15
|
+
Requires-Dist: runapi-core>=0.3.0
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
|
|
18
18
|
# Seedream Python SDK for RunAPI
|
|
@@ -4,14 +4,14 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "runapi-seedream"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.2.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
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", "seedream", "api", "sdk", "typescript", "python", "ruby", "golang", "java", "maven", "gradle", "image-generation", "text-to-image", "image-api", "seedream-api"]
|
|
14
|
-
dependencies = ["runapi-core>=0.
|
|
14
|
+
dependencies = ["runapi-core>=0.3.0"]
|
|
15
15
|
|
|
16
16
|
[project.urls]
|
|
17
17
|
Homepage = "https://runapi.ai/models/seedream"
|
|
@@ -19,7 +19,7 @@ Documentation = "https://runapi.ai/docs#sdk-seedream"
|
|
|
19
19
|
Source = "https://github.com/runapi-ai/seedream-sdk"
|
|
20
20
|
Issues = "https://github.com/runapi-ai/seedream-sdk/issues"
|
|
21
21
|
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.
|
|
22
|
+
"Release Notes" = "https://github.com/runapi-ai/seedream-sdk/releases/tag/python%2Fv0.2.0"
|
|
23
23
|
|
|
24
24
|
[tool.hatch.build.targets.wheel]
|
|
25
25
|
packages = ["src/runapi"]
|
|
@@ -4,13 +4,13 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
from typing import Any, Optional
|
|
6
6
|
|
|
7
|
-
from runapi.core import
|
|
7
|
+
from runapi.core import ProviderClient
|
|
8
8
|
|
|
9
9
|
from .resources.edit_image import EditImage
|
|
10
10
|
from .resources.text_to_image import TextToImage
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
class SeedreamClient:
|
|
13
|
+
class SeedreamClient(ProviderClient):
|
|
14
14
|
"""Seedream text-to-image and edit-image client.
|
|
15
15
|
|
|
16
16
|
Example::
|
|
@@ -22,8 +22,7 @@ class SeedreamClient:
|
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
def __init__(self, api_key: Optional[str] = None, **options: Any) -> None:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
http = client_options.http_client or HttpClient(client_options)
|
|
25
|
+
super().__init__(api_key, **options)
|
|
26
|
+
http = self._http
|
|
28
27
|
self.text_to_image = TextToImage(http)
|
|
29
28
|
self.edit_image = EditImage(http)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runapi_seedream-0.1.2 → runapi_seedream-0.2.0}/src/runapi/seedream/resources/text_to_image.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|