Skip to content

Commit

Permalink
updated websockets dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick762 committed Dec 21, 2024
1 parent 1546881 commit 49b6cab
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
packages=find_packages(),
install_requires=[
"requests",
"websockets==11.0.2",
"websockets>=13.1",
"aiohttp>=3.8",
"human-readable-ids==0.1.3",
"jsonpickle==3.0.1",
Expand Down
16 changes: 16 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import asyncio
import json
from streamdeckapi import SDWebsocketMessage, StreamDeckApi

async def __main__():
deck = StreamDeckApi("localhost")
info = await deck.get_info(False)

if info is None:
print("Error getting info")
return

print(json.dumps(info))

loop = asyncio.get_event_loop()
loop.run_until_complete(__main__())
9 changes: 9 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Only used for development!
#

# Start a server
#docker run -v /dev/hidraw7:/dev/hidraw7 -p 6153:6153 --privileged --detached ghcr.io/patrick762/streamdeckapi:main

# Run python tests
python test.py

0 comments on commit 49b6cab

Please sign in to comment.