VirusTotal / yara-python

The Python interface for YARA
http://virustotal.github.io/yara/
Apache License 2.0
637 stars 178 forks source link

4.3.0 Doesn't Show the Match Strings #225

Closed rajeshnatarajkp closed 1 year ago

rajeshnatarajkp commented 1 year ago

https://pypi.org/project/yara-python/4.3.0/ Expectation - print(matches[0].strings) [(10L, '$a', 'lmn')]

On local testing it shows only the index of the matched pattern - image

plusvic commented 1 year ago

This is due to a backward-incompatible change in the API that was necessary to accommodate more information about each matching pattern. See the description for this commit: https://github.com/VirusTotal/yara-python/commit/65378d4dc87166dc7a96e345da036ab7311284fd

I've updated the README file, the example was out-of-date.