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.3.0.tar.gz
(484.0 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.3.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de8e7e18a64cbf69878d96123dead98149b0b26ef95416c00a344c9c8ac69ce3 |
|
MD5 | 70ae630ef7800f6811deccc17f10f030 |
|
BLAKE2b-256 | 8bf340f26d98b4c6eaf82c280b2ef6800fa57b516d76d80e9ac0e8e4b2e65113 |
Close
Hashes for yara_x-0.3.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceb174c6c1147e06d457d840048c65c394fc8a7eb5619c2162ca84ce6f977cea |
|
MD5 | 87f2cdebf5c3929152b9f28c459c518d |
|
BLAKE2b-256 | 78de837a316189d606a81069f38243ffbd67645928e692cd67f7bea871b362ea |
Close
Hashes for yara_x-0.3.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26847a8b571f66ffadc1805ee5add37dfb5b8f10d9d60002b4eadf7c23918c5b |
|
MD5 | 970c9e82d00942dd82de757cd8dbcb90 |
|
BLAKE2b-256 | 0b2bf4844e6d7e20f416686ef04a7b69fcce12edb07c7eb10ddbf43add9a0e8d |
Close
Hashes for yara_x-0.3.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2decf0423d486c02819d744f87002bf380abb95397b143e3ab4f94e90451284f |
|
MD5 | e983248065d3cf635f7064389595cd38 |
|
BLAKE2b-256 | 26083f92d27457bbf48b365f64bba8ecb6964b64c999fa361eb93d601d97d93e |
Close
Hashes for yara_x-0.3.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 353103c969a115f884d7fc9e6336bccb7bd203384b05d34379a94154d1effdcd |
|
MD5 | 1c2d3eb58ea91d262cc1467b6da93057 |
|
BLAKE2b-256 | a086089f0e8d7c25cd483881a219f2c2b494fd040a3f9b5082e6474c33e03ddc |
Close
Hashes for yara_x-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26860e17ed35c02cc91a7083120d902bc8af675261f60f85c5823b2ef3bd3832 |
|
MD5 | 106030adbdd82d8c588f43d978036f32 |
|
BLAKE2b-256 | 19f0332a8c2fc7bc1308312c72158bfba282a0a7a95b4fb784d1383cc7ef8115 |
Close
Hashes for yara_x-0.3.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 056e8b004fa89fab39e85c7f5815cb264caabc625f142b5c62b67def84cafd9f |
|
MD5 | 4fa139555a12febf3a2365c442eeabf6 |
|
BLAKE2b-256 | 463a4eb21043edb247007d22d876470f569742703e14e902ff797d2c5453528e |
Close
Hashes for yara_x-0.3.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98a8d8b439904a7c30a5b37f016ceb64677410c3626bca7dc5fef615a5988008 |
|
MD5 | 6ec526ee58a9f2e35cf492776af60c4e |
|
BLAKE2b-256 | 38c4b2787572f36da98ec1a09e0909604e0ec06a92b53d23cfa91126a0d52870 |
Close
Hashes for yara_x-0.3.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aebbe2c4e644aad4e93f5e266854428e53573c1289eac8db0e1e4acaafdc0a29 |
|
MD5 | 4e331c7282de885fbea361bf003eadf8 |
|
BLAKE2b-256 | 47c17d544e032bf52f70cc60051792401d884a810695711e3ebba1eea39de51b |
Close
Hashes for yara_x-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d6f2a4c115e816624c1171ae0a90236711f59495ead94fb39e41e834a589fc9 |
|
MD5 | c056de668c98686045a8405541300cae |
|
BLAKE2b-256 | 3396d1edb477f231ff2d2f49149c130345e39d15540a1f0de39116eb2e369917 |
Close
Hashes for yara_x-0.3.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9837487e95e4d29a5a46e4206a32ee7a0725dce7fcaca61a2249fbbe911abda3 |
|
MD5 | 8c591264a4c6e063c4fa2a5db1c0d676 |
|
BLAKE2b-256 | 78d59141fbf412d883d9f039ffb0b2f2284c2e3db56887aa18f40f54b14a37f6 |
Close
Hashes for yara_x-0.3.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b8e4c9598270fc0da575322e608453b7d925e18b912a405aede24aedf9dc9bc |
|
MD5 | ad95bd38a69f6a9a388a0eb5b83c0105 |
|
BLAKE2b-256 | 735f003ad495493ea731f105e4dda68c4dcb3aa43d213e1575058c9ae3ca4e9b |
Close
Hashes for yara_x-0.3.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a341a61d4e83121ff7c0bfe9f4724e2a205ab89008730eb2fd00938e4048fc87 |
|
MD5 | c75c4a3ff3c4bdf7dad186b12a774b43 |
|
BLAKE2b-256 | fbea64c715fa5cff9a7f3518bf5f5ffcbe83050a58d51336e05ecae95fe18a59 |
Close
Hashes for yara_x-0.3.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34fba7374f55456d82ac7758d98bb59ef34612a2c992e0480aa3ac7647f52543 |
|
MD5 | ac7744e1401ee44ecff2309c8b78a98c |
|
BLAKE2b-256 | d020420b8bb145ae32851e4ff94d98fa7a9ea474c72f70e87841dd6f8099a735 |
Close
Hashes for yara_x-0.3.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee4bd3f625c5623810ad643e4b1e251f099d88c281466ac5ead63de2b0ac5dc9 |
|
MD5 | 12b4ed266a2e79cb8a57f9bb8f0e6dd0 |
|
BLAKE2b-256 | db594707495322cc7ced1e727c6adf14544c41b52e9544fef2149258e741062e |
Close
Hashes for yara_x-0.3.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f789d4f674da2c0e325606c8dd311a419b7e42f1d9dee456983558be51f201db |
|
MD5 | 2004642164cb9a8bf8b36b1f7ceed3ae |
|
BLAKE2b-256 | cc3351d3b4a2414a9324ced15bb59b0686b89a63371581dd83acf2eb7fdbae3f |