llamagen-python 0.1.9__tar.gz → 0.1.10__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.
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/PKG-INFO +6 -6
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/README.md +5 -5
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/pyproject.toml +1 -1
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/__init__.py +1 -1
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/_http.py +1 -1
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/tests/test_client.py +1 -1
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/.gitignore +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/LICENSE +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/docs/RELEASE.md +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/examples/quickstart.py +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/_client.py +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/_errors.py +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/_types.py +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/py.typed +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/resources/__init__.py +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/resources/animations.py +0 -0
- {llamagen_python-0.1.9 → llamagen_python-0.1.10}/src/llamagen/resources/comics.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: llamagen-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.10
|
|
4
4
|
Summary: Official Python SDK for LlamaGen Comic API and Animation API
|
|
5
5
|
Project-URL: Homepage, https://llamagen.ai/comic-api
|
|
6
6
|
Project-URL: Documentation, https://llamagen.ai/comic-api/docs
|
|
@@ -137,11 +137,11 @@ generation = client.comic.create({
|
|
|
137
137
|
|
|
138
138
|
Comic methods:
|
|
139
139
|
|
|
140
|
-
- `llamagen.comic.create(params)`
|
|
141
|
-
- `llamagen.comic.get(id, page=None, panel=None)`
|
|
140
|
+
- `llamagen.comic.create(params)` submits a new comic generation job and returns the created job id, status, and usage metadata.
|
|
141
|
+
- `llamagen.comic.get(id, page=None, panel=None)` fetches a comic generation's status and result, or a specific page or panel.
|
|
142
142
|
- `llamagen.comic.continue_write(id, params)` extends an existing comic.
|
|
143
143
|
- `llamagen.comic.update_panel(id, params)` regenerates one panel.
|
|
144
|
-
- `llamagen.comic.usage()`
|
|
144
|
+
- `llamagen.comic.usage()` fetches the current Comic API usage, available quota, and credit information for the API key.
|
|
145
145
|
- `llamagen.comic.upload(file, filename=None)` calls `POST /v1/comics/upload`.
|
|
146
146
|
- `llamagen.comic.wait_for_completion(id, **options)` polls until a terminal status.
|
|
147
147
|
- `llamagen.comic.create_and_wait(params, **options)` creates and polls.
|
|
@@ -316,8 +316,8 @@ print("animation.wait_for_completion:", finished["id"], finished.get("status"))
|
|
|
316
316
|
|
|
317
317
|
Animation methods:
|
|
318
318
|
|
|
319
|
-
- `llamagen.animation.create(params)`
|
|
320
|
-
- `llamagen.animation.get(id)`
|
|
319
|
+
- `llamagen.animation.create(params)` submits a new animation generation job and returns the created job id, status, and usage metadata.
|
|
320
|
+
- `llamagen.animation.get(id)` fetches an animation generation's status, result, and output video metadata.
|
|
321
321
|
- `llamagen.animation.wait_for_completion(id, **options)` polls video status.
|
|
322
322
|
- `llamagen.animation.create_and_wait(params, **options)` creates and polls.
|
|
323
323
|
|
|
@@ -112,11 +112,11 @@ generation = client.comic.create({
|
|
|
112
112
|
|
|
113
113
|
Comic methods:
|
|
114
114
|
|
|
115
|
-
- `llamagen.comic.create(params)`
|
|
116
|
-
- `llamagen.comic.get(id, page=None, panel=None)`
|
|
115
|
+
- `llamagen.comic.create(params)` submits a new comic generation job and returns the created job id, status, and usage metadata.
|
|
116
|
+
- `llamagen.comic.get(id, page=None, panel=None)` fetches a comic generation's status and result, or a specific page or panel.
|
|
117
117
|
- `llamagen.comic.continue_write(id, params)` extends an existing comic.
|
|
118
118
|
- `llamagen.comic.update_panel(id, params)` regenerates one panel.
|
|
119
|
-
- `llamagen.comic.usage()`
|
|
119
|
+
- `llamagen.comic.usage()` fetches the current Comic API usage, available quota, and credit information for the API key.
|
|
120
120
|
- `llamagen.comic.upload(file, filename=None)` calls `POST /v1/comics/upload`.
|
|
121
121
|
- `llamagen.comic.wait_for_completion(id, **options)` polls until a terminal status.
|
|
122
122
|
- `llamagen.comic.create_and_wait(params, **options)` creates and polls.
|
|
@@ -291,8 +291,8 @@ print("animation.wait_for_completion:", finished["id"], finished.get("status"))
|
|
|
291
291
|
|
|
292
292
|
Animation methods:
|
|
293
293
|
|
|
294
|
-
- `llamagen.animation.create(params)`
|
|
295
|
-
- `llamagen.animation.get(id)`
|
|
294
|
+
- `llamagen.animation.create(params)` submits a new animation generation job and returns the created job id, status, and usage metadata.
|
|
295
|
+
- `llamagen.animation.get(id)` fetches an animation generation's status, result, and output video metadata.
|
|
296
296
|
- `llamagen.animation.wait_for_completion(id, **options)` polls video status.
|
|
297
297
|
- `llamagen.animation.create_and_wait(params, **options)` creates and polls.
|
|
298
298
|
|
|
@@ -10,7 +10,7 @@ from typing import Any, Dict, Mapping, Optional, Protocol, Tuple
|
|
|
10
10
|
|
|
11
11
|
from ._errors import LlamaGenAPIError, LlamaGenConnectionError, LlamaGenTimeoutError
|
|
12
12
|
|
|
13
|
-
DEFAULT_USER_AGENT = "llamagen-python/0.1.
|
|
13
|
+
DEFAULT_USER_AGENT = "llamagen-python/0.1.10"
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
class Transport(Protocol):
|
|
@@ -80,7 +80,7 @@ class ClientTests(unittest.TestCase):
|
|
|
80
80
|
self.assertEqual(call["url"], "https://api.llamagen.ai/v1/comics/generations")
|
|
81
81
|
self.assertEqual(call["headers"]["Authorization"], "Bearer test-key")
|
|
82
82
|
self.assertEqual(call["headers"]["Accept"], "application/json")
|
|
83
|
-
self.assertEqual(call["headers"]["User-Agent"], "llamagen-python/0.1.
|
|
83
|
+
self.assertEqual(call["headers"]["User-Agent"], "llamagen-python/0.1.10")
|
|
84
84
|
body = json.loads(call["body"].decode("utf-8"))
|
|
85
85
|
self.assertEqual(body["preset"], "neutral")
|
|
86
86
|
self.assertEqual(body["size"], "1024x1024")
|
|
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
|