runapi-gpt-image 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_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/PKG-INFO +7 -7
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/README.md +3 -3
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/pyproject.toml +4 -4
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/types.py +1 -0
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/tests/test_client.py +2 -1
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/__init__.py +0 -0
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/client.py +0 -0
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/contract_gen.py +0 -0
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/py.typed +0 -0
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/resources/__init__.py +0 -0
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/resources/edit_image.py +0 -0
- {runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/resources/text_to_image.py +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: runapi-gpt-image
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: RunAPI GPT Image SDK for text-to-image and image editing workflows in JavaScript, Python, Ruby, Go, Java, and PHP
|
|
5
5
|
Project-URL: Homepage, https://runapi.ai/models/gpt-image
|
|
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/gpt-image-sdk
|
|
8
8
|
Project-URL: Issues, https://github.com/runapi-ai/gpt-image-sdk/issues
|
|
9
9
|
Project-URL: Changelog, https://github.com/runapi-ai/gpt-image-sdk/blob/main/CHANGELOG.md
|
|
10
|
-
Project-URL: Release Notes, https://github.com/runapi-ai/gpt-image-sdk/releases/tag/python%2Fv0.2.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/runapi-ai/gpt-image-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,gpt-image,gpt-image-api,gradle,image-api,image-generation,java,maven,python,ruby,runapi,runapi-ai,sdk,text-to-image,typescript
|
|
14
14
|
Requires-Python: >=3.9
|
|
15
|
-
Requires-Dist: runapi-core>=0.3.
|
|
15
|
+
Requires-Dist: runapi-core>=0.3.3
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
|
|
18
18
|
# GPT Image Python SDK for RunAPI
|
|
19
19
|
|
|
20
20
|
The GPT Image Python SDK is the language-specific package for GPT Image on RunAPI. Use this package for image generation, image editing, and creative production 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 `gpt-image-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/gpt-image; for API reference, use https://runapi.ai/docs
|
|
22
|
+
This README is the Python package guide inside the public `gpt-image-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/gpt-image; for API reference, use https://runapi.ai/docs/api/gpt-image/text-to-image; for SDK docs, use https://runapi.ai/docs/resources/sdks.
|
|
23
23
|
|
|
24
24
|
## Install
|
|
25
25
|
|
|
@@ -74,8 +74,8 @@ Pass parameters as keyword arguments and catch the `runapi.gpt_image` error clas
|
|
|
74
74
|
## Links
|
|
75
75
|
|
|
76
76
|
- Model page: https://runapi.ai/models/gpt-image
|
|
77
|
-
- SDK docs: https://runapi.ai/docs
|
|
78
|
-
- Product docs: https://runapi.ai/docs
|
|
77
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
78
|
+
- Product docs: https://runapi.ai/docs/api/gpt-image/text-to-image
|
|
79
79
|
- Pricing and rate limits: https://runapi.ai/models/gpt-image
|
|
80
80
|
- Provider comparison: https://runapi.ai/providers/openai
|
|
81
81
|
- Full catalog: https://runapi.ai/models
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The GPT Image Python SDK is the language-specific package for GPT Image on RunAPI. Use this package for image generation, image editing, and creative production 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 `gpt-image-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/gpt-image; for API reference, use https://runapi.ai/docs
|
|
5
|
+
This README is the Python package guide inside the public `gpt-image-sdk` repository. For the repository overview, start at `../README.md`; for model details, use https://runapi.ai/models/gpt-image; for API reference, use https://runapi.ai/docs/api/gpt-image/text-to-image; for SDK docs, use https://runapi.ai/docs/resources/sdks.
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -57,8 +57,8 @@ Pass parameters as keyword arguments and catch the `runapi.gpt_image` error clas
|
|
|
57
57
|
## Links
|
|
58
58
|
|
|
59
59
|
- Model page: https://runapi.ai/models/gpt-image
|
|
60
|
-
- SDK docs: https://runapi.ai/docs
|
|
61
|
-
- Product docs: https://runapi.ai/docs
|
|
60
|
+
- SDK docs: https://runapi.ai/docs/resources/sdks
|
|
61
|
+
- Product docs: https://runapi.ai/docs/api/gpt-image/text-to-image
|
|
62
62
|
- Pricing and rate limits: https://runapi.ai/models/gpt-image
|
|
63
63
|
- Provider comparison: https://runapi.ai/providers/openai
|
|
64
64
|
- Full catalog: https://runapi.ai/models
|
|
@@ -4,22 +4,22 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "runapi-gpt-image"
|
|
7
|
-
version = "0.2.
|
|
7
|
+
version = "0.2.2"
|
|
8
8
|
description = "RunAPI GPT Image SDK for text-to-image and image editing 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", "gpt-image", "api", "sdk", "typescript", "python", "ruby", "golang", "java", "maven", "gradle", "image-generation", "text-to-image", "image-api", "gpt-image-api"]
|
|
14
|
-
dependencies = ["runapi-core>=0.3.
|
|
14
|
+
dependencies = ["runapi-core>=0.3.3"]
|
|
15
15
|
|
|
16
16
|
[project.urls]
|
|
17
17
|
Homepage = "https://runapi.ai/models/gpt-image"
|
|
18
|
-
Documentation = "https://runapi.ai/docs
|
|
18
|
+
Documentation = "https://runapi.ai/docs/resources/sdks"
|
|
19
19
|
Source = "https://github.com/runapi-ai/gpt-image-sdk"
|
|
20
20
|
Issues = "https://github.com/runapi-ai/gpt-image-sdk/issues"
|
|
21
21
|
Changelog = "https://github.com/runapi-ai/gpt-image-sdk/blob/main/CHANGELOG.md"
|
|
22
|
-
"Release Notes" = "https://github.com/runapi-ai/gpt-image-sdk/releases/tag/python%2Fv0.2.
|
|
22
|
+
"Release Notes" = "https://github.com/runapi-ai/gpt-image-sdk/releases/tag/python%2Fv0.2.2"
|
|
23
23
|
|
|
24
24
|
[tool.hatch.build.targets.wheel]
|
|
25
25
|
packages = ["src/runapi"]
|
|
@@ -13,6 +13,7 @@ class TextToImageResponse(TaskResponse):
|
|
|
13
13
|
"""Task status/result for GPT Image text-to-image."""
|
|
14
14
|
id = required(str)
|
|
15
15
|
status = optional(str, enum=lambda: TaskResponse.Status.ALL)
|
|
16
|
+
task_replayed = optional(bool)
|
|
16
17
|
images = optional([lambda: Image])
|
|
17
18
|
error = optional(str)
|
|
18
19
|
|
|
@@ -69,7 +69,7 @@ def test_exposes_resource_accessors():
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
def test_text_to_image_create_posts_compacted_body():
|
|
72
|
-
fake = FakeHttp({"id": "t1", "status": "pending"})
|
|
72
|
+
fake = FakeHttp({"id": "t1", "status": "pending", "task_replayed": True})
|
|
73
73
|
client = GptImageClient(api_key="k", http_client=fake)
|
|
74
74
|
result = client.text_to_image.create(
|
|
75
75
|
model="gpt-image-1.5",
|
|
@@ -86,6 +86,7 @@ def test_text_to_image_create_posts_compacted_body():
|
|
|
86
86
|
),
|
|
87
87
|
]
|
|
88
88
|
assert isinstance(result, TextToImageResponse)
|
|
89
|
+
assert result.task_replayed is True
|
|
89
90
|
|
|
90
91
|
|
|
91
92
|
def test_text_to_image_get_fetches_by_id():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/resources/__init__.py
RENAMED
|
File without changes
|
{runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/resources/edit_image.py
RENAMED
|
File without changes
|
{runapi_gpt_image-0.2.0 → runapi_gpt_image-0.2.2}/src/runapi/gpt_image/resources/text_to_image.py
RENAMED
|
File without changes
|