Skip to content

Commit

Permalink
Release 0.0.1-beta10
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 11, 2024
1 parent 142ec86 commit 8f3a56e
Show file tree
Hide file tree
Showing 151 changed files with 4,816 additions and 13,779 deletions.
28 changes: 7 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@ pip install gooeyai
Instantiate and use the client with the following:

```python
from gooey import AnimationPrompt, Gooey
from gooey import Gooey

client = Gooey(
api_key="YOUR_API_KEY",
)
client.animate(
animation_prompts=[
AnimationPrompt(
frame="frame",
prompt="prompt",
)
],
)
client.post_v3video_bots_async()
```

## Async Client
Expand All @@ -38,22 +31,15 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
```python
import asyncio

from gooey import AnimationPrompt, AsyncGooey
from gooey import AsyncGooey

client = AsyncGooey(
api_key="YOUR_API_KEY",
)


async def main() -> None:
await client.animate(
animation_prompts=[
AnimationPrompt(
frame="frame",
prompt="prompt",
)
],
)
await client.post_v3video_bots_async()


asyncio.run(main())
Expand All @@ -68,7 +54,7 @@ will be thrown.
from gooey.core.api_error import ApiError

try:
client.animate(...)
client.post_v3video_bots_async(...)
except ApiError as e:
print(e.status_code)
print(e.body)
Expand All @@ -91,7 +77,7 @@ A request is deemed retriable when any of the following HTTP status codes is ret
Use the `max_retries` request option to configure this behavior.

```python
client.animate(..., {
client.post_v3video_bots_async(..., {
"max_retries": 1
})
```
Expand All @@ -111,7 +97,7 @@ client = Gooey(


# Override timeout for a specific method
client.animate(..., {
client.post_v3video_bots_async(..., {
"timeout_in_seconds": 1
})
```
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gooeyai"
version = "0.0.1-beta9"
version = "0.0.1-beta10"
description = ""
readme = "README.md"
authors = []
Expand Down
Loading

0 comments on commit 8f3a56e

Please sign in to comment.