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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llamagen-python
3
- Version: 0.1.9
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)` calls `POST /v1/comics/generations`.
141
- - `llamagen.comic.get(id, page=None, panel=None)` calls `GET /v1/comics/generations/{id}`.
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()` calls `GET /v1/comics/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)` calls `POST /v1/artworks/generations`.
320
- - `llamagen.animation.get(id)` calls `GET /v1/artworks/generations/{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)` calls `POST /v1/comics/generations`.
116
- - `llamagen.comic.get(id, page=None, panel=None)` calls `GET /v1/comics/generations/{id}`.
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()` calls `GET /v1/comics/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)` calls `POST /v1/artworks/generations`.
295
- - `llamagen.animation.get(id)` calls `GET /v1/artworks/generations/{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
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "llamagen-python"
7
- version = "0.1.9"
7
+ version = "0.1.10"
8
8
  description = "Official Python SDK for LlamaGen Comic API and Animation API"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -14,4 +14,4 @@ __all__ = [
14
14
  "SUPPORTED_COMIC_SIZES",
15
15
  ]
16
16
 
17
- __version__ = "0.1.9"
17
+ __version__ = "0.1.10"
@@ -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.9"
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.9")
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")