Skip to content

Commit

Permalink
bump version to v0.3.3 (#50)
Browse files Browse the repository at this point in the history
* bump version to v0.3.3
  • Loading branch information
Genteki authored Sep 10, 2024
1 parent 2792d6a commit 3c5fb84
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyvts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"""

__version__ = "0.3.2"
__version__ = "0.3.3"
__all__ = ["vts", "vts_request", "config", "error"]

from .vts import vts
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from setuptools import setup, find_packages

DESCRIPTION = "A python library for interacting with the VTube Studio API"
VERSION = "v0.3.2"
VERSION = "v0.3.3"

setup(
name="pyvts",
Expand Down
20 changes: 20 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import pyvts
import asyncio


async def main():
myvts = pyvts.vts()
await myvts.connect()
await myvts.request_authenticate_token()
await myvts.request_authenticate() # use token
response_data = await myvts.request(myvts.vts_request.requestHotKeyList())
print(response_data)
hotkey_list = []
for hotkey in response_data['data']['availableHotkeys']:
hotkey_list.append(hotkey['name'])
send_hotkey_request = myvts.vts_request.requestTriggerHotKey(hotkey_list[0])
await myvts.request(send_hotkey_request) # send request to play 'My Animation 1'
await myvts.close()

if __name__ == "__main__":
asyncio.run(main())

0 comments on commit 3c5fb84

Please sign in to comment.