redfox-python-sdk 0.5.0__tar.gz → 0.5.1__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.
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/PKG-INFO +2 -2
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/README.md +1 -1
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/__init__.py +1 -1
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/gpt_image.py +2 -7
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox_python_sdk.egg-info/PKG-INFO +2 -2
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/setup.py +1 -1
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/client.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/__init__.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/ai_search.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/autohome.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/bilibili.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/dongchedi.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/doubao_image.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/doubao_video.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/douyin.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/hotspot.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/instagram.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/kuaishou.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/tiktok.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/tools.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/toutiao.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/twitter.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/wechat.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/wechat_channels.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/xiaohongshu.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/yiche.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/endpoints/youtube.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox/exceptions.py +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox_python_sdk.egg-info/SOURCES.txt +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox_python_sdk.egg-info/dependency_links.txt +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox_python_sdk.egg-info/requires.txt +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox_python_sdk.egg-info/top_level.txt +0 -0
- {redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: redfox-python-sdk
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置
|
|
5
5
|
Home-page: https://redfox.hk
|
|
6
6
|
Author: RedFox
|
|
@@ -592,7 +592,7 @@ task = client.gpt_image.submit(
|
|
|
592
592
|
result = client.gpt_image.result(task_id=task["taskId"])
|
|
593
593
|
```
|
|
594
594
|
|
|
595
|
-
> **注意**:`
|
|
595
|
+
> **注意**:`status` 实测取值 `queued`/`in_progress`/`completed`/`failed`,仅后两者为终态(接口文档所写的 `processing` 实测不会返回)。
|
|
596
596
|
|
|
597
597
|
### 豆包图片生成
|
|
598
598
|
|
|
@@ -568,7 +568,7 @@ task = client.gpt_image.submit(
|
|
|
568
568
|
result = client.gpt_image.result(task_id=task["taskId"])
|
|
569
569
|
```
|
|
570
570
|
|
|
571
|
-
> **注意**:`
|
|
571
|
+
> **注意**:`status` 实测取值 `queued`/`in_progress`/`completed`/`failed`,仅后两者为终态(接口文档所写的 `processing` 实测不会返回)。
|
|
572
572
|
|
|
573
573
|
### 豆包图片生成
|
|
574
574
|
|
|
@@ -9,9 +9,6 @@ class GPTImageAPI:
|
|
|
9
9
|
|
|
10
10
|
基于 gpt-image-2 模型,支持文生图和参考图生图(最多 2 张参考图)。
|
|
11
11
|
异步执行:submit() 返回 taskId,再轮询 result() 取 imageUrls。
|
|
12
|
-
|
|
13
|
-
注意:result() 返回的图片 URL 有效期仅数分钟,过期后访问返回 404,
|
|
14
|
-
需立即下载保存;用平台生成图做参考图时也必须在其失效前提交。
|
|
15
12
|
"""
|
|
16
13
|
|
|
17
14
|
# 服务端支持的输出分辨率档位
|
|
@@ -46,8 +43,7 @@ class GPTImageAPI:
|
|
|
46
43
|
16:9、9:16、2:1、1:2、21:9、9:21
|
|
47
44
|
:param n: 生成图片数量,最大 4(超限服务端报 1002)
|
|
48
45
|
:param reference_images: 参考图片 URL 列表,最多 2 张,用于图生图场景;
|
|
49
|
-
不传则为纯文生图。URL
|
|
50
|
-
否则任务会以 failed 结束
|
|
46
|
+
不传则为纯文生图。URL 需公网可访问
|
|
51
47
|
:return: 包含 taskId 的字典
|
|
52
48
|
"""
|
|
53
49
|
data: Dict[str, Any] = {
|
|
@@ -69,8 +65,7 @@ class GPTImageAPI:
|
|
|
69
65
|
:param task_id: 任务 ID(由 submit 接口返回)
|
|
70
66
|
:return: 任务结果字典,包含 status/progress/imageUrls/failReason/
|
|
71
67
|
model/resolution/size。status 取值 queued/in_progress/completed/
|
|
72
|
-
failed,仅 completed 与 failed 为终态;imageUrls 数量与 n
|
|
73
|
-
但有效期仅数分钟,需立即下载保存
|
|
68
|
+
failed,仅 completed 与 failed 为终态;imageUrls 数量与 n 一致
|
|
74
69
|
"""
|
|
75
70
|
return self._client.post(
|
|
76
71
|
"/story/api/parseWork/imageGen/gptImage2Result", data={"taskId": task_id}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: redfox-python-sdk
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置
|
|
5
5
|
Home-page: https://redfox.hk
|
|
6
6
|
Author: RedFox
|
|
@@ -592,7 +592,7 @@ task = client.gpt_image.submit(
|
|
|
592
592
|
result = client.gpt_image.result(task_id=task["taskId"])
|
|
593
593
|
```
|
|
594
594
|
|
|
595
|
-
> **注意**:`
|
|
595
|
+
> **注意**:`status` 实测取值 `queued`/`in_progress`/`completed`/`failed`,仅后两者为终态(接口文档所写的 `processing` 实测不会返回)。
|
|
596
596
|
|
|
597
597
|
### 豆包图片生成
|
|
598
598
|
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="redfox-python-sdk",
|
|
5
|
-
version="0.5.
|
|
5
|
+
version="0.5.1",
|
|
6
6
|
description="RedFox 红狐数据平台 Python SDK — 同步+异步双客户端,自动重试,零配置",
|
|
7
7
|
long_description=open("README.md", encoding="utf-8").read(),
|
|
8
8
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox_python_sdk.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{redfox_python_sdk-0.5.0 → redfox_python_sdk-0.5.1}/redfox_python_sdk.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|