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.15.0-pp311-pypy311_pp73-win_amd64.whl (8.1 MB view details)

Uploaded PyPyWindows x86-64

yara_x-1.15.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.15.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (9.2 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

yara_x-1.15.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl (9.0 MB view details)

Uploaded PyPymacOS 14.0+ x86-64

yara_x-1.15.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl (8.3 MB view details)

Uploaded PyPymacOS 14.0+ ARM64

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

Uploaded CPython 3.8+Windows x86-64

yara_x-1.15.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.15.0-cp38-abi3-manylinux_2_28_aarch64.whl (9.2 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

yara_x-1.15.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.15.0-cp38-abi3-macosx_14_0_arm64.whl (8.3 MB view details)

Uploaded CPython 3.8+macOS 14.0+ ARM64

File details

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

File metadata

File hashes

Hashes for yara_x-1.15.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 d2e38ba7c047f51693a203030540a95755ede838640586d43dacf47ef86e247b
MD5 babe8e23d0377422089209de6d57e78c
BLAKE2b-256 48f2beacf2545db2b602217b95bbd6d2074333fb381b55599a5ee55e469f2846

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3d7e2a3e94e4f37acaced2bb226092f4cf310b0cdd3e8c95063aaf625017244a
MD5 edcb048649c906d3c8b05be20c028b53
BLAKE2b-256 ae68d1413ea75f437189f882e1a29106c65c5518d0f4f81b5f7d184eff0205cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 538dd873aa02d2776f74a87187a262811e95053f4af34223abb04451e6f483b4
MD5 7c21b016b52e752e01ea3ccc8ade6696
BLAKE2b-256 82ca279c8ad21dc0d5b507d1b7b86ec8970dbc7519885a758973a94af4e962d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 44f911732a5c2cebc948933139364940c80c8256405cfa49b0088b374afb034f
MD5 c70e167964cd036b94a75b6249f21eb9
BLAKE2b-256 4f7038b5df1dcecb18cadd436d8afcb0e0099c29fce74059c0b29b243f22800a

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 dc677fef0625ed96cf35027805ddcd91a2e5fc5492fec5892ad1dc416eb6ef28
MD5 d58d6ebabc5f37af1e4314a56b9cfdc7
BLAKE2b-256 82463d5ce7308ad26251807bdffe34fb0f910d890218c85a3126f6dd62e8f255

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: yara_x-1.15.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.15.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8c131d7000e778b00ceb358394d1d8351222f054bd6d440d878186994cb3efa0
MD5 856c0e534c45f5d4cf29013117fbbd2a
BLAKE2b-256 3a2792b7ed2a38ee0a1d55e9de7620e27c2af1e7ed5543c0e36b0723cf1a896b

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-cp38-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 734bda6efd3f2cfd46a37abf877f6724479e72c86c7fd7ea0801e602a78c38ca
MD5 93ddfbedd0d792f7659ceb6331a3c95d
BLAKE2b-256 c01b00c777aad370779a822274eb0c91db2dcc760b3c542fb3392dac11a7d9a6

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-cp38-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d8e728a0b628fccd23b448e47ead4c7d4b6144ab5aecdd377d28f4623f00e1b8
MD5 6db792e36b37d2476da86051d58bdf43
BLAKE2b-256 81444d1a8edc7345ad40fc0d92f0199dd585e5329dc3b5c6eb6b0dd82ebc2c85

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-cp38-abi3-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-cp38-abi3-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 ee2f638f63ac7998d68a358a95fcb9fc36b7e1fed9b8355ec0f4873fafb2debd
MD5 3740fd77432b0eadc3b2039369894cd0
BLAKE2b-256 11154b77cdfedddac69693006b2b37f0fcdfc9ca73764a8a483edfa064b854de

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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.15.0-cp38-abi3-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-1.15.0-cp38-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 8eebcec3848407966d875d2319b337982cf7aa558639b0185579326511630f4c
MD5 068cc41d5d11eeca3e011d912fa51a74
BLAKE2b-256 f1c0af59af9e287ad26baaa8622fa5bb1cf97141954ebffac258c368a0fa1199

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-1.15.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