Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit 8cb4784

Browse files
author
Ari Archer
committed
3.2.0 : add visit api
Signed-off-by: Ari Archer <[email protected]>
1 parent 29c20c8 commit 8cb4784

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

awc/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
from . import const, exc, util
1313

14-
__version__: typing.Final[str] = "3.1.0"
14+
__version__: typing.Final[str] = "3.2.0"
1515

1616

1717
class Awc:

awc/api.py

+10
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,13 @@ def anon(awc: Awc, content: str) -> str:
196196
"content": util.truncate(content, const.MAX_CONTENT_LEN),
197197
},
198198
).text
199+
200+
201+
def visit(awc: Awc) -> str:
202+
"""visit api
203+
204+
awc: awc.Awc -- the awc.Awc instance to work on
205+
206+
return str -- the returned svg"""
207+
208+
return awc.get(api="visit").text

0 commit comments

Comments
 (0)