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.10.0.tar.gz
(602.0 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.10.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf0ad27d46f706e8e0de87bc07c8a249e45b7cf0bbf00824733f2a3536ec0b1c |
|
MD5 | 02a0f56d765ce014ce7b367879cedaa2 |
|
BLAKE2b-256 | e59ac24aff069175c210c7151fc78ab4e6928058898ddad172812f9c31c9ad52 |
Close
Hashes for yara_x-0.10.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f0e266ae5c5879144a9bfc42f64007e415cf9244f0f56a59c71b502f1f905f5 |
|
MD5 | f72248da3562823842482ecf94e3ca83 |
|
BLAKE2b-256 | 7722849ee60d970f287ec7546a1560986c4628006f55210d7c5e3cefde0bab68 |
Close
Hashes for yara_x-0.10.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50228a1860f0a78cbfee65b914e3362a256a8b90881fb99599c0287ad02c03af |
|
MD5 | aa623b2dd9eafb6febbcfe1b3b70aa83 |
|
BLAKE2b-256 | bb30e8df65f0dd45859468df4e55b6ed190bb26c4279b9f7355f8dff9ae7241a |
Close
Hashes for yara_x-0.10.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2661b327d2568fa9ed8823bd7f0915e73092d596ad79b3185bfd378511a36a1b |
|
MD5 | 458f0d8646ea3f4dc5e3b7ddc5995e1d |
|
BLAKE2b-256 | 7c02ca0769c77bc913c70fa63f339c11d0d3136365c22e0711dbecd178d3dfdc |
Close
Hashes for yara_x-0.10.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a3a5f0bb4e53feea2b2123a84e49d72dcf28ebe605fad8a3aed5dd9d1bb9afb |
|
MD5 | 82dd92afdf3b8eadd6f967fdcbe76cca |
|
BLAKE2b-256 | d89c727498225c08b87ad264ad32967bc019e11c5442efa52b4e519fc940145a |
Close
Hashes for yara_x-0.10.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c613644baf178998e9c0bc95eba1d8c9f9c6813cc2bcb28244a7553a91016261 |
|
MD5 | 72407b7aaaf6fc78e3cd566201dd7b64 |
|
BLAKE2b-256 | ef2adcfb3158e209ee4c08336315d397b0f354cc8c90cb6235dc5dc1c72b3f07 |
Close
Hashes for yara_x-0.10.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | be58484e4d7f76fdd190b118021ff5fa5cf70896858007b810e02bc9281506eb |
|
MD5 | f16ce1a5b3b6973bc7a4d33c3401720a |
|
BLAKE2b-256 | b3462ad77d451e9ed8ea1734fbc886cb10546b19496106077d2942438b30697e |
Close
Hashes for yara_x-0.10.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53f8ff2a7283d3c50c7b2ef02d5e620edbd2c14489082095ab17f5dd6d452b3d |
|
MD5 | 1059f7c838a09dd40eb89c503f719c12 |
|
BLAKE2b-256 | e59f9eebdf3d0c90dedcd90bd647698ce4c42e1c4624812cf15e743a9c1e9132 |
Close
Hashes for yara_x-0.10.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe3094524f74914481c9e4e774a71b0f6f8f95aea3517503724bf5ecbb05dfe5 |
|
MD5 | 6e3ee3fabe4dfb72903e41ba7ac80125 |
|
BLAKE2b-256 | de7745781f24e32768611a6b50d3404b383c4a1455d37d7cdefa6cbb1bda27aa |
Close
Hashes for yara_x-0.10.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a50464f12c4982b83d6d298ca22c0ae254ceeb56cea25671ee5bddb0a2cd40ec |
|
MD5 | d4daa8b911a27dc57c49afaa5e2955bb |
|
BLAKE2b-256 | 5cfc0ecdc122e1807dbbfa04d0c2f3a9383d48c5f00af6b34505df02f96d5aef |
Close
Hashes for yara_x-0.10.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4541b792aaa9c7ef702313ac1786a1650acd67affe80d6048add57bcf5e079be |
|
MD5 | 3cdfe6ea9b53122e129a3f0b8c246a91 |
|
BLAKE2b-256 | 3cbaeed49a857f064d42f2f46216b833891225295aa8226bc765f02305f167a2 |
Close
Hashes for yara_x-0.10.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a99734ed433ce6ddf104f74a7c9304ce8ec5bbc5579be9ec94944a31a4264eb0 |
|
MD5 | e198528450fc0520787265258efbbe6f |
|
BLAKE2b-256 | 8089ae94eb4e813221e96aa2dba1a76c9b4f54be86401f99c138c90004fd7fd2 |
Close
Hashes for yara_x-0.10.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fbf2e9be85c248a95950707227fe7e8bf53bde14a633985ad4e100ee20990b9 |
|
MD5 | 543fccf1349fea233dc86de9349835f0 |
|
BLAKE2b-256 | 62a1fea1b68e25f60cb0b8c558a56846133213368d70e12f40eefc3d798768c5 |
Close
Hashes for yara_x-0.10.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45145ce6bf052357df779af293b82fbbe613f3ea123d45a2fc87bed9a47aa95b |
|
MD5 | c4d28456cef37bd5f20f96c95828d894 |
|
BLAKE2b-256 | 140db267efae985d9c8e806d41f1eb5960e24f0ca2dcfb05904cf28c5fc59fdb |
Close
Hashes for yara_x-0.10.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 362cb15e569b13c7c53089b2d13d6b61cafc355f75a04dcb75ae1697944304f3 |
|
MD5 | 86981c2ae99fb49f3985f9a3489be4d7 |
|
BLAKE2b-256 | 08d1f0759b80668f71a10e6c638538341d60812eff0c12724e3cc6121f04b807 |
Close
Hashes for yara_x-0.10.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bde4161aa213d7aacf5504f00c18c50f68f0de836b7fd12c517b194fdb3bbf38 |
|
MD5 | df6b06682b41272ee45645022964257c |
|
BLAKE2b-256 | be6e0197f93a091b248582b8b828110dde10c008ce31ab90910d48c80a5e9d3b |