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.9.0.tar.gz
(594.4 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.9.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8b7aa8cbb9019611b36b19be320ea6cb503c597a5425c06897214e9daca7d52 |
|
MD5 | a0eaae92379d18ef88cda36e6ebe4be7 |
|
BLAKE2b-256 | 2bced0b82260bd649fdd943e8d17bc8775b240c11b14054993fb666f7c11e9c2 |
Close
Hashes for yara_x-0.9.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60642da87e8cd11c69d78da9d6be484e04f060f6485b832daa9a32c6d8b5f63a |
|
MD5 | eebf40b11b95cbf2da8080bface8b1dd |
|
BLAKE2b-256 | 3264fe5cdc46c134c92c1a4ca07fa2e70a509f595e760fe8ee0b56fdb035100a |
Close
Hashes for yara_x-0.9.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7238d1e219f964849cc3cc27e23b72fa97947ffb99ad6b63f201fe0b09207c9 |
|
MD5 | 75ebce57cb30d68bc7706805ac77a59f |
|
BLAKE2b-256 | 366ab72d392b11b0169800354c2cb54473c32d8e31a39c53c0c25f716605f557 |
Close
Hashes for yara_x-0.9.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25ab13350cc2267acd7c0a8f58304b2db41712a76d7f25f345de4ad07747fffc |
|
MD5 | 8681e555a27fed588982e4fc4f3eba4e |
|
BLAKE2b-256 | 56b14ae3f47aff9c4bf45485d941a83ae37e3a62745ca48ba173fff77aadec59 |
Close
Hashes for yara_x-0.9.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ade8114036ca4bf0ade7862f3272ee7cfeefeb13f26bf969f9d75c8b2c022408 |
|
MD5 | 4c5486fdb7c37ab6f0a18a957c441e5f |
|
BLAKE2b-256 | 4574c4c1e80c1b42791aa3fea8289d8214700be01c88a152396ea4b9624c4af8 |
Close
Hashes for yara_x-0.9.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93aa0697ed025c9c733b951bb6c6306a63800a98efd03a70a95ae3999f76160e |
|
MD5 | a7a82c4b72ebe6ecca32b9e19952d657 |
|
BLAKE2b-256 | 4d020eb440442b84248be4b2eb48a11152bee8182067306f9f9ba7be22f08c49 |
Close
Hashes for yara_x-0.9.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfcc3ba16cd0666342f9b2ca827fa014f4807f14503fe17df873085b2544cd2f |
|
MD5 | 9636bdc279aaefd17938c2a288ae3da6 |
|
BLAKE2b-256 | 7bed193a873c5634875bb054bf28561acd48aeb96fc3a63898c07d342dbf4ffc |
Close
Hashes for yara_x-0.9.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 988c758e463747afe7d23306bd20660e020d2d884b824d7d6da4cb0c45892713 |
|
MD5 | 912232c38fec494bcde0121ecfa90091 |
|
BLAKE2b-256 | 54e8ff85a7d124a0ab319e70fac13043b3340060ac003e4ad7d2792ba2e3f488 |
Close
Hashes for yara_x-0.9.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7fb25389df5c1338a4af554fa738009831dab09f01d5801ead11510af9aa6a6 |
|
MD5 | e6a133365a4646377c1d042c0ede3e15 |
|
BLAKE2b-256 | 9dcd12a0aa2858451f026fe89bad6e6b1e3d1dc74ef36b6334d2663844283d69 |
Close
Hashes for yara_x-0.9.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df6f37b990fd38c2280ca87f48cda184d40c7d5c45fcd5c676534ea38d7ab73 |
|
MD5 | e9ef5fee7a6bd341dd93f19a174a5955 |
|
BLAKE2b-256 | dfbc58ee638d86586f7ca5b1087f2b7c68fecd93f04c671fb79436e528d5dab9 |
Close
Hashes for yara_x-0.9.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bc002a9337b013d01800db152842a59fd6b52c7068832b9dfda83fcdeda559d |
|
MD5 | f265980fa9d06d1344af43b1b73f1677 |
|
BLAKE2b-256 | c0ee3fa93429ee6d911730b58824cbb8883901aa3f2bfc9f03859fdc1afaa21d |
Close
Hashes for yara_x-0.9.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c09c2616d828e773d143484b1edfe89123a491cba2524e3316d38648c06c9ec |
|
MD5 | 906752a2f92ceb180a534dfcb5d84d54 |
|
BLAKE2b-256 | 8382187fb942915844c1cb1879a441b80f8a6d858d95932a4d0efb7c7d744a26 |
Close
Hashes for yara_x-0.9.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ca841407f2bb91d469b4b3e86f52af1c30cfa5bf05514b25887c4cedfaa284b |
|
MD5 | c630811d2a9e3a486ba96b74d99daafb |
|
BLAKE2b-256 | 0c696ae394b50752104df072982dcd3abb3e66c8435f5ed6a573fe961551e45d |
Close
Hashes for yara_x-0.9.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bce01f36e090c4b47bb15a4adb451f8a6db220815ac630dec0ea8e15d5e7c93c |
|
MD5 | 36c56b6fe84123f4f87d236c768881db |
|
BLAKE2b-256 | 265f1a34feff6af2fe87372ababe88b46aeca72c7a3643a743e8c1c922bc4d3a |
Close
Hashes for yara_x-0.9.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35b3c6621e0d1df629cbbd9f1efc1d1e7b3fdf533927db140e5edfa25539a063 |
|
MD5 | dcde97e23a800563eb60fd2b2f09d530 |
|
BLAKE2b-256 | 7d595c2b6b461ac6450b7122f988ed7ef652c7f0e40cd401e0ad94832d9daf54 |
Close
Hashes for yara_x-0.9.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d004155220f7efab652189b297462e8d976c9f88a2af11a73822cbe4c5f825 |
|
MD5 | 62b4ebf72ce116a9cce39413465798e3 |
|
BLAKE2b-256 | 3367fc742664e230090c2dcaf65449285e843e0b05c98f9d51718578caf5f807 |