Python bindings for YARA-X
Project description
This Python package allows using YARA-X from your Python programs.
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
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.2.0.tar.gz
(479.7 kB
view hashes)
Built Distributions
Close
Hashes for yara_x-0.2.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55b5b8f0e5bd9d1d5bde3ec684556654d92eb3035f3ca2d87b7a807ad7f24f45 |
|
MD5 | da236f98bd4481e4eb116e9334a3dec8 |
|
BLAKE2b-256 | 1e2ac8956860219d57c954356eabe3adb76c9e91c91b90bf78166d1a309fd7a5 |
Close
Hashes for yara_x-0.2.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb4751e7fce2c320513c5edd5e15e82f04e6b96d5db701d01d1dd8b027096189 |
|
MD5 | 040e2dacba7a60e1b78ed2b7e2ef3ebc |
|
BLAKE2b-256 | 7b3f0e6d3f5237aed5dae31bc5fb1a78f9d14b96f2122e56c8ade23bd2a69836 |
Close
Hashes for yara_x-0.2.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef42c4a6ec090605f2be7332154d360da50ad4f2aa4c160086ca0ac5afa68e5 |
|
MD5 | f0a22b7d75123109d5736cd9b20ee081 |
|
BLAKE2b-256 | b009f4913295dcbc449d4687196569539e3ab051aaa0bf7824dba62c8c26aaf9 |
Close
Hashes for yara_x-0.2.0-pp310-pypy310_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18e55f4ce4b246f70a96d94b32c20e18e8cf095232af15ed7b38597b170da5fc |
|
MD5 | ab535b7c05d4e298ab1aa19e42b4afb1 |
|
BLAKE2b-256 | b150bb359e9086a305ef1263c03cec8442a701081f348d86a41b07c101fd628c |
Close
Hashes for yara_x-0.2.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a872dabc1d802a9b9a7894d9e276a75907739483acf399195b5caf7c2f2329 |
|
MD5 | ea63faed17209327a60d7d6dc69c8ee2 |
|
BLAKE2b-256 | e11adb439d77c51a370ee45c4ac567ef6c00be59fc0b2a6bb46f4c4d76e19ad8 |
Close
Hashes for yara_x-0.2.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f19c4e09131a1653fe51facbf93c8e925343654132b19c9b06ce52efe6cd4c38 |
|
MD5 | 23cd13ae7e87108950be7b845e0652cb |
|
BLAKE2b-256 | 2786f7a47dd4b000f5c4b0c97ac1078e8f4482fa3f9d75e875839f9b8e5a7d72 |
Close
Hashes for yara_x-0.2.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 552e09b60bfad2f399ed1c7f70e47795a6b2d02e31f4d060b3565d73e1c3bd73 |
|
MD5 | 64c107344ff19b589a7b07ff3f62a17b |
|
BLAKE2b-256 | ac42fd20fee255de8ee67f63bc6a40f77388102b577361c2cdcc354ad6c75b1e |
Close
Hashes for yara_x-0.2.0-pp39-pypy39_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0be16bbdbc7c39119c9cfc6ca4ab1f9e27d1e1c736c47238a6698d71088a8c7d |
|
MD5 | 9d079b5ffdcfd133276ffcf612b4a870 |
|
BLAKE2b-256 | 1d1431f3ba276331da5df96edcbdd2fb1616f22cac7abb27d0aa1868a1b26d24 |
Close
Hashes for yara_x-0.2.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed36cc02180904de5e78b6289e4089d7e283ffa61cd0365559387358f7233416 |
|
MD5 | b129b8cfd275df3294344dc8e720d567 |
|
BLAKE2b-256 | dde1cf5dc0ac115e15498ca6a775046f001df5371f957d4a39c24cff35605be1 |
Close
Hashes for yara_x-0.2.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7a7e9355c1aed9e51c70dbc1ae0920f17277da58900608e01a1bdedfc75e553 |
|
MD5 | a542a4993caeb575c6d3949e59b165c5 |
|
BLAKE2b-256 | aa56a4b91e68bb32236aa91c8d47a399dd5c46b6839e9b5ad70eb3fb415d3199 |
Close
Hashes for yara_x-0.2.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e697a7c749c52c4771fe20f37dd0227e93689c198d0e462718af442a4a793c7e |
|
MD5 | 434fb996affc5fe2686f06595026779a |
|
BLAKE2b-256 | 876cfa7c1c43d38677b8b679d7e18993d962e00a197cd54b9e05a64fac0ef1da |
Close
Hashes for yara_x-0.2.0-pp38-pypy38_pp73-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b25705c7377d82e71e11cf1776a9ad12f39bcc55419ba4d4ab1b688d9882eaaf |
|
MD5 | 58eaedc37fffa3078e0a8dfcb1db2990 |
|
BLAKE2b-256 | cd2072d3033d345ee2b7e8b8f9d63993c1c05710ff3f2d3eb3328ce76c06e779 |
Close
Hashes for yara_x-0.2.0-cp38-abi3-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e81e7e7530d17c77d462ef2cbbb1c0baf99df230ae4e24366f27022dad6010e |
|
MD5 | 5eaf55c6285e0a1f8b735195ab70c3ee |
|
BLAKE2b-256 | 566264fa51714cb3404595d289c27146a71fc9987820aab6190431cb1fc951b4 |
Close
Hashes for yara_x-0.2.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7d38a84760ac2038ebf434c08216c82936581578acebd9f290ad0d59e103f95 |
|
MD5 | 3c2418c08926f4994fbb3988b26cceb6 |
|
BLAKE2b-256 | da432a49ae39c039e55ce2cd6e51cf5138f1c5ddea84d6ff21f416d21bba41f8 |
Close
Hashes for yara_x-0.2.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a15def0ba9aa754afaac3c0cabf174d542c2e7fd58a133a034872aadc4b55d |
|
MD5 | 2f27ff0637eb085741f77786a1485c7a |
|
BLAKE2b-256 | e537cc5b716fd060329b801a5b41213e16b953974c718e8ca7f8ed67cd666c39 |
Close
Hashes for yara_x-0.2.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5c4875f8d94281f3acbe502ee751fff254cf15e61d49f3792f13ece5ceefc31 |
|
MD5 | a9908e6f46e3082cb935b1bc233ac582 |
|
BLAKE2b-256 | 6cbbfbc8a53116fb8aa09fafa7aa2cfbcddac0d9db6da0b2b6f6433fc5f389a6 |