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.7.0.tar.gz
(561.5 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.7.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2173bd44d0d320326c76b403233c38a262a830d452eff44d36c17f8b45678bc7 |
|
MD5 | ff38efe5891e72cae52db3a81f0cb6e5 |
|
BLAKE2b-256 | 3481928b0f6369085318759c8426c8b6d848b2d5148eb70b5bce36a73682f806 |
Close
Hashes for yara_x-0.7.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1fc6dc0dc6991886346858c36940528f0a2d2baa5dd96f516dba4dac212f0ca |
|
MD5 | 2ae1d0e3b125b969a2dcabe5dd3b0ac8 |
|
BLAKE2b-256 | 59bdd48acae34a8b7c9a53f7d9b6c73cfabbcddf2be1708af983657a3c8cef17 |
Close
Hashes for yara_x-0.7.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61eb42212d088d24890925c5d4e1bfefa907babf8c7ae94e717b268b7eb9a502 |
|
MD5 | c9080740674c5364d5839dbec45a4306 |
|
BLAKE2b-256 | 52a64c5d2a7c4918b28b384149f3249ccc7474968300b3948ae593a03058b91e |
Close
Hashes for yara_x-0.7.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 814ffd0f1e3236766ab5b8966870a69153f3c7fbcf5bf96f56a72d1024a2c360 |
|
MD5 | e5c6364caa7382d9cd53329759e0a4e1 |
|
BLAKE2b-256 | f797f3304d686a3fce2d170b77ad89fe3b74fcd5f42357a78b92446743d8dfae |
Close
Hashes for yara_x-0.7.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae128c68cd74b217aff4b5bbb84e0bfdbb2f27d10862629e83688f1509b35fb5 |
|
MD5 | f69aa3fddc6ea031960566f2f24c10c3 |
|
BLAKE2b-256 | a6a6dee9251e679c666be56b29609fc39116e3d9fd2feeb2a81823004049042d |
Close
Hashes for yara_x-0.7.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfb07cc995e97d338aac8d0012eed9f5e3c87f8f406a3fa7c8c54a51b518f996 |
|
MD5 | 69aa23671827ef0adc921346950c0391 |
|
BLAKE2b-256 | 6a83559f326c10798a346a90feb0e56fd5be989f7b0181d38e6389ee10b4daaf |
Close
Hashes for yara_x-0.7.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcfa1806d3de2e67b35fe25a4b9e3ac23efd7321d1c2b25003337b067f82199a |
|
MD5 | 78299bf4af3afb710bf9680ee7c786e5 |
|
BLAKE2b-256 | 86c05437200c43d0f2a48e1edd3a0292a6fcb614c9d6dc459177153f1fbd0e8a |
Close
Hashes for yara_x-0.7.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d24787db5e8fd21dd5fc22b2d922b2838e67a86ec1b0412b7203795835c5baf9 |
|
MD5 | 195db9d1723797aaf94c30d1848b40cf |
|
BLAKE2b-256 | 359fcec93ca6fd6392daabc31de3358d99e34e0a04a6a44c833ca123720d8a46 |
Close
Hashes for yara_x-0.7.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 234c3eba0824daaf25a7c3bc460ecfe2e33e9fb15bf4c2683c93911b5d49444a |
|
MD5 | e0f248e29ce6bf5ec354dba59ac4f828 |
|
BLAKE2b-256 | bd6482810cb0eba26dfb0f3a7d29ccc2e3ec3df81e5f6a9a7042cb696e022a67 |
Close
Hashes for yara_x-0.7.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 185cf72c48470f30c9ce53a49b29b63fe5edf8db93870c6db6c4b6582c89c9dc |
|
MD5 | 9959b57cdaf76414effb61eb9257a6d2 |
|
BLAKE2b-256 | 29388a1083d2480aea0ec3873d178a4cb77b34b9b1502188733334edb82362b2 |
Close
Hashes for yara_x-0.7.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6396b82f9488b3a2b4ff3408d01e2aef66af2dc386b42bddf43685f979c303c9 |
|
MD5 | a25c5685f0a1f23bb34e1ce2f58f76c4 |
|
BLAKE2b-256 | 6aa5754a430cb752a0908ec0930ecffa159a04183318872707df26b2e1ea643e |
Close
Hashes for yara_x-0.7.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4b68987c2f0462d6485e6cd8efa266c2f94a03ba1ef9100a57a14ff65b0983d |
|
MD5 | 5cb0251e97ac2d380a7c31a7b099ba8f |
|
BLAKE2b-256 | 4fb4be1d5950b475d8f8b9748f4dd29bc5816ae1f6346b09572da38ed66c09bd |
Close
Hashes for yara_x-0.7.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d34cc8804c68ba33cbfce7ec61971126b85344f0bc7e23e412c2cc393002d2fd |
|
MD5 | 45a86b76e5d6ccfab34f0a1e7cea94c4 |
|
BLAKE2b-256 | 559dc31f4fa948284d6980afddab79de12544a609bd12a6257c65dd5363bd1fd |
Close
Hashes for yara_x-0.7.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ce6cf93a196196a0d3a1a1b1f7e54eca4a9b95a6373cdc3e0d175f1ccfd8cc6 |
|
MD5 | deec915f17c53ed79a59db3a23433c7f |
|
BLAKE2b-256 | 52245231952492c84e185b7088a852b5baedcd6b36cee11351c16e2aebd7cad4 |
Close
Hashes for yara_x-0.7.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c40bc478f75edc5b96662c8ada0fae53d3dc26fa8d35e1f443398b99f5a1d6fa |
|
MD5 | 01bef6805d13e5c50468617150c588fd |
|
BLAKE2b-256 | 10eab92a9179d7138790cc527cf65b0d3e91166ea292e6594c2f16517cda3ec2 |