Elektordi / obs-websocket-py

Python library to communicate with an obs-websocket server (for OBS Studio)
MIT License
222 stars 59 forks source link

While using PyCharm I do not get autocomplete for methods under requests or events #95

Open ASirrelle opened 1 month ago

ASirrelle commented 1 month ago

I'll prefix this with "I might be doing a dumb", but I've been unable to get autocomplete working for methods under request or events in PyCharm. To be clear, the methods work. It was just fairly difficult finding out what methods there were without being able to see or return any.

I'm using Python 3.7 in PyCharm I've installed obs-websocket-py through PyCharm's Interpreter.

In the init.py I can see events and requests are ClassFactory Instances of Baseevents and Baserequests. I'm assuming this is meant to auto generate all the methods within these two classes and for whatever reason PyCharm says no.

I've found documentation on what methods should exist from another git: https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.json

Should I create a wrapper using this data, or is there a simpler approach which I'm missing? Thanks!

iarspider commented 1 month ago

I think all the event and request classes are generated on-the-fly, so there is nothing for PyCharm to autocomplete.