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.6.0.tar.gz
(547.7 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.6.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b50fc1c1827b5700c9d31c7080c130604e1114aa4f0844c18a463a4f76e00732 |
|
MD5 | a9b934c529cc44513a6e145b89207f1c |
|
BLAKE2b-256 | 4ed429e3504ea61967f012a7a45d33365c3fb8ae362f184b1260567d2a751364 |
Close
Hashes for yara_x-0.6.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff408124b4febaabe251cffd1585d9377caec93a2af7159be56b2a236b30689a |
|
MD5 | 32ec36664ed8674fb7b285b0ecc00f0d |
|
BLAKE2b-256 | 80eb89e5b74c66e00c293024403dc597028983a07d4d09bebd87e9dda36f5a76 |
Close
Hashes for yara_x-0.6.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd2883b934abc6e21b2671027882b74512e2b2d40b53eaf85779af4efb88f623 |
|
MD5 | 24548305f9a0dc4eed6ea9f3942219ad |
|
BLAKE2b-256 | 957343910da7de038c4db6f982fcf61e211543b7b8cea1ba62f1c8f498edf4a5 |
Close
Hashes for yara_x-0.6.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c485274f49a0d88925c0132af571f71aae0477dbf5f7caa7ab1bd58ae0057d24 |
|
MD5 | 16e7513a391e5310d8b1e8d08cf688de |
|
BLAKE2b-256 | 569776e8c3667f5af0340bc34f4288f7f9a088854101739070b763274d704193 |
Close
Hashes for yara_x-0.6.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bd38737a4be9dfea6a2c31ad0579a3964a73460ec747a9187785fefae12ce33 |
|
MD5 | a9d9a6ee8f9af8c49e7a119c27f2733b |
|
BLAKE2b-256 | a61238841b53e3c608481a60e697a3b4a305901c8699b93efc6eb9db1dcf7180 |
Close
Hashes for yara_x-0.6.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8496ada1e2e7063d212d3b08287dc7547e8c7bc5ae1308c8ea16de07bc4bbe51 |
|
MD5 | 16b1f4c1458660dd2207ecdc40786b07 |
|
BLAKE2b-256 | 563289536f1027ae18bbe641cc3c6e1f24c4879a9fa85d14bf4a42e937f1663f |
Close
Hashes for yara_x-0.6.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b99a9f2ec4b4cb06a232926f84378f469d1d5743abd4917dbe127d2364bfeb9d |
|
MD5 | 9ad756c6521fe14787a048db292be6c8 |
|
BLAKE2b-256 | 4c2650491fe298a92e9601420359fafc19c5a8773ac38bd723178b0dd8124a09 |
Close
Hashes for yara_x-0.6.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4edf2e6508b8b84ee48bfcd77bd810ec7c15a8609c5f777d6dc21e66973a9ff4 |
|
MD5 | ef4776aade9670282b28352cd12019ca |
|
BLAKE2b-256 | da45ecfbccb7a7d8a7d2fcd15a36794ff91ff1ab3ddf01471e72a5622c676b06 |
Close
Hashes for yara_x-0.6.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5098346db6c580cf8436178d54cddab5eea4762cf794e06722b1504b5e747377 |
|
MD5 | 75b41c605226ab2b0c35f1ec3117b106 |
|
BLAKE2b-256 | 008fadb5f92c3be82bffc6dda49d4e108e28f9f1be391098c1a7688c5d6e5394 |
Close
Hashes for yara_x-0.6.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8faf16b066df0f60817402e68ec781159bd67bb7156aa787c4ea2803ef045d22 |
|
MD5 | c6ad43e84b77b808e0a505be556c8771 |
|
BLAKE2b-256 | 846b6712f38d8b4f41e133c8f13990f91259851cf27354c21da715e0e8156fea |
Close
Hashes for yara_x-0.6.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 801c0c9d0a52965ecaf55572b7984eac0000ca7d7670066a11dfb3271d0901cc |
|
MD5 | 8cfc72fe04da75a0fc2519388a552565 |
|
BLAKE2b-256 | 455c627d2247fbcf6c19a231ff44ac042ae0bbc3fc272384c3aca8887dda928a |
Close
Hashes for yara_x-0.6.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26ccd306fb7e8926c26978632fced3cc9366052f4be8371f7e99e5f767888282 |
|
MD5 | e5d295accdaf4b482558176556801f0b |
|
BLAKE2b-256 | 0d58d3f3088666db8fc52300289517142d71d6ba515a10a8df290d3b62c93dc4 |
Close
Hashes for yara_x-0.6.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d53b9f4d0fd4ad9ae784bb3cd64b141746fe8564c44a118e63cb2928b592b93 |
|
MD5 | dcdde8bebcd25fa7c14f834f16ebb6d0 |
|
BLAKE2b-256 | fc984bd119ac8122d1965b6f692431aa2402a849de10fcc3f2682b1304c390c3 |
Close
Hashes for yara_x-0.6.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae5939230279cb446e1b5d4bdd6e0e280a912501cda420aa798446be4e8ced27 |
|
MD5 | adf888f693afc45bda0e5c40ef3ab658 |
|
BLAKE2b-256 | 7b49b5398bc332c76908f34a26854ebd44b77f72ac7d34f6baae1f5a321ec2e0 |
Close
Hashes for yara_x-0.6.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ce0341a7af888d18853f9efb0f13bd9a26667aace33d75780b0759db1ee212 |
|
MD5 | cf0bce7de211c4b4d9f97787bcc9856d |
|
BLAKE2b-256 | dc358bf0267299039851736a3bf537da498f3efe156636922c0f1a7e436ebf83 |
Close
Hashes for yara_x-0.6.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33fc61a4892e0a035560a77bc98dd3dbb0d1437459d0d8253eb6d4fb1b8b474c |
|
MD5 | 6b115886e5b1d17b987fd50dbe4f5663 |
|
BLAKE2b-256 | a7603c9600b958eeeb3a8fc4254ad0cdbc19b0590ed0e3c02207cff00986dd52 |