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
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.5.0.tar.gz
(495.3 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.5.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bae77fca536dab176398d4bbe1b782e7cf773c4faf8b76611d4809303b7aead |
|
MD5 | 26f8fa201be7833184ddec1099458e2c |
|
BLAKE2b-256 | e19d2c35bc98bc9c970190e02b7f57db6ede3441778f777d5a462aff146b5a28 |
Close
Hashes for yara_x-0.5.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f206cbd0841f473c94e434500a15a0bda01f821613246691dcdcd8697ab7bedd |
|
MD5 | ba649eb6962f6bcc5fb77b436f084468 |
|
BLAKE2b-256 | 3270b966d9f12a2d48befb3c3dd2aa8808aa6a5958bc572d8f4230d89926dbd3 |
Close
Hashes for yara_x-0.5.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912a13df460264ca26bf5284084762cfb467e410f6ee3045e12901f3ed495fee |
|
MD5 | 07e0b26a576aa7e2e5bbb0c123cbd4ef |
|
BLAKE2b-256 | ba85c6c89e0c520c144917266a5a4c5931b024a247455f38c70817d2fff05c57 |
Close
Hashes for yara_x-0.5.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a27100039a6d6ad7400d2e62f62cc70a21096df8f84c6f6f66c14107ed0c75a0 |
|
MD5 | c2efab209f1f3c7ccc803f66a982de5e |
|
BLAKE2b-256 | 8fd559de51cdd7de922cc5c1d512a3bf7cba9d66e49353f3263f10579bc9891c |
Close
Hashes for yara_x-0.5.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92d11afee0eae06485e2aa421ce62d01bc621f837b413c820b1341d706a7c09b |
|
MD5 | 03cc38091cb81ed45019bf94fc39fb3d |
|
BLAKE2b-256 | 1b8aed1b5fc3197ba0373f5ffba55455243487614295d498a92f313a11ec99b3 |
Close
Hashes for yara_x-0.5.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782b2527bfc61d4300c4dcbb51968ce96f569c6ec0cab3a8f4d3c5a31ddd9131 |
|
MD5 | 0fd7f1cfb217aeea2bcdd5549a1fc23c |
|
BLAKE2b-256 | 1f7e1d8316373b571c218a3c85be7c222070039fa06adffdeaab28d698ea3d5e |
Close
Hashes for yara_x-0.5.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52adf6f12da446abe4f97effd5796aa420cb0080490fa2aedfcb0c4fd6ddd6c1 |
|
MD5 | ab564c1120e49e88308efb85e33d1acd |
|
BLAKE2b-256 | b2fabd189e03e3bb06a8b077ace1b9366ae6af4ffd1db4606f0c46914dc07f0c |
Close
Hashes for yara_x-0.5.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6f5d41d6242de2e7fb236e15746f664a3abf1effdb5d4c21f44d3a5d2010901 |
|
MD5 | 94949712174732abb90e77d349588003 |
|
BLAKE2b-256 | 9507c2afbee3b7ec560f7f17a662896dbe3496ac53e9231fa32a4ee9667b1035 |
Close
Hashes for yara_x-0.5.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ab71b8b948b0ee746d4acf8ad4930e096860d46d1f7e4e00dff3f5961c25cec |
|
MD5 | ad36b8efb6ac96736444568100b740ac |
|
BLAKE2b-256 | d7c41c1ab9a35bdb4280429fa784d69f16fcb451ffdbeeb7208c200855b10ae0 |
Close
Hashes for yara_x-0.5.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a65fd6dff5562d7d060b49bd96f98ffd68abaebe1747cd6bce69f478062ddd |
|
MD5 | aaa030a8246b131f4e102bacf69505f6 |
|
BLAKE2b-256 | 642dc0b1626f9f70f41f4ec520df65e56d2a652b2052858015bbe2f67da7c58f |
Close
Hashes for yara_x-0.5.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dde0d9e35150d4cb68c23b56fce2cdd1f7bec434735c6e5f703d719ffea8a81 |
|
MD5 | 00cbd53f682f59cc617fda4062e03374 |
|
BLAKE2b-256 | a3d2b3b8cf3ac0c4978b58b8b51ed6bf3c6516408dd710b858856346b197a3c7 |
Close
Hashes for yara_x-0.5.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4c0a2900f0bd86724ae2913d6f7dd4456b14547283e791570b383cad04e9d69 |
|
MD5 | 7756a58aadef192dfa08f65143e7d201 |
|
BLAKE2b-256 | ba72dd4b0645786363c22cc56c06b0ad49b1ccd4929a021189d1cfe9de8ab7e4 |
Close
Hashes for yara_x-0.5.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9740c3030f165f129472ef32c40cf650f331c62766ca78b1a8e7b8aa03302ab4 |
|
MD5 | 20536425cf53e5cb7de6d42cb738f6f9 |
|
BLAKE2b-256 | fe3eff31b81f640e8e7eefd2fd88b71c41f208a0c980c03b1a3bb069fa9c3efc |
Close
Hashes for yara_x-0.5.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b9f5529450902a2f8192442d6f3759c552a7a4eba06cff3a690c7705fdc8a57 |
|
MD5 | d0eee8647fa48e5c0894912d0e6e9c6d |
|
BLAKE2b-256 | 3a91afc18150f564ba01808dc54d6142f3000890acf112a072062a1faa51798e |
Close
Hashes for yara_x-0.5.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 494e092208a69011e17957a63068d1377c1a0e9efe7418ad48836201df07bd30 |
|
MD5 | 2444225c8b26b800c1ca2ea0189cd833 |
|
BLAKE2b-256 | 9410a2d02d7c7cfcc7d45eed840c17deda86fb9b8ae3fc6493a21b653434560a |