Would you consider publishing python api stubs for the full saleae HLA interface?
When developing python HLA extensions, it is useful to have intellisense / autocomplete.
Python supports stub files, that can be used for this.
Attached is an initial setup for this, which is manually extracted from API Documentation
Drop the attached files in a folder ‘saleae’ and autocomplete / type hints should mostly be working.
Example of it in action:
saleae.zip (1.5 KB)
@Mark Thanks for the suggestion! This sounds like a great idea. I’ll bring this up with our software / product teams during our next meet up.
You know I did get typing working in vscode before but I don’t recall how - I need to look into that.
The python sources for the saleae analyzers module can be found here: "C:\Program Files\Logic\resources\windows\pythonlibs\lib\site-packages\saleae\analyzers"
If I have time I’ll see if I can get something working again in vscode to get intelliSense working.
Those are incomplete, that was my first attempt.
It seems to be missing quite some classes, that are probably written in c or embedded in something.
Extracting the attached zip file works for the most part, but not all my definitions (based on the api docs) are fully complete.