![PyPI - Version](https://img.shields.io/pypi/v/yara-x)
![PyPI - License](https://img.shields.io/pypi/l/yara-x)
[![Documentation](https://img.shields.io/badge/doc-latest-blue.svg)](https://virustotal.github.io/yara-x/docs/api/python)
[![Downloads](https://pepy.tech/badge/yara-x)](https://pepy.tech/project/yara-x)
[![Downloads per week](https://pepy.tech/badge/yara-x/week)](https://pepy.tech/project/yara-x)
![GitHub Repo stars](https://img.shields.io/github/stars/VirusTotal/yara-x)
The official Python library for [YARA-X](https://virustotal.github.io/yara-x).
Supports Python 3.9+ in Linux, MacOS and Windows.
```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
```
For more information about how to use this library, please check
the [documentation](https://virustotal.github.io/yara-x/docs/api/python).
Raw data
{
"_id": null,
"home_page": "https://virustotal.github.io/yara-x",
"name": "yara-x",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "pattern-matching, cybersecurity, forensics, malware, yara",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/71/d8/40b774f8677740071128d47bccf146d2f49e03ec67f173771f715295f9c0/yara_x-0.12.0.tar.gz",
"platform": null,
"description": "![PyPI - Version](https://img.shields.io/pypi/v/yara-x)\n![PyPI - License](https://img.shields.io/pypi/l/yara-x)\n[![Documentation](https://img.shields.io/badge/doc-latest-blue.svg)](https://virustotal.github.io/yara-x/docs/api/python)\n[![Downloads](https://pepy.tech/badge/yara-x)](https://pepy.tech/project/yara-x)\n[![Downloads per week](https://pepy.tech/badge/yara-x/week)](https://pepy.tech/project/yara-x)\n![GitHub Repo stars](https://img.shields.io/github/stars/VirusTotal/yara-x)\n\nThe official Python library for [YARA-X](https://virustotal.github.io/yara-x).\nSupports Python 3.9+ in Linux, MacOS and Windows.\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\nFor more information about how to use this library, please check\nthe [documentation](https://virustotal.github.io/yara-x/docs/api/python).\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Python bindings for YARA-X",
"version": "0.12.0",
"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": "b9478e37457d4a4fed99b1b5a29189efcfa2e20e6c07da2087b38ba5abef2504",
"md5": "5ad73a24803b37e065c641e960bc221b",
"sha256": "97f22816d5626120de65f4683032e1d8b4a57348a51524530bf696371eee424d"
},
"downloads": -1,
"filename": "yara_x-0.12.0-cp38-abi3-macosx_10_12_x86_64.whl",
"has_sig": false,
"md5_digest": "5ad73a24803b37e065c641e960bc221b",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.9",
"size": 6213443,
"upload_time": "2024-12-17T12:24:58",
"upload_time_iso_8601": "2024-12-17T12:24:58.091815Z",
"url": "https://files.pythonhosted.org/packages/b9/47/8e37457d4a4fed99b1b5a29189efcfa2e20e6c07da2087b38ba5abef2504/yara_x-0.12.0-cp38-abi3-macosx_10_12_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fe7f1b938d0d0fe92946e030b641acf9991311cbb93cdd0982b60466d0c6f3e8",
"md5": "682ba00fda71e3bbf490fe2e8e35285b",
"sha256": "c82db999c10247ddc20c5fb030101afd1e7efa7b3aabd0a4693602bd5679eea6"
},
"downloads": -1,
"filename": "yara_x-0.12.0-cp38-abi3-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "682ba00fda71e3bbf490fe2e8e35285b",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.9",
"size": 5905532,
"upload_time": "2024-12-17T12:25:00",
"upload_time_iso_8601": "2024-12-17T12:25:00.631242Z",
"url": "https://files.pythonhosted.org/packages/fe/7f/1b938d0d0fe92946e030b641acf9991311cbb93cdd0982b60466d0c6f3e8/yara_x-0.12.0-cp38-abi3-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "18a8b84ee727a33d013149f2cd50a23b2146dce6803d6fed82ac2511405855a5",
"md5": "78bf465352cd910443fd8e439608db81",
"sha256": "ed8f8f1f95fb371263ee0e8cb8a34678add8cc319584b16d22d759e354222290"
},
"downloads": -1,
"filename": "yara_x-0.12.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "78bf465352cd910443fd8e439608db81",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.9",
"size": 7056892,
"upload_time": "2024-12-17T12:25:04",
"upload_time_iso_8601": "2024-12-17T12:25:04.320468Z",
"url": "https://files.pythonhosted.org/packages/18/a8/b84ee727a33d013149f2cd50a23b2146dce6803d6fed82ac2511405855a5/yara_x-0.12.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fbadb0d0dac25ab335cdd9fc5c478406279837732d2a755679ef7e58143c9f05",
"md5": "0c74844f187e80793f5c1f39a51efb08",
"sha256": "9b676e2d80fc1feac358b36ebb88ac71e1ef1159a6309e4e4566c0bf2644698f"
},
"downloads": -1,
"filename": "yara_x-0.12.0-cp38-abi3-win_amd64.whl",
"has_sig": false,
"md5_digest": "0c74844f187e80793f5c1f39a51efb08",
"packagetype": "bdist_wheel",
"python_version": "cp38",
"requires_python": ">=3.9",
"size": 5404577,
"upload_time": "2024-12-17T12:25:07",
"upload_time_iso_8601": "2024-12-17T12:25:07.930664Z",
"url": "https://files.pythonhosted.org/packages/fb/ad/b0d0dac25ab335cdd9fc5c478406279837732d2a755679ef7e58143c9f05/yara_x-0.12.0-cp38-abi3-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2f94ceeba93f9e6ee2883476d90ca684d883edcc413958bf6f34642e027e09d7",
"md5": "e9fd11cc5ebccf69a25d1d11355109c8",
"sha256": "abb0bb89eedb48461ba40b8b72cf311be2702d1c7d818ddb4674290747be492c"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl",
"has_sig": false,
"md5_digest": "e9fd11cc5ebccf69a25d1d11355109c8",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.9",
"size": 6217054,
"upload_time": "2024-12-17T12:25:10",
"upload_time_iso_8601": "2024-12-17T12:25:10.542265Z",
"url": "https://files.pythonhosted.org/packages/2f/94/ceeba93f9e6ee2883476d90ca684d883edcc413958bf6f34642e027e09d7/yara_x-0.12.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4ea5d3d62ebed814a7f5ef45ff4e937d1370ceabb9123905636a3a4ee1322794",
"md5": "05af7785864a6c9db16cbb9c9df14fcb",
"sha256": "e7f44a99ed7a086f3b15b738aefd6463bb83575776633e7e2e240cdf55dbdfa2"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "05af7785864a6c9db16cbb9c9df14fcb",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.9",
"size": 5907394,
"upload_time": "2024-12-17T12:25:14",
"upload_time_iso_8601": "2024-12-17T12:25:14.085544Z",
"url": "https://files.pythonhosted.org/packages/4e/a5/d3d62ebed814a7f5ef45ff4e937d1370ceabb9123905636a3a4ee1322794/yara_x-0.12.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d9c6902d006779f4048577ebca736e415b0cdbc93358029a0123dc2f14d0ff2b",
"md5": "9a039228ccbb11e7f1893a8b82c09f9e",
"sha256": "59d3d3e8a8e2d417c46c32d507e990e8202d172ae3602ef9e3c31aaac8b20e69"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "9a039228ccbb11e7f1893a8b82c09f9e",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.9",
"size": 7059292,
"upload_time": "2024-12-17T12:25:16",
"upload_time_iso_8601": "2024-12-17T12:25:16.356784Z",
"url": "https://files.pythonhosted.org/packages/d9/c6/902d006779f4048577ebca736e415b0cdbc93358029a0123dc2f14d0ff2b/yara_x-0.12.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "21022cb4094c9e5193a2d4d1c97f8b12c9a1edec546e024afa017e97a74922f6",
"md5": "4482bab9bcf8035a778fcfef2c86c73f",
"sha256": "24028e99e29afc55d0b9c8f8f79eb15ea9b090613e07c726d07b8990553583eb"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp310-pypy310_pp73-win_amd64.whl",
"has_sig": false,
"md5_digest": "4482bab9bcf8035a778fcfef2c86c73f",
"packagetype": "bdist_wheel",
"python_version": "pp310",
"requires_python": ">=3.9",
"size": 5403247,
"upload_time": "2024-12-17T12:25:19",
"upload_time_iso_8601": "2024-12-17T12:25:19.712206Z",
"url": "https://files.pythonhosted.org/packages/21/02/2cb4094c9e5193a2d4d1c97f8b12c9a1edec546e024afa017e97a74922f6/yara_x-0.12.0-pp310-pypy310_pp73-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3432d6d1f31b0b641636cef0853ad4eb84903d00723351ec888a2e2bda0bc685",
"md5": "f15bd112b7ccf2327873064776bd43b8",
"sha256": "374f0a0d3b33111f3bd84d8237977b749a5991748e46755e85cc3e7aece870b7"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl",
"has_sig": false,
"md5_digest": "f15bd112b7ccf2327873064776bd43b8",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.9",
"size": 6212570,
"upload_time": "2024-12-17T12:25:24",
"upload_time_iso_8601": "2024-12-17T12:25:24.490598Z",
"url": "https://files.pythonhosted.org/packages/34/32/d6d1f31b0b641636cef0853ad4eb84903d00723351ec888a2e2bda0bc685/yara_x-0.12.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a2cf79a1f90bff46a069e12058483c9e003923693d95aa39c64d6a3ad2cd64b3",
"md5": "eecae3e8dcce747854e3415147f9ab94",
"sha256": "0750195ea6c7ebc6620c122705b21f7a18bd698337fcb9ebe2911e104ed4c29f"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl",
"has_sig": false,
"md5_digest": "eecae3e8dcce747854e3415147f9ab94",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.9",
"size": 5905165,
"upload_time": "2024-12-17T12:25:26",
"upload_time_iso_8601": "2024-12-17T12:25:26.843767Z",
"url": "https://files.pythonhosted.org/packages/a2/cf/79a1f90bff46a069e12058483c9e003923693d95aa39c64d6a3ad2cd64b3/yara_x-0.12.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2336f07e9ae4de5f070203eafb6acb31b340246b5d8bfdbb4e3d8cdc4c886fe9",
"md5": "0b3f2ca1644ff44604379168f835ab02",
"sha256": "51c84ea571561756ff8f309d835f672d475af24a6ff5ec0860dc388943f7ae69"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"has_sig": false,
"md5_digest": "0b3f2ca1644ff44604379168f835ab02",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.9",
"size": 7056934,
"upload_time": "2024-12-17T12:25:28",
"upload_time_iso_8601": "2024-12-17T12:25:28.983324Z",
"url": "https://files.pythonhosted.org/packages/23/36/f07e9ae4de5f070203eafb6acb31b340246b5d8bfdbb4e3d8cdc4c886fe9/yara_x-0.12.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "794165ccd85427b8979141cca9488ba2c0ece16a71a693c88dcd0a6c747f75f9",
"md5": "74dfc8e4a717c5662eb5e1a97f0108dd",
"sha256": "efdb0176d03ea8614ef439001f1068db818e75999b4259b775707ad0b7cbde9e"
},
"downloads": -1,
"filename": "yara_x-0.12.0-pp39-pypy39_pp73-win_amd64.whl",
"has_sig": false,
"md5_digest": "74dfc8e4a717c5662eb5e1a97f0108dd",
"packagetype": "bdist_wheel",
"python_version": "pp39",
"requires_python": ">=3.9",
"size": 5404431,
"upload_time": "2024-12-17T12:25:31",
"upload_time_iso_8601": "2024-12-17T12:25:31.373068Z",
"url": "https://files.pythonhosted.org/packages/79/41/65ccd85427b8979141cca9488ba2c0ece16a71a693c88dcd0a6c747f75f9/yara_x-0.12.0-pp39-pypy39_pp73-win_amd64.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "71d840b774f8677740071128d47bccf146d2f49e03ec67f173771f715295f9c0",
"md5": "227b463468bcb7456a5391bf5072bb7f",
"sha256": "2f20f48e7b59ac0ed0699b92af7a686b08dbef9ec8e37ebb00cc9b9b7cb83a4a"
},
"downloads": -1,
"filename": "yara_x-0.12.0.tar.gz",
"has_sig": false,
"md5_digest": "227b463468bcb7456a5391bf5072bb7f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 633819,
"upload_time": "2024-12-17T12:25:34",
"upload_time_iso_8601": "2024-12-17T12:25:34.408582Z",
"url": "https://files.pythonhosted.org/packages/71/d8/40b774f8677740071128d47bccf146d2f49e03ec67f173771f715295f9c0/yara_x-0.12.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-17 12:25:34",
"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"
}