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

Commit

Permalink
3.2.0 : add visit api
Browse files Browse the repository at this point in the history
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
  • Loading branch information
Ari Archer committed May 19, 2023
1 parent 29c20c8 commit 8cb4784
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion awc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from . import const, exc, util

__version__: typing.Final[str] = "3.1.0"
__version__: typing.Final[str] = "3.2.0"


class Awc:
Expand Down
10 changes: 10 additions & 0 deletions awc/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,13 @@ def anon(awc: Awc, content: str) -> str:
"content": util.truncate(content, const.MAX_CONTENT_LEN),
},
).text


def visit(awc: Awc) -> str:
"""visit api
awc: awc.Awc -- the awc.Awc instance to work on
return str -- the returned svg"""

return awc.get(api="visit").text

0 comments on commit 8cb4784

Please sign in to comment.