The compiled yara-python is missing a python interface file (.pyi).
Without such an interface definition, support in IDEs is quite limited (no type hinting, no code completion).
I've created a small interface file based on the documentation, which is definitely not 100% correct, but enough to enable code completion and type hinting in VSCode:
Adding a correct .pyi file to this repo, which can also be autogenerated using mypys stubgen (https://mypy.readthedocs.io/en/stable/stubgen.html), would obviously be the preferred solution.
I already tried autogeneration with stubgen, which did not work that good (function parameters and type hints were missing).
The compiled yara-python is missing a python interface file (.pyi).
Without such an interface definition, support in IDEs is quite limited (no type hinting, no code completion).
I've created a small interface file based on the documentation, which is definitely not 100% correct, but enough to enable code completion and type hinting in VSCode:
Adding a correct .pyi file to this repo, which can also be autogenerated using mypys stubgen (https://mypy.readthedocs.io/en/stable/stubgen.html), would obviously be the preferred solution. I already tried autogeneration with stubgen, which did not work that good (function parameters and type hints were missing).