yara-x-1.9.0
توضیحات
Python bindings for YARA-X
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | yara-x-1.9.0 |
| نام | yara-x |
| نسخه کتابخانه | 1.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://virustotal.github.io/yara-x |
| آدرس اینترنتی | https://pypi.org/project/yara-x/ |
| مجوز | - |


[](https://virustotal.github.io/yara-x/docs/api/python)
[](https://pepy.tech/project/yara-x)
[](https://pepy.tech/project/yara-x)

The official Python library for [YARA-X](https://virustotal.github.io/yara-x).
Supports Python 3.9+ in Linux, MacOS and Windows.
```python
import yara_x
rules = yara_x.compile('''
rule test {
strings:
$a = "foobar"
condition:
$a
}''')
results = rules.scan(b"foobar")
assert results.matching_rules[0].identifier == "test"
assert results.matching_rules[0].patterns[0].identifier == "$a"
assert results.matching_rules[0].patterns[0].matches[0].offset == 0
assert results.matching_rules[0].patterns[0].matches[0].length == 6
```
For more information about how to use this library, please check
the [documentation](https://virustotal.github.io/yara-x/docs/api/python).
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl yara-x-1.9.0:
pip install yara-x-1.9.0.whl
نصب پکیج tar.gz yara-x-1.9.0:
pip install yara-x-1.9.0.tar.gz