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.
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/PKG-INFO +5 -21
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/README.md +4 -20
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/pyproject.toml +1 -1
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/__init__.py +1 -1
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/_http.py +1 -1
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/tests/test_client.py +1 -1
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/.gitignore +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/LICENSE +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/docs/RELEASE.md +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/examples/quickstart.py +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/_client.py +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/_errors.py +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/_types.py +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/py.typed +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/resources/__init__.py +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/src/llamagen/resources/animations.py +0 -0
- {llamagen_python-0.1.8 → llamagen_python-0.1.9}/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.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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|
|
|
@@ -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.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.
|
|
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
|
|
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
|