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.4.0.tar.gz
(488.8 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.4.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03a7bb82cfb82083a43c44fcb10ef220c57624dcfc57851c5d8045664087a61d |
|
MD5 | ee4b7ceab29ca303cc7c1c812b355dd0 |
|
BLAKE2b-256 | 1de83d295a545fa91e0443671ee2d21482b759352191738042a90a3e4687f887 |
Close
Hashes for yara_x-0.4.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b93ed8bd6360d92916990cc7a50b05db30b9f28f0f86dc0969aec032a4664c9 |
|
MD5 | d808c01f98a8cc9fa160a5ab4eb9b606 |
|
BLAKE2b-256 | b08c46b2b3c14e776f59e9248b61a572c53e8cc7032aee3b944707eef51f9f68 |
Close
Hashes for yara_x-0.4.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a60648a710ba2174a94bc5d6f6df8c4a3a1da9af814494de4bdf9a3f964099d |
|
MD5 | e6f32e9cf31124ae76f7af1e6cfc4fdf |
|
BLAKE2b-256 | 991ef5c12b0a0e70620c123d9bcf6262281381ffa5385efc63538f828812edd5 |
Close
Hashes for yara_x-0.4.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4583db7b4706fe12e789ef30d750f0a11fae0d86f884116e50751690b1ea0ba5 |
|
MD5 | e042f3f19775190f4361b66565d2222c |
|
BLAKE2b-256 | 4a59581850e6eb55bb51d34ec26b23d2512aa65d0472b9437ad6c86ed22c5da6 |
Close
Hashes for yara_x-0.4.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cc3fae730fd01ddb7fca62958f3bdbef1c629804d4789485638d9b3f7c5b29e |
|
MD5 | cd0f3438a0b37c66618d7ce047896983 |
|
BLAKE2b-256 | 136333a8f5abe3ad840f51090589ab514bc3672afd850c2d8cb4be96167103e1 |
Close
Hashes for yara_x-0.4.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee1122cb2c9322e7ca6f1cdd6137e97391dc2c971013d1b82ba6fe4cc4b54312 |
|
MD5 | d467121826ec82f0eeb0082d1efa6c64 |
|
BLAKE2b-256 | 1fe9dad40717d543c3c2736a2f8a56c462a88f5bead1d081f3f5f59d1870dbd5 |
Close
Hashes for yara_x-0.4.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 935340994df4bdb52549c72475b2c7bd528b3dd4c79ff11c81e4da36ad1dfca8 |
|
MD5 | 2d8ec57d8fe35180b951779e4c726c27 |
|
BLAKE2b-256 | cb965cff7601fb40c1d7cda41be57bda98579ace4fab8f1dfdc2309cb627b49e |
Close
Hashes for yara_x-0.4.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6e14df6f5fe2bfa247bfdfeca4a98089fa59da2e3b985da5de4ace6aabc696b |
|
MD5 | 7186597adf3fecbcac077767e4d2f7f1 |
|
BLAKE2b-256 | 8627114d2c352d4b1596f98295a228ae775c5785a41630761213330737b4cfc2 |
Close
Hashes for yara_x-0.4.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5d48a16bd69b0dfe1cf0f49872da4625bfb2f9820bc8a7e239991fe115522ce |
|
MD5 | 56f2ef2477cfbebc6ab842bdbe89d41c |
|
BLAKE2b-256 | 61364fc98cfa6f296c82f680e95c2f26fdf753212d6f73338cb5eae8327a2472 |
Close
Hashes for yara_x-0.4.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36298e427753414835370cd7bb4c182364b4f8152c8a7ed35f59ec1a1179f2cc |
|
MD5 | 4f7e91be963ab1304284cc5165539483 |
|
BLAKE2b-256 | c8cd23b6954b9ecb211fdf8c13aea66ca533188eeb4dd06e827b123004e0f0f9 |
Close
Hashes for yara_x-0.4.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb98792151de1fc3e2d1fc53f183a6741b25de422bdd1b97c9fd67809a00994c |
|
MD5 | 1d7ac4124f61369ba8c6f6944aa596b3 |
|
BLAKE2b-256 | ffa0c28846e9969da7a1636543982469d0eefe6091c593870edeb3d2ee9c670d |
Close
Hashes for yara_x-0.4.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c98e510fea3190b0fdf75f7fa5a4dace04a172f94769348752e080da93102e6d |
|
MD5 | b32e4a58d7f4236c84c9efb98a70e129 |
|
BLAKE2b-256 | 9e536a5274fb10ab05819afc6f48a447b0c8f664c4f56354f000097cc1c58ea0 |
Close
Hashes for yara_x-0.4.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb099443ad0a20580656dec578e6c62c317ae4700b264d217cd5c685e7b900ce |
|
MD5 | a065ac1d6e50508848626584a56130ef |
|
BLAKE2b-256 | b555bef69396caeae88357fec6694fb09ec891421f9a2364acd3724203518ae5 |
Close
Hashes for yara_x-0.4.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62d7240334fdf427e2adc5b04b5dbf9b6805e6fe09e054f426125467a54bae51 |
|
MD5 | 289405f4bbfa8ec8049f7f33f82c550e |
|
BLAKE2b-256 | 3bbf3740a82defee03bff224fca0297821b8ff82d07d93c3d386771db811f96e |
Close
Hashes for yara_x-0.4.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30337276d0e9e0f07d1997082a292c2e22d7b8c25b23e6dc336351b80cd9611e |
|
MD5 | 5915cf6c983f6a2e2f6bb82d25123520 |
|
BLAKE2b-256 | 58a7adedc2b27055a532ff522266201148cf2bd8947c94149dcc9d8c2d8ce3fe |
Close
Hashes for yara_x-0.4.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da208b99ab0d0b69fbbab9d2c19898769531351fb490240f7c0fa3d906890ca8 |
|
MD5 | 8cb41cef35c4123f54a959a3b38aab45 |
|
BLAKE2b-256 | e39dfc0884e66ea694c82f0956f39885bdd6a2d071f9976b964dfd3e6ce523f3 |