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

Uploaded PyPyWindows x86-64

yara_x-1.19.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (9.7 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded PyPymacOS 14.0+ x86-64

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

Uploaded PyPymacOS 14.0+ ARM64

yara_x-1.19.0-cp38-abi3-win_amd64.whl (8.2 MB view details)

Uploaded CPython 3.8+Windows x86-64

yara_x-1.19.0-cp38-abi3-manylinux_2_28_x86_64.whl (9.7 MB view details)

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

yara_x-1.19.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.19.0-cp38-abi3-macosx_14_0_x86_64.whl (9.2 MB view details)

Uploaded CPython 3.8+macOS 14.0+ x86-64

yara_x-1.19.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.19.0-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-1.19.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 146a70593b44b79d71772a8b60ee992e2b02d24ebdd3788889a5559b44812754
MD5 eb521f571da34c13940fb91551ca638f
BLAKE2b-256 e3a43519577f103bce22770f3776faffba683d71e476ece85b4f8c8ca433136b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f9ea9e8e74cad2234c844d89b677a74e97d0858c05753e286b594aa6a6fa2b23
MD5 19b58b5eb4960a17dfb0647e20333108
BLAKE2b-256 282d9c864c03d46ad5f4c4451875054571f5c4b4dd55ee9a5d5ab8a67a0206ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 3844a0592952420c7a3ee0bbdef45fe0666a12c1e0292697b5697407814147ec
MD5 e00e08f6a81bc53c279d0fd785328f0e
BLAKE2b-256 91fa4ef802667ee5a81ae8ae02fb12749eea67933f4764b8828c9f3f3a157eb7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 84ebae8afa82b0b41ae6f4947859a03f491e23da1013f4e0892905fd6f523998
MD5 48c2d16a4e7a6a3e5b65b9fddbeffd44
BLAKE2b-256 d4d67d2ca561727a4c9a9aa6c565b13c2b8ca92622372a9e498fc32232ec6f1a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 a5eb570baa7093eb7fd81b6f5592c6622e09cbc85ef09ab00f3794cffbc5c91c
MD5 267718ab92bcc3d93465e520390f4f28
BLAKE2b-256 898c52283bc229d70bc65a0527e293d948efe3eb9c3d3679e577e12eeac1c5bf

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for yara_x-1.19.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ab13d236f24e906cb3ec386b5e85d4e4bd5783f30656ee4c4dc090599b69661d
MD5 b97e62d419680168a522c1bf1e5e784e
BLAKE2b-256 63ca2ef773b3b58bba9ff8fa2105f88e10e11af711fbb918ca6cc87fb3d9494c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9fe18e0da101608a31249852f451235f2443eed5406bfe0cbf910a207114cfba
MD5 9eec09abfcd3e69e3eef3a98be3e36dc
BLAKE2b-256 b0b24f91d617491489921ed4a73a0fe1e85b5009ead452b25c3ad4e557fc665c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b1c8b2e41bb06932db66cd9a73dc5ae41086861a89287d45878880596c335d2b
MD5 088bcafcceaf1b7bebf31bfc3f770194
BLAKE2b-256 fa42d341e3879493ea35dba7d79742eda35372ad5bfa2e2a514badecad68979e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-cp38-abi3-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 f38e19b0bd3f6af8366ac789778d0c39e359a897473b86c3ff6f9b0c255e631e
MD5 f0b9aa79a8e1dd6645a109a2b7fef9b1
BLAKE2b-256 687645f471b4ebb6ffb0d01558955233bbfa956e96f368f0b793d9a78e875308

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.19.0-cp38-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 6b62018986ae575406680fa876006ee6fcfaff730052106dc3e88ddcac9bf088
MD5 784b2da07a916a4b84f54adc0255e47f
BLAKE2b-256 97ffaaf61b589abdd40f877c4070788c914b0fc02e3e5e82cc55f01451c807ff

See more details on using hashes here.

Provenance

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