Python bindings for YARA-X
Project description
The official Python library for YARA-X. Supports Python 3.8+ in Linux, MacOS and Windows.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yara_x-0.8.0.tar.gz
(578.0 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.8.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15c7aa305127984cc49b88b7a7146a6e1b21609ce87300c210400749d9af3491 |
|
MD5 | 9c05bc8f5d6bf2829f3341c2bc820362 |
|
BLAKE2b-256 | 5396cab13c21a23041cc969a5b0236d58512a249c15046e455dedb8f532938f6 |
Close
Hashes for yara_x-0.8.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f037b8fb0a4a3d7340984a98675bafa26f9d0cf08449c7af3367400e5b6eb9b |
|
MD5 | 12bb957273808eded6e5214774d6be13 |
|
BLAKE2b-256 | bbdd9e30c1a73fcd11efd38d34d5d09095587264693e57b08b2f0fd8361ab615 |
Close
Hashes for yara_x-0.8.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf76654c517fa02089e1d82f4954b3be399e3fecda1634cc62116556751135ed |
|
MD5 | a209d6c7e0144c795f2c5a92e5ddf90a |
|
BLAKE2b-256 | d4cba4c66a9a887e10e6556c4aba4acd08c63c3d97ff0a0850473fe962a9631c |
Close
Hashes for yara_x-0.8.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52b24e312550af7d0a6f6f95b2d390917c14f342c7a9c8fc49046c2829c0489d |
|
MD5 | aa038ad2d7217112cffc68ea7a816b8f |
|
BLAKE2b-256 | 55ed6b6ea3be7313976666529ba6bd044e6c156d65bbe0225e4270341b20fa4d |
Close
Hashes for yara_x-0.8.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e2fbf75097ff72fc0895a15bca6fdeb207df11e694f1b85c514ea541e2eac7a0 |
|
MD5 | 441e05a3eabdc0f7fc20f095369ddd1b |
|
BLAKE2b-256 | 4584936d0493f32adda100c0e8e98ef0490c6f3f8b85d983ee1ee4d32e177ccb |
Close
Hashes for yara_x-0.8.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73258053097b0dc321c7304565725b9d48f46a84a153ac51e3750a3c31fdf6d5 |
|
MD5 | a95171419c0a58d35f26580e67c2b0c9 |
|
BLAKE2b-256 | b76af9f83023ac41db2bf91dec361cd25984447d65eaa86f22a502410a6915ad |
Close
Hashes for yara_x-0.8.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8cb27118cd5960331f4026172bd37d7ec58958f44a4ec31348d0ba46e818cf8 |
|
MD5 | 608e595e3ad25d247e312552b393ab22 |
|
BLAKE2b-256 | 483b5c728394ec496c58d48f8ce33d32fa1f6f5c20dc5410b4cced5b8bbbed40 |
Close
Hashes for yara_x-0.8.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4272f5a90404832dcca9e7a2e45f66822059fdba2bc095b9d21d037afcd7b73 |
|
MD5 | 2f36a64a49af232302ec90da79681df4 |
|
BLAKE2b-256 | 5a5b0ac783a5aa7a96f761710381087a855a4a55aa19f3f76baffb27a2c68126 |
Close
Hashes for yara_x-0.8.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a166a0854b1d9eaaa4c8009680806d579dec121357148a28c809be8962f6a24 |
|
MD5 | d3f7ff7ae446be0e953080a67ea0fac5 |
|
BLAKE2b-256 | 148266a53293111229231b217f4e9591e9a136bd793025845908435ad0eee03d |
Close
Hashes for yara_x-0.8.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 088982a0a0d9c529632b42ab75ef6b84af56450bfe6030fef5f29174bdba6664 |
|
MD5 | 68fabc13b0a7451830ec2e6c28777761 |
|
BLAKE2b-256 | 13ce40a3dfe1e4b6786fe916a7322585dc4155f93da57194132925a3001caf87 |
Close
Hashes for yara_x-0.8.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0df5986a04e45bba3034cdb5f3dc52627ec83a627b252abf808c13d92f77e62f |
|
MD5 | 7ea1ff702315ff78c5f492bee1b4f8c2 |
|
BLAKE2b-256 | 45568119cd82788e4c503c150d5b9d714334d8b534ed3a810189a05aff09e5ee |
Close
Hashes for yara_x-0.8.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b59a21acfc5c2044482ae1dd85f96ee75581c419b6237fe2121fdcfe06aa62ca |
|
MD5 | 7bc705a41a8eaa0b17ac21f25e961647 |
|
BLAKE2b-256 | 5c93ae72a6b57820102a5749f522b1f841c95c30bc143fa4d977a75c7026eaa5 |
Close
Hashes for yara_x-0.8.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b23f780bca7c196a2470b48d60ed9929550dedc685ac58410edd7500ef09512 |
|
MD5 | 1d20767fd2ba965c389f5a699dcd696b |
|
BLAKE2b-256 | dbd1df88e7da1fcd118f2d4cb6f71c86ecd4201fd376d730e50631307e16bef5 |
Close
Hashes for yara_x-0.8.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3feee9369f8ee5ebe66f27c3d5364909ea52eaf404c38feb9e16ba76ed2794ff |
|
MD5 | b8ac5de9371d36c7b8adac4c5cfcb980 |
|
BLAKE2b-256 | 1a28a8d9038f1aa910bb4c7414f96eecf236733ee5b54c6e7194f04c9c4be0d3 |
Close
Hashes for yara_x-0.8.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d94ff7d84684e9f127f312537141aa4666824b848304a4a69b4bde26f30a535 |
|
MD5 | 3d7e07db86534f6dbe67e8b2494e3f80 |
|
BLAKE2b-256 | 954cbc77d4da899e686a9d9784202c1f956b00a1c877112ee28c3555197f7fc5 |
Close
Hashes for yara_x-0.8.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92f4ecd1e2852c622b59c42a4eee18e1700469847c78d7778f447c2849f5bed4 |
|
MD5 | 75da99f6d69a5a2cfd670cc62b0d2b96 |
|
BLAKE2b-256 | 4c728e85e20e5bcca6d8ac1fa4bb8e5a3d9be41d82da7d78efe56aadcbe19ad7 |