Commit Graph
49 Commits
Author SHA1 Message Date
onyx_online efaee7594e should a socket operation be attempted after socket closed
then catch and log OSError and close thread.
2024-01-07 12:35:20 +00:00
onyx_online 2cebd5eedb upd examples, they now use context managers 2024-01-07 11:21:01 +00:00
onyx_online cac236c004 removes timeout for socket before starting worker thread 2024-01-07 11:19:33 +00:00
onyx_online 6aa6db09eb adds an event object and listens until its set
sets the event object on WebSocketConnectionClosedException

adds __enter__(), __exit__() methods

adds disconnect() to event client. aliases it as unsubscribe

checks for non-empty response with:
`if r := self.base_client.ws.recv()`
before attempting to json.load() it.
2024-01-05 09:57:08 +00:00
onyx_online f1c2efa4a1 adds disconnect() method to ReqClient
now calling disconnect() in __exit__()
2024-01-05 09:36:02 +00:00
onyx_online 1494208f63 patch bump for issue #37 2023-10-23 12:43:59 +01:00
onyx_online 3c36619173 Merge pull request #36 from onyx-and-iris/add-projector-methods
Add projector methods
2023-10-10 17:38:53 +01:00
onyx_online c4cf817042 split at full stop 2023-10-09 22:34:05 +01:00
onyx_online ba5da8dfef upd obsbasic hotkey list in tests 2023-10-09 22:29:18 +01:00
onyx_online 83577e2d61 adds projector methods with a deprecation warning
patch bump

closes #35
2023-10-09 22:06:18 +01:00
onyx_online 780f07e25f minor version bump 2023-08-14 12:18:29 +01:00
onyx_online 70a422696e expand the Requests section in README
add a section about the {ReqClient}.send() method.
2023-08-14 11:11:46 +01:00
onyx_online a7ef61018b refactor OBSSDKRequestError
reword error section in README
2023-08-14 00:44:59 +01:00
onyx_online 013cf15024 check req_name and code
for OBSSDKRequestError class
2023-08-12 14:51:44 +01:00
onyx_online f88e8ee3a6 Errors section in readme updated 2023-08-11 22:35:25 +01:00
onyx_online 6fa24fe609 error tests added 2023-08-11 22:33:56 +01:00
onyx_online ffd215aadf send now raises an OBSSDKRequestError
it is then logged and rethrown
2023-08-11 22:33:41 +01:00
onyx_online f3e75c0ddf OBSSDKError is now the base custom error class
OBSSDKTimeoutError and OBSSDKRequestError subclass it

req_name and error code set as error class attributes.
2023-08-11 22:32:50 +01:00
onyx_online 5db7a705c5 log and rethrow TimeoutError on connection
we can just encode challenge here.

shorten opcode != 2 message
2023-08-11 22:31:03 +01:00
onyx_online ca72b92eb3 Merge pull request #30 from aatikturk/client_auth_loggers
auth logger for clients
2023-07-04 17:17:44 +01:00
onyx_online 98b17b6749 add .python-version to .gitignore 2023-06-30 22:44:50 +01:00
onyx_online 5462c47b65 log errors raised in authenticate() 2023-06-28 17:56:56 +01:00
onyx_online 126e5cb0a4 raise OBSSDKError if auth reponse opcode != 2 2023-06-28 17:56:29 +01:00
onyx_online 2c07f242ad added module level loggers.
class loggers implemented as child loggers.

patch bump
2023-06-22 22:17:20 +01:00
onyx_online 4e45de17ea Merge pull request #27 from aatikturk/25-question-set-timeout-for-connection-request
Added 'timeout' option for  baseclient
2023-06-19 18:25:12 +01:00
onyx_online 491a26aaf7 minor ver bump 2023-06-19 17:51:16 +01:00
onyx_online d84d30b752 update readme Errors section 2023-06-19 17:46:43 +01:00
onyx_online 9e3c1d3f37 raise timeout errors.
added some error/exception logging.

added timeout parameter to repr methods.
2023-06-19 17:45:49 +01:00
onyx_online 82b6cdcd04 add error class OBSSDKTimeoutError 2023-06-19 17:44:10 +01:00
onyx_online d1c7462cc6 patch bump 2023-03-09 01:38:53 +00:00
onyx_online 2de7151739 update README
advises placing config.toml in user home dir
2023-03-09 01:36:21 +00:00
onyx_online 91ba90056c adds get_filepath
traverses a list of paths for config.toml
2023-03-09 01:34:44 +00:00
onyx_online 48e90c82fb alter format of __repr__ in Req + Event clients
password now defaults to empty string, not None.
2022-12-05 18:18:10 +00:00
onyx_online cc9b1e2c72 lower min python required version to 3.9
python ver test matrix added to hatch config

minor version bump
2022-12-05 16:49:17 +00:00
onyx_online 41b0dfbe4b ensure studio mode is disabled at end of test run 2022-12-05 16:43:07 +00:00
onyx_online cf888b0c4a conn paramters added to __repr__ magic methods
add __str__ override (used in logger)
2022-12-05 16:41:34 +00:00
onyx_online 92e2c29bd6 enum.py renamed to subs.py.
No changes to file contents.

relative import changed in __init__.py
2022-12-05 16:39:33 +00:00
onyx_online 335fa42948 Merge pull request #17 from kamalmostafa/no-tomllib
allow use without installing tomllib
2022-12-04 19:37:25 +00:00
onyx_online 83afe31e04 Update baseclient.py
lazy load tomli/tomllib as suggested in #17
2022-12-04 19:34:55 +00:00
onyx_online 5294e1afe2 Merge pull request #18 from kamalmostafa/send-raw
send(..., raw=True) returns raw responseData
2022-12-04 18:07:08 +00:00
onyx_online c6cbe1c894 Merge pull request #19 from kamalmostafa/fix-SendStreamCaption
SendStreamCaption requires payload "captionText"
2022-12-04 18:06:42 +00:00
onyx_online 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
onyx_online 42f78a2048 sort imports 2022-11-17 17:59:20 +00:00
onyx_online f6f542e765 no need to merge here. 2022-11-17 12:11:53 +00:00
onyx_online 8d2b5f3447 Merge branch 'dev' of https://github.com/onyx-and-iris/obsws-python into dev 2022-11-17 11:32:26 +00:00
onyx_online da6d83057c minor bump 2022-11-17 11:32:14 +00:00
onyx_online aaa881ee3b add defaultkwarg section to readme.
fix callback function names in readme.

add logging section to readme
2022-11-17 11:32:03 +00:00
onyx_online 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_online bd791524d4 Merge pull request #4 from onyx-and-iris/main
add pypi badge to readme
2022-08-05 13:39:57 +01:00