loongson/pypi/: yara-x-1.19.0 metadata and description
Python bindings for YARA-X
| classifiers |
|
| description_content_type | text/markdown; charset=UTF-8; variant=GFM |
| keywords | pattern-matching,cybersecurity,forensics,malware,yara |
| project_urls |
|
| requires_python | >=3.9 |
| File | Tox results | History |
|---|---|---|
yara_x-1.19.0-cp38-abi3-manylinux_2_36_loongarch64.whl
|
|


[](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).
Render warnings:
<string>:11: (WARNING/2) Inline literal start-string without end-string.

[](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).
Render warnings:
<string>:11: (WARNING/2) Inline literal start-string without end-string.