llamagen-python 0.1.8__tar.gz → 0.1.9__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.8
3
+ Version: 0.1.9
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
@@ -81,26 +81,10 @@ done = client.comic.wait_for_completion(created["id"], timeout_ms=WAIT_TIMEOUT_M
81
81
  print("comic.wait_for_completion:", done["id"], done.get("status"), done.get("comics"))
82
82
  ```
83
83
 
84
- The full runnable demo is in [`examples/quickstart.py`](examples/quickstart.py):
85
-
86
- ```bash
87
- python examples/quickstart.py
88
- ```
89
-
90
- Pass a local image path to run the upload example:
91
-
92
- ```bash
93
- python examples/quickstart.py upload /path/to/reference.png
94
- ```
95
-
96
- Other README examples are available as subcommands, such as `comic-create`,
97
- `comic-create-advanced`, `comic-get`, `comic-wait`, `comic-create-and-wait`,
98
- `comic-continue`, `comic-update-panel`, `usage`, `animation-create`,
99
- `animation-create-wait`, `animation-wait`, and `animation-create-and-wait`.
100
-
101
- All Python examples below are self-contained for copy/paste usage. Replace
102
- `YOUR_COMIC_ID` or `YOUR_ANIMATION_ID` with an existing generation ID when an
103
- example fetches, waits for, continues, or updates an existing job.
84
+ All Python examples below are self-contained for copy/paste usage in your own
85
+ script, notebook, worker, or backend service. Replace `YOUR_COMIC_ID` or
86
+ `YOUR_ANIMATION_ID` with an existing generation ID when an example fetches,
87
+ waits for, continues, or updates an existing job.
104
88
 
105
89
  ## Configure The Client
106
90
 
@@ -56,26 +56,10 @@ done = client.comic.wait_for_completion(created["id"], timeout_ms=WAIT_TIMEOUT_M
56
56
  print("comic.wait_for_completion:", done["id"], done.get("status"), done.get("comics"))
57
57
  ```
58
58
 
59
- The full runnable demo is in [`examples/quickstart.py`](examples/quickstart.py):
60
-
61
- ```bash
62
- python examples/quickstart.py
63
- ```
64
-
65
- Pass a local image path to run the upload example:
66
-
67
- ```bash
68
- python examples/quickstart.py upload /path/to/reference.png
69
- ```
70
-
71
- Other README examples are available as subcommands, such as `comic-create`,
72
- `comic-create-advanced`, `comic-get`, `comic-wait`, `comic-create-and-wait`,
73
- `comic-continue`, `comic-update-panel`, `usage`, `animation-create`,
74
- `animation-create-wait`, `animation-wait`, and `animation-create-and-wait`.
75
-
76
- All Python examples below are self-contained for copy/paste usage. Replace
77
- `YOUR_COMIC_ID` or `YOUR_ANIMATION_ID` with an existing generation ID when an
78
- example fetches, waits for, continues, or updates an existing job.
59
+ All Python examples below are self-contained for copy/paste usage in your own
60
+ script, notebook, worker, or backend service. Replace `YOUR_COMIC_ID` or
61
+ `YOUR_ANIMATION_ID` with an existing generation ID when an example fetches,
62
+ waits for, continues, or updates an existing job.
79
63
 
80
64
  ## Configure The Client
81
65
 
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "llamagen-python"
7
- version = "0.1.8"
7
+ version = "0.1.9"
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.8"
17
+ __version__ = "0.1.9"
@@ -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.8"
13
+ DEFAULT_USER_AGENT = "llamagen-python/0.1.9"
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.8")
83
+ self.assertEqual(call["headers"]["User-Agent"], "llamagen-python/0.1.9")
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