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

Uploaded PyPyWindows x86-64

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

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded PyPymacOS 14.0+ x86-64

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

Uploaded PyPymacOS 14.0+ ARM64

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

Uploaded CPython 3.8+Windows x86-64

yara_x-1.16.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.16.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.16.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.16.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.16.0-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-1.16.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 0d6c1376a0f71762f76dcaa08c21d1ba0e649956415b0a492493e18f0f321adc
MD5 b512d7485a5cbb6372c8c57e988d9f6c
BLAKE2b-256 d0428aa9428de5f5e6370c0a965c124f085e8c13639385e038e4045a778bd681

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d39de355b23ae4cbe0f96bebedb597201116071b715dc366946f20316a26529d
MD5 d81557f2acecd3374b54cd2f30785874
BLAKE2b-256 b767c526eb76018e7b4a577f3bcce9b7785b137a8b72f11f2f1c845865659177

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 19408d1dbb7161343c8503a574445e9cf48834595cf1d9140b4798846926768a
MD5 335d3f586615ab779cb42437d4fac9bd
BLAKE2b-256 168a7c64252d9e2eb13496fbf59b321640669cee9cd8af7d5a94bbf03508f41a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 d3e2935108e993eabb4037e72c55779de9248d6aa6cd5c4897c9b25d87514b60
MD5 5bbdfa4ef9baaedcaf2bb7c86010bf8a
BLAKE2b-256 0e1bbed13837815aea8660b87fb9dd2dd56ae6c10ba219f92ebbcb280d070bf8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 9b18cb3931bc528d61978d55ec249c1f9f70598f484e676b2821fcb6d68fc011
MD5 fed54612be987ac59347d7d079609c9e
BLAKE2b-256 76bff5561c84635722a1811ec82bd2c653529813e914b338a88c9d989728ffd0

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yara_x-1.16.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.16.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 97cd125f6b8c5c2302206d81b1c41d0b12e3424bd9e7d717a28dcd00c45b7b52
MD5 e8ea55e735e385f6b8f8a47735f53631
BLAKE2b-256 bbf61cc6e5f25fdb9e28b244a9d7db14e22d5e8919e60ba975438c5a131bb671

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 62b666c239afe247bd62e52c4fa5e5b67d44cda1b871cd084679cfd48be019db
MD5 3b5c969352047a3fc936749875f75d39
BLAKE2b-256 41ef0fcc44b9a1de648c5bb17c0ea9ecfe02a68c070d373065a810a82dbd992f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7f86d64d1f2403726edfda7ddb98a03a9cbeddd36d319bd270b1c7f2ce862428
MD5 4c11da5252e36c5b9c1e98b9605ccc2e
BLAKE2b-256 160e63c5e3dd744c26c07b2e8b8d06b8dd7cbd9bf6e212001031a545ca8cebe8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-cp38-abi3-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 49b6c84d18475f815c28bfc6ba18db71de17eb806203db4298c6a4cd290420c1
MD5 37f0bc15444565b739181768576fb49c
BLAKE2b-256 da529d8931b5deaa3659bdd7e64fc26a44d0b78bcf7f0e4277fd3dd0ffe1a341

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.16.0-cp38-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ca2ccda6baf8a68a1d077e3a5f0be826051a6cf37a157d2c928f5a7f6a531dd4
MD5 5e5817a635288df5f7d22289cce7c7ee
BLAKE2b-256 ba41a14106cd37fa7bc5f5ab10bfc88217ddd5d5adb237b10c6355715f44305e

See more details on using hashes here.

Provenance

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