Skip to main content

Python bindings for YARA-X

Project description

PyPI - Version PyPI - License Documentation Downloads Downloads per week GitHub Repo stars

The official Python library for YARA-X. Supports Python 3.9+ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

yara_x-1.17.0-pp311-pypy311_pp73-win_amd64.whl (8.1 MB view details)

Uploaded PyPyWindows x86-64

yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (9.6 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (9.3 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl (9.1 MB view details)

Uploaded PyPymacOS 14.0+ x86-64

yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl (8.4 MB view details)

Uploaded PyPymacOS 14.0+ ARM64

yara_x-1.17.0-cp38-abi3-win_amd64.whl (8.1 MB view details)

Uploaded CPython 3.8+Windows x86-64

yara_x-1.17.0-cp38-abi3-manylinux_2_28_x86_64.whl (9.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ x86-64

yara_x-1.17.0-cp38-abi3-manylinux_2_28_aarch64.whl (9.3 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

yara_x-1.17.0-cp38-abi3-macosx_14_0_x86_64.whl (9.1 MB view details)

Uploaded CPython 3.8+macOS 14.0+ x86-64

yara_x-1.17.0-cp38-abi3-macosx_14_0_arm64.whl (8.4 MB view details)

Uploaded CPython 3.8+macOS 14.0+ ARM64

File details

Details for the file yara_x-1.17.0-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 9ef3e5e6999d8187c5228500fab6e22df9ca8dca5e17a6b59bda6eddfea48e49
MD5 42f52c6a44bf034ecaab63025477af9a
BLAKE2b-256 a11f8a6ed6a39439e9a400a3caa3cae2253e63500e4c7e5a66643dcc9b44a918

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-pp311-pypy311_pp73-win_amd64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d0e02ec1e914304336814ceefb51fa649606d1ca66e5f2d996a07e03ce86e419
MD5 29385e12949dfb6a27d71d2118ae3100
BLAKE2b-256 7f40bc24521550ae69138520d1fb12f97220e59f37ad2f9c739b8d6509b10a1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e66b70e0fd17db068a9cc4d7fa7e6b75961d9c96ed83c34c4ff33ba750ccfe75
MD5 d1f2417311d1f8ffb2b4b6d560b20f0c
BLAKE2b-256 a5ef3047cf2e1a89617e33c806fb782f06c8d916793a7115a607da4e57528b3f

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 6fe8bb23d9589891d59959abf8ff046edd589e1853c03fec07e864264a2fab85
MD5 7f044b10e12888184cb45b58eff608ec
BLAKE2b-256 2794325ec468cb3b6bc34f05fd6c91b3e3129f53e41d268990eb0e5a64d18bb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3b2da5e791c33199bbb42c39ac4e9a9d8b3f2d129a1391cfd7489353ee370b46
MD5 fed405842da3ac3de8ece8a09a847fa4
BLAKE2b-256 066848d14310b2d9a46a046b9a6ce42ab615e1e42dbbfd4ec5151606c76acea1

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: yara_x-1.17.0-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 8.1 MB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for yara_x-1.17.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 136dccc370df7c9dfc8a48d0500c10c7251017289d3fef92ecd5fa299598e450
MD5 69bae378d152568fef6c809d1d435594
BLAKE2b-256 b0d8cd5779789da688563ceb72e0805c4d5a823543f5ba44edd3cfd41bf1c989

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-cp38-abi3-win_amd64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ec20beff0a963bf5ca8aa2a46f376c4a38fe995c358832e61b7746af9a7f4da2
MD5 a8b730cd6d8aabe9b341a49d3a46eefc
BLAKE2b-256 e11c8e4cfcee4958a708147ab7b963f505ecfc0d4dbb269ba57d15587114ad91

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-cp38-abi3-manylinux_2_28_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d99f99519973c524ed280a430e990e85f0f5adb545be9e656df480777c3d7d4c
MD5 39ca299f06c1e635cb4e92b87922506c
BLAKE2b-256 b3c7da001ccbe5fe2c1c8808b60e5ba1d08aa89b0eb4408b26c29d0fbd35454c

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-cp38-abi3-manylinux_2_28_aarch64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-cp38-abi3-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-cp38-abi3-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 572006fb388e42cb46edba51199ea1660f2e839e27702093463cb874346e3080
MD5 bbc2a9306695c4a064dd1bc28dbac036
BLAKE2b-256 f1af2850e6febcebb67c21e6ce4a1a5d0f07791da1c3dd2cbfc25c3e92beabe4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-cp38-abi3-macosx_14_0_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yara_x-1.17.0-cp38-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-1.17.0-cp38-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fa400efe8816473c25daaef54ba44d8ffb91120e2e252f3c89086bbdaba61265
MD5 0f269f2bd66e4ee12e04c7235b5e41d6
BLAKE2b-256 2bc4bbb282c8cdb004e235ead47893da98f0f2d2738b5862b8565d2543de8618

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.17.0-cp38-abi3-macosx_14_0_arm64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page