runapi-core 0.2.4__tar.gz → 0.2.5__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_core-0.2.4 → runapi_core-0.2.5}/PKG-INFO +8 -3
- {runapi_core-0.2.4 → runapi_core-0.2.5}/README.md +6 -1
- {runapi_core-0.2.4 → runapi_core-0.2.5}/pyproject.toml +1 -1
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/contract_gen.py +9 -1
- runapi_core-0.2.5/src/runapi/core/version.py +1 -0
- runapi_core-0.2.4/src/runapi/core/version.py +0 -1
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/__init__.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/auth.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/config.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/constants.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/errors.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/files.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/http_client.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/models.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/multipart.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/options.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/polling.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/py.typed +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/resource.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/src/runapi/core/response.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_auth.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_config.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_errors.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_files.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_http_client.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_models.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_polling.py +0 -0
- {runapi_core-0.2.4 → runapi_core-0.2.5}/tests/test_resource.py +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: runapi-core
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.5
|
|
4
4
|
Summary: RunAPI core SDK for JavaScript, Python, Ruby, Go, Java, and PHP
|
|
5
5
|
Project-URL: Homepage, https://runapi.ai/models
|
|
6
6
|
Project-URL: Documentation, https://runapi.ai/docs#runapi-sdks
|
|
7
7
|
Project-URL: Source, https://github.com/runapi-ai/core-sdk
|
|
8
8
|
Project-URL: Issues, https://github.com/runapi-ai/core-sdk/issues
|
|
9
9
|
Project-URL: Changelog, https://github.com/runapi-ai/core-sdk/blob/main/CHANGELOG.md
|
|
10
|
-
Project-URL: Release Notes, https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.
|
|
10
|
+
Project-URL: Release Notes, https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.5
|
|
11
11
|
Author-email: RunAPI <contact@runapi.ai>
|
|
12
12
|
License-Expression: Apache-2.0
|
|
13
13
|
Keywords: api,core,golang,gradle,java,maven,pypi,python,ruby,runapi,runapi-ai,sdk,typescript
|
|
@@ -39,6 +39,8 @@ runapi.configure(api_key="sk-...") # or set RUNAPI_API_KEY in the environment
|
|
|
39
39
|
|
|
40
40
|
RunAPI accepts an optional `X-Client-Request-Id` header on public API calls. Use printable ASCII values up to 512 characters. Accepted values are echoed in the response and stored with the RunAPI task for support and reconciliation.
|
|
41
41
|
|
|
42
|
+
Task-creation calls also accept an optional opaque `Idempotency-Key` up to 512 characters. Generate one value per logical task and reuse it only with identical input after an unknown result. Reusing the value with different input returns `409 Conflict`; do not derive it from `X-Client-Request-Id`.
|
|
43
|
+
|
|
42
44
|
High-level Python Provider Client resource methods accept per-request options and keep response headers on the returned model object. This example uses the Suno Provider Client; install `runapi-suno` to run it.
|
|
43
45
|
|
|
44
46
|
```python
|
|
@@ -49,7 +51,10 @@ from runapi.suno import SunoClient
|
|
|
49
51
|
|
|
50
52
|
client = SunoClient(api_key=os.environ["RUNAPI_API_KEY"])
|
|
51
53
|
options = RequestOptions(
|
|
52
|
-
headers={
|
|
54
|
+
headers={
|
|
55
|
+
"X-Client-Request-Id": "order-123",
|
|
56
|
+
"Idempotency-Key": "opaque-logical-task-123",
|
|
57
|
+
},
|
|
53
58
|
)
|
|
54
59
|
|
|
55
60
|
response = client.text_to_music.create(
|
|
@@ -22,6 +22,8 @@ runapi.configure(api_key="sk-...") # or set RUNAPI_API_KEY in the environment
|
|
|
22
22
|
|
|
23
23
|
RunAPI accepts an optional `X-Client-Request-Id` header on public API calls. Use printable ASCII values up to 512 characters. Accepted values are echoed in the response and stored with the RunAPI task for support and reconciliation.
|
|
24
24
|
|
|
25
|
+
Task-creation calls also accept an optional opaque `Idempotency-Key` up to 512 characters. Generate one value per logical task and reuse it only with identical input after an unknown result. Reusing the value with different input returns `409 Conflict`; do not derive it from `X-Client-Request-Id`.
|
|
26
|
+
|
|
25
27
|
High-level Python Provider Client resource methods accept per-request options and keep response headers on the returned model object. This example uses the Suno Provider Client; install `runapi-suno` to run it.
|
|
26
28
|
|
|
27
29
|
```python
|
|
@@ -32,7 +34,10 @@ from runapi.suno import SunoClient
|
|
|
32
34
|
|
|
33
35
|
client = SunoClient(api_key=os.environ["RUNAPI_API_KEY"])
|
|
34
36
|
options = RequestOptions(
|
|
35
|
-
headers={
|
|
37
|
+
headers={
|
|
38
|
+
"X-Client-Request-Id": "order-123",
|
|
39
|
+
"Idempotency-Key": "opaque-logical-task-123",
|
|
40
|
+
},
|
|
36
41
|
)
|
|
37
42
|
|
|
38
43
|
response = client.text_to_music.create(
|
|
@@ -19,7 +19,7 @@ Documentation = "https://runapi.ai/docs#runapi-sdks"
|
|
|
19
19
|
Source = "https://github.com/runapi-ai/core-sdk"
|
|
20
20
|
Issues = "https://github.com/runapi-ai/core-sdk/issues"
|
|
21
21
|
Changelog = "https://github.com/runapi-ai/core-sdk/blob/main/CHANGELOG.md"
|
|
22
|
-
"Release Notes" = "https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.
|
|
22
|
+
"Release Notes" = "https://github.com/runapi-ai/core-sdk/releases/tag/python%2Fv0.2.5"
|
|
23
23
|
|
|
24
24
|
[tool.hatch.version]
|
|
25
25
|
path = "src/runapi/core/version.py"
|
|
@@ -703,7 +703,7 @@ CONTRACT = {
|
|
|
703
703
|
}
|
|
704
704
|
},
|
|
705
705
|
"kling/motion-control": {
|
|
706
|
-
"models": ["kling-3.0"],
|
|
706
|
+
"models": ["kling-3.0", "kling-v2.6"],
|
|
707
707
|
"fields_by_model": {
|
|
708
708
|
"kling-3.0": {
|
|
709
709
|
"background_source": {
|
|
@@ -715,6 +715,14 @@ CONTRACT = {
|
|
|
715
715
|
"output_resolution": {
|
|
716
716
|
"enum": ["720p", "1080p"]
|
|
717
717
|
}
|
|
718
|
+
},
|
|
719
|
+
"kling-v2.6": {
|
|
720
|
+
"character_orientation": {
|
|
721
|
+
"enum": ["video", "image"]
|
|
722
|
+
},
|
|
723
|
+
"output_resolution": {
|
|
724
|
+
"enum": ["720p", "1080p"]
|
|
725
|
+
}
|
|
718
726
|
}
|
|
719
727
|
}
|
|
720
728
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.2.5"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.2.4"
|
|
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
|