This Python package allows using [YARA-X](https://virustotal.github.com/yara-x)
from your Python programs.
```python
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
```
Raw data
{
"_id": null,
"home_page": null,
"name": "yara-x",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "pattern-matching, cybersecurity, forensics, malware, yara",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/87/9e/1e3271e3a76979dd22c1bae0891703078218561a49d1db349111a111cb31/yara_x-0.2.1.tar.gz",
"platform": null,
"description": "This Python package allows using [YARA-X](https://virustotal.github.com/yara-x)\nfrom your Python programs.\n\n```python\nimport yara_x\n\nrules = yara_x.compile('''\n rule test { \n strings: \n $a = \"foobar\" \n condition: \n $a\n }''')\n\nresults = rules.scan(b\"foobar\")\n\nassert results.matching_rules[0].identifier == \"test\"\nassert results.matching_rules[0].patterns[0].identifier == \"$a\"\nassert results.matching_rules[0].patterns[0].matches[0].offset == 0\nassert results.matching_rules[0].patterns[0].matches[0].length == 6\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Python bindings for YARA-X",
"version": "0.2.1",
"project_urls": {
"homepage": "https://virustotal.github.io/yara-x",
"repository": "https://github.com/VirusTotal/yara-x.git"
},
"split_keywords": [
"pattern-matching",
" cybersecurity",
" forensics",
" malware",
" yara"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "9211497637c9f2321f376bf638936d58fcac57ee4036d3011f79b05dd6f80a3f",
"md5": "689cb1674627b4c34443a390a860ee9d",
"sha256": "9185bdf85ccd8eaeab4b0306a3571542b512fddd37bdf0cabdc47e3b57b4052f"
},
"downloads": -1,
"filename": "yara_x-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "689cb1674627b4c34443a390a860ee9d",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 6463470,
"upload_time": "2024-04-30T08:50:29",
"upload_time_iso_8601": "2024-04-30T08:50:29.655910Z",
"url": "https://files.pythonhosted.org/packages/92/11/497637c9f2321f376bf638936d58fcac57ee4036d3011f79b05dd6f80a3f/yara_x-0.2.1-cp38-abi3-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "831ffbcd305c1c2cb7ead9dc611a412c12896feda76ebcad63984bb90b1c0efb",
"md5": "d97502a351c898263cd906dc6aae0591",
"sha256": "af357f55cf13ac914e01b7583e6448d362192dcd9d96fcbd7d4a22ead54a0458"
},
"downloads": -1,
"filename": "yara_x-0.2.1-cp38-abi3-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "d97502a351c898263cd906dc6aae0591",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 6082880,
"upload_time": "2024-04-30T08:50:31",
"upload_time_iso_8601": "2024-04-30T08:50:31.485572Z",
"url": "https://files.pythonhosted.org/packages/83/1f/fbcd305c1c2cb7ead9dc611a412c12896feda76ebcad63984bb90b1c0efb/yara_x-0.2.1-cp38-abi3-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4878016d24d86565befc6c9feffd26eeb886514142d08364b6891bedac2e5a49",
"md5": "95336784eb775691790b7abde6d95e48",
"sha256": "7e1b3ecd63fd87ede06d03d47c9e34525c14b324097fffe222adf58dd3fdac54"
},
"downloads": -1,
"filename": "yara_x-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "95336784eb775691790b7abde6d95e48",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 7386858,
"upload_time": "2024-04-30T08:50:33",
"upload_time_iso_8601": "2024-04-30T08:50:33.571481Z",
"url": "https://files.pythonhosted.org/packages/48/78/016d24d86565befc6c9feffd26eeb886514142d08364b6891bedac2e5a49/yara_x-0.2.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dc9162a3f2da25ca805e7276360c6a35a12533e49523c122bb2286d6ff5739f6",
"md5": "dc54dada175175bbb890ea21b42a6fd4",
"sha256": "e1c4f09564e7ffb72dc8dfa06eaa48f693d600e27f90d6640b7af8ea3502a8e0"
},
"downloads": -1,
"filename": "yara_x-0.2.1-cp38-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "dc54dada175175bbb890ea21b42a6fd4",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.8",
"size": 5604533,
"upload_time": "2024-04-30T08:50:35",
"upload_time_iso_8601": "2024-04-30T08:50:35.059841Z",
"url": "https://files.pythonhosted.org/packages/dc/91/62a3f2da25ca805e7276360c6a35a12533e49523c122bb2286d6ff5739f6/yara_x-0.2.1-cp38-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f8e92c8df916bf67b848ea09e90f07f1ede93ecb9f653302b3241c875238b154",
"md5": "c387e50882416bee63ad6d216b76c9c7",
"sha256": "a3738f046d0e44aaa92b0a1d7fba0e1d5935ff6ffadf966fb1fdd955e5325fc5"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "c387e50882416bee63ad6d216b76c9c7",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.8",
"size": 6451102,
"upload_time": "2024-04-30T08:50:36",
"upload_time_iso_8601": "2024-04-30T08:50:36.771198Z",
"url": "https://files.pythonhosted.org/packages/f8/e9/2c8df916bf67b848ea09e90f07f1ede93ecb9f653302b3241c875238b154/yara_x-0.2.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "28de741ec227b97eedb7aa3ed2dfb7f37a8e787b457c38eed735e9ce7a0692cb",
"md5": "8a4a71f9afb6002bcae2a60be7ad3b9d",
"sha256": "d10c9049ab2a00f6a2154ffbab53fb2804d7e7b749de17dc0a6dcde34b671e9a"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "8a4a71f9afb6002bcae2a60be7ad3b9d",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.8",
"size": 6077035,
"upload_time": "2024-04-30T08:50:38",
"upload_time_iso_8601": "2024-04-30T08:50:38.195479Z",
"url": "https://files.pythonhosted.org/packages/28/de/741ec227b97eedb7aa3ed2dfb7f37a8e787b457c38eed735e9ce7a0692cb/yara_x-0.2.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4d01b1668b8cb511765aa1e820de75c63b62934f3a97f2c279acef2c7773bb22",
"md5": "bd02748519e73efadc959be66e404e3d",
"sha256": "715faf067fb38878a95218e9aaafb8d2961c343d20759d537d57e81037e59144"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "bd02748519e73efadc959be66e404e3d",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.8",
"size": 7378322,
"upload_time": "2024-04-30T08:50:40",
"upload_time_iso_8601": "2024-04-30T08:50:40.859533Z",
"url": "https://files.pythonhosted.org/packages/4d/01/b1668b8cb511765aa1e820de75c63b62934f3a97f2c279acef2c7773bb22/yara_x-0.2.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f839b1b27bbd289bb56f15d158482b75bca81152223e7af5a21cec061b886a7c",
"md5": "50cc1410672ec5dad20a4cb32e5c6b05",
"sha256": "48650e611b4085e39250771b7e1d18da27b85544a927d32902914c11cbf15030"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp310-pypy310_pp73-win_amd64.whl",
"has_sig": false,
"md5_digest": "50cc1410672ec5dad20a4cb32e5c6b05",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.8",
"size": 5598624,
"upload_time": "2024-04-30T08:50:43",
"upload_time_iso_8601": "2024-04-30T08:50:43.543474Z",
"url": "https://files.pythonhosted.org/packages/f8/39/b1b27bbd289bb56f15d158482b75bca81152223e7af5a21cec061b886a7c/yara_x-0.2.1-pp310-pypy310_pp73-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dcdf571b3ddc26941315dd87519bfe3877b68fe9971c414a1d3888cd0be60c41",
"md5": "10cfb58881c5c1d4d8e082f09b481fc3",
"sha256": "0455ee21dcc7b9639334702ce21ee4fb60285d6b4606039fa8c6abaeffb5a15a"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp38-pypy38_pp73-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "10cfb58881c5c1d4d8e082f09b481fc3",
"packagetype": "bdist_wheel",
"python_version": "pp38",
"requires_python": ">=3.8",
"size": 6452486,
"upload_time": "2024-04-30T08:50:44",
"upload_time_iso_8601": "2024-04-30T08:50:44.941168Z",
"url": "https://files.pythonhosted.org/packages/dc/df/571b3ddc26941315dd87519bfe3877b68fe9971c414a1d3888cd0be60c41/yara_x-0.2.1-pp38-pypy38_pp73-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "495d091f00cecac44a45f7491fb43de49dd34172ef21c41c9638ab19959ba157",
"md5": "77298640c08ff769c3e58d0bfb3c87ff",
"sha256": "4505d17631844a55c2b613baeb1591f2919f9a0d1f62dbce3f5f698665bdee0b"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp38-pypy38_pp73-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "77298640c08ff769c3e58d0bfb3c87ff",
"packagetype": "bdist_wheel",
"python_version": "pp38",
"requires_python": ">=3.8",
"size": 6078040,
"upload_time": "2024-04-30T08:50:47",
"upload_time_iso_8601": "2024-04-30T08:50:47.221037Z",
"url": "https://files.pythonhosted.org/packages/49/5d/091f00cecac44a45f7491fb43de49dd34172ef21c41c9638ab19959ba157/yara_x-0.2.1-pp38-pypy38_pp73-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6646f094cc1f4feeba6fa163491aa81d13700031e5ac604ccb4126bf1345dbd5",
"md5": "2dbf8abfacdafb99d93559f3913e4eba",
"sha256": "d453189d3d1a29207d46fe41b09886fe6ea0a7342e024140753b0fd7f61137d0"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "2dbf8abfacdafb99d93559f3913e4eba",
"packagetype": "bdist_wheel",
"python_version": "pp38",
"requires_python": ">=3.8",
"size": 7379820,
"upload_time": "2024-04-30T08:50:48",
"upload_time_iso_8601": "2024-04-30T08:50:48.877635Z",
"url": "https://files.pythonhosted.org/packages/66/46/f094cc1f4feeba6fa163491aa81d13700031e5ac604ccb4126bf1345dbd5/yara_x-0.2.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0e0433d0c4ea82283ba8cb8c6acf859ab3e7fe6c10384c2c24777cdb5528505b",
"md5": "80d4adfb8b672ae31dcf27c04e6390e4",
"sha256": "31daef98af8fab742f463da1e904a70b72f849e49e067e2715d67323ad3d3402"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp38-pypy38_pp73-win_amd64.whl",
"has_sig": false,
"md5_digest": "80d4adfb8b672ae31dcf27c04e6390e4",
"packagetype": "bdist_wheel",
"python_version": "pp38",
"requires_python": ">=3.8",
"size": 5598503,
"upload_time": "2024-04-30T08:50:50",
"upload_time_iso_8601": "2024-04-30T08:50:50.863295Z",
"url": "https://files.pythonhosted.org/packages/0e/04/33d0c4ea82283ba8cb8c6acf859ab3e7fe6c10384c2c24777cdb5528505b/yara_x-0.2.1-pp38-pypy38_pp73-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d6eae320cb57d3d8c401f8588fb448db8cc2b3203326dd86acf48a50bba74a39",
"md5": "342a24703db2d43a6b4cab47d474d9dc",
"sha256": "be023aabe8c41ceaaed90ebb63a18ddffc981a4682d0f3de704823da29741da6"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "342a24703db2d43a6b4cab47d474d9dc",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.8",
"size": 6452285,
"upload_time": "2024-04-30T08:50:52",
"upload_time_iso_8601": "2024-04-30T08:50:52.435340Z",
"url": "https://files.pythonhosted.org/packages/d6/ea/e320cb57d3d8c401f8588fb448db8cc2b3203326dd86acf48a50bba74a39/yara_x-0.2.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "878c4d6cf5eb4a5a46d38a8783f22db06c5c7b0dc827745e5f20af727613e1c6",
"md5": "b5448e36b1fa77f2280a049ca25d85bd",
"sha256": "b59fb3eb19d1c217f6cc5992b50a31d08bc7c6ce207a7defe0885c24a80b32df"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "b5448e36b1fa77f2280a049ca25d85bd",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.8",
"size": 6078085,
"upload_time": "2024-04-30T08:50:54",
"upload_time_iso_8601": "2024-04-30T08:50:54.534505Z",
"url": "https://files.pythonhosted.org/packages/87/8c/4d6cf5eb4a5a46d38a8783f22db06c5c7b0dc827745e5f20af727613e1c6/yara_x-0.2.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f818e59d878edbbd1d5e2a897a44cd9b0480581529f8dd11066f77e3dd746285",
"md5": "e5db605ea019803bbbbe2505a5d5fdd9",
"sha256": "0034a06ca2b32341798f3cae8a4617c3fc0813ee0a26d58609f8b0db3e27aad6"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "e5db605ea019803bbbbe2505a5d5fdd9",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.8",
"size": 7380428,
"upload_time": "2024-04-30T08:50:56",
"upload_time_iso_8601": "2024-04-30T08:50:56.514569Z",
"url": "https://files.pythonhosted.org/packages/f8/18/e59d878edbbd1d5e2a897a44cd9b0480581529f8dd11066f77e3dd746285/yara_x-0.2.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e2caccbfa0998c8f6a243d455ccd6948e2fe4518a6cc61a60da1124b2d554164",
"md5": "5ec06a76338acc59953384c0c4d1f821",
"sha256": "4e0ab6a7789322ac5ce93e90c5cc339e9f97b5ff5dec266e7ff23c190475c3b1"
},
"downloads": -1,
"filename": "yara_x-0.2.1-pp39-pypy39_pp73-win_amd64.whl",
"has_sig": false,
"md5_digest": "5ec06a76338acc59953384c0c4d1f821",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.8",
"size": 5599163,
"upload_time": "2024-04-30T08:50:57",
"upload_time_iso_8601": "2024-04-30T08:50:57.978472Z",
"url": "https://files.pythonhosted.org/packages/e2/ca/ccbfa0998c8f6a243d455ccd6948e2fe4518a6cc61a60da1124b2d554164/yara_x-0.2.1-pp39-pypy39_pp73-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "879e1e3271e3a76979dd22c1bae0891703078218561a49d1db349111a111cb31",
"md5": "167b065adc3a2f6e4dcdbf96a0c48b3c",
"sha256": "fc0e4bac207ead1acec9979497ae41cb383fc18c32520a651c704f07497c7703"
},
"downloads": -1,
"filename": "yara_x-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "167b065adc3a2f6e4dcdbf96a0c48b3c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 479591,
"upload_time": "2024-04-30T08:50:59",
"upload_time_iso_8601": "2024-04-30T08:50:59.564361Z",
"url": "https://files.pythonhosted.org/packages/87/9e/1e3271e3a76979dd22c1bae0891703078218561a49d1db349111a111cb31/yara_x-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-30 08:50:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "VirusTotal",
"github_project": "yara-x",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "yara-x"
}