Commit Graph

57 Commits

Author SHA1 Message Date
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
Adem
69b0d4137a
Merge pull request #10 from onyx-and-iris/main
pass empty dict if data is None in trigger()
2022-09-26 22:55:19 +03: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
Adem
c2b6757796
Merge pull request #9 from onyx-and-iris/main
added some missing return statements where reponse fields expected.
2022-09-13 02:21:53 +03: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
Adem
b039d26114
Merge pull request #8 from onyx-and-iris/main
return response field for stop_record
2022-09-13 01:30:00 +03:00
onyx-and-iris
9dbc5766c8 return response field for stop_record
patch bump
2022-09-12 01:24:40 +01:00
Adem
46369548ed
Pypi badge updated 2022-09-04 14:36:01 +03:00
aatikturk
6311234d48 namechange ops 2022-09-04 14:20:40 +03:00
Adem
3ec77321be
modify readme according to repo name change. 2022-09-04 14:10:34 +03:00
Adem
641a151cfd
updated readme
After OBS v28 release, websocket is no longer a requirement as it comes included with the new version.
2022-09-01 22:29:23 +03:00
Adem
dc6829434c
Merge pull request #6 from onyx-and-iris/main
support python 3.10
2022-08-31 23:01:23 +03:00
onyx-and-iris
66a06617c6 add readmes to examples. 2022-08-31 20:13:44 +01:00
onyx-and-iris
7c6ebd1dae add support for python 3.10.
update python ver in readme

all tests run and passed for version 3.10

setup.py removed from gitignore.
2022-08-31 20:13:23 +01:00
Adem
35b7c16b6b
update readme
ReqClient  object initialization  should be done as follows
```python
from obsstudio_sdk import reqs
cl = reqs.ReqClient(host, port, password)
```
2022-08-26 13:17:29 +03:00
bd791524d4
Merge pull request #4 from onyx-and-iris/main
add pypi badge to readme
2022-08-05 13:39:57 +01:00
onyx-and-iris
1302641558 add pypi badge to readme
patch bump
2022-08-05 13:30:12 +01:00
Adem
4b8fec7cb5
Merge pull request #3 from onyx-and-iris/main
readme updated. some extra tests.
2022-07-30 20:52:19 +03:00
onyx-and-iris
472ff30719 remove redundant imports in tests 2022-07-30 17:18:01 +01:00
onyx-and-iris
7d4f63aa6d add callback.deregister to readme 2022-07-30 16:47:12 +01:00
onyx-and-iris
56da8c7fac fix name extras_require 2022-07-30 16:40:27 +01:00
onyx-and-iris
064a4aa11d More request tests added.
development dependencies added to setup.py

fix error in __init__

kind parameter for get_input_list in reqclient now optional.

request tests create/destroy test scenes on setup/teardown.

license, isort, black badges added to readme.
2022-07-30 16:37:07 +01:00
aatikturk
87c4e3cdcd edited gitignore and setup.py 2022-07-29 16:34:43 +03:00
Adem
eda5ee66e0
Merge pull request #2 from onyx-and-iris/main
Support for events + other changes.
2022-07-29 15:06:06 +03:00
onyx-and-iris
e145362726 added test_attrs
added tests to test_request

keys in attrs() list now snake cased
2022-07-29 02:42:44 +01:00
onyx-and-iris
ce9bc7e8d6 add attrs to dataclasses 2022-07-28 11:55:05 +01:00
onyx-and-iris
00a97b1d8b dict expansion for defaultkwarg 2022-07-28 10:00:24 +01:00
onyx-and-iris
051b5898a2 change example in main to use kwargs. 2022-07-28 00:12:45 +01:00
onyx-and-iris
5b2bc6e13a update version in hotkey example.
add hotkey 0
2022-07-27 23:54:46 +01:00
onyx-and-iris
13a0694190 changes to to_camel_case and to_snake_case 2022-07-27 23:19:10 +01:00
onyx-and-iris
20851c3880 request and event data now returned as dataclasses
unit tests updated accordingly
2022-07-27 22:44:40 +01:00
onyx-and-iris
f5c2293dce add callback unit tests.
callback deregister now accepts iterable.
2022-07-27 20:49:45 +01:00
onyx-and-iris
95b1cb27da add defaultkwarg into eventclient 2022-07-27 19:49:37 +01:00
onyx-and-iris
b1c281e8a1 fix event client name in example 2022-07-27 19:43:34 +01:00
onyx-and-iris
2a3a86c277 EventsClient renamed to EventClient
remove getter, setter for send.

add persistend data unit test

add hotkey example

default event sub now 0. explicitly define subs in event class.
now subs can be set as kwarg
2022-07-27 19:39:33 +01:00
onyx-and-iris
c71d7e4ea9 remove redundant imports 2022-07-26 23:12:34 +01:00
onyx-and-iris
ec048e1aef md change 2022-07-26 23:09:14 +01:00
onyx-and-iris
35173733bc md change 2022-07-26 23:08:07 +01:00
onyx-and-iris
0819bb4342 upd import in readme 2022-07-26 22:25:31 +01:00
onyx-and-iris
0819149d09 move link to documentation into its own section 2022-07-26 22:18:32 +01:00
onyx-and-iris
1c24b4bc1e snake case func name to match changes 2022-07-26 22:06:06 +01:00
onyx-and-iris
59d66d6ede md change in readme 2022-07-26 22:05:09 +01:00
onyx-and-iris
eed83946c8 reqclient methods now snake cased.
getter, setter added.

initial test commit
2022-07-26 21:48:52 +01:00
onyx-and-iris
d36b9cf713 add error class 2022-07-26 21:47:50 +01:00
onyx-and-iris
362ec22257 no longer sending event name to callback
update tests accordingly
2022-07-26 21:47:41 +01:00
onyx-and-iris
5532ecef03 check for response type in req 2022-07-26 21:46:59 +01:00
onyx-and-iris
c8f2b6419d add subs intenum to baseclient
expand events example
2022-07-26 04:36:55 +01:00
onyx-and-iris
82ddbacd7d send event name to callback
add requirements to readme.
2022-07-26 03:31:32 +01:00
onyx-and-iris
d37cda9976 refreshed ignored files 2022-07-26 01:03:57 +01:00
onyx-and-iris
5399b66e45 upd gitignore 2022-07-26 00:56:07 +01:00