Commit Graph

17 Commits

Author SHA1 Message Date
83afe31e04
Update baseclient.py
lazy load tomli/tomllib as suggested in #17
2022-12-04 19:34:55 +00:00
Kamal Mostafa
71c1e65483 allow use without installing tomllib
When ObsClient(host='...', port='...', password='...') are provided,
importing tomllib is not actually necessary.  Allow for tomllib to
not be installed at all, and only raise a tomllib ModuleNotFoundError
if (host, port, password) are not provided.
2022-11-30 06:09:19 +00:00
0e39496c59 pass payload for call_vendor_request
add alias methods for hotkey requests ? perhaps this is not required...
2022-11-18 15:09:57 +00:00
42f78a2048 sort imports 2022-11-17 17:59:20 +00:00
f6f542e765 no need to merge here. 2022-11-17 12:11:53 +00:00
da6d83057c minor bump 2022-11-17 11:32:14 +00:00
9fa5b3f4b4 add values to defautlkwargs.
if no conn kwargs then check and merge config.toml

raise error if auth enabled but no password

add full request payload to logger
2022-11-17 11:30:39 +00:00
onyx-and-iris
c4ee2347ba add version.py
add pyproject.toml

add .hatch to gitignore
2022-10-28 16:57:06 +01:00
onyx-and-iris
d4ae72dee5 Subs moved into enum.py
Subs now exported
2022-10-26 11:08:24 +01:00
onyx-and-iris
5e7860d3ed override repr 2022-10-25 05:28:50 +01:00
onyx-and-iris
c3ebc5e777 typo fix 2022-10-24 22:49:16 +01:00
onyx-and-iris
60d083b238 change debug msg 2022-10-24 22:48:41 +01:00
onyx-and-iris
27fd86efa5 only check for host+port values in init.
only pass auth token if auth enabled

add context manager methods to reqclient.

added logging
2022-10-24 22:42:16 +01:00
onyx-and-iris
1db3b2db4d pass empty dict if data is None in trigger()
fixes bug with ExitStarted event.

remove redundant assignment in conn_from_toml

add explicit call to ws.close() in unsubscribe()

patch bump
2022-09-26 10:58:02 +01:00
onyx-and-iris
90ad4ac962 added some missing return statements where reponse fields expected.
added output methods to ReqClient.

bump tomli dependency ver

minor bump.
2022-09-12 23:52:50 +01:00
onyx-and-iris
9dbc5766c8 return response field for stop_record
patch bump
2022-09-12 01:24:40 +01:00
aatikturk
6311234d48 namechange ops 2022-09-04 14:20:40 +03:00