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

Uploaded PyPyWindows x86-64

yara_x-1.14.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.14.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (9.1 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded PyPymacOS 14.0+ x86-64

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

Uploaded PyPymacOS 14.0+ ARM64

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

Uploaded CPython 3.8+Windows x86-64

yara_x-1.14.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.14.0-cp38-abi3-manylinux_2_28_aarch64.whl (9.1 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.28+ ARM64

yara_x-1.14.0-cp38-abi3-macosx_14_0_x86_64.whl (9.0 MB view details)

Uploaded CPython 3.8+macOS 14.0+ x86-64

yara_x-1.14.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.14.0-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-1.14.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 dbae6139cbc4e03c9e2bc6bdc76bc26d55719a5cbf2e05eb93afa1e91a27d96b
MD5 d923574c6ed8e36adfe121c7161e5a23
BLAKE2b-256 047589b5e08b3013f9e99fd3c9728492218af2c452e71f86f13c0e049f7ee4d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 55f96cf0c3a87ff0f691ad6646bb6c973ad2990cc920fee67a25b65864785a11
MD5 f6ddacaabc361a5690d02125f69e74a3
BLAKE2b-256 570486e235a7022e464a42c83449495757965a31a47657de773771684d144b0e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 ec43a67f2d52ac06ae390a204ac5bde9a68a9d756521f9fec0274ae3080717f6
MD5 188dd7588384b430596506edab6f82fe
BLAKE2b-256 a7b30cf0dd3c4964cdc0c81d134af837785db6e731ff5ff0e4a93d27da7480ba

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 60e9bea642a41af74416ba93feeee9fa08f94787f9ea4ff3706aa1a7791e2afa
MD5 f699a08d1feea6787d7601ba67af75cb
BLAKE2b-256 9296e1b968bebb2e8da405fdcafe91b69d074d0dbda1c3c1002371b69c28b181

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 7e0bec7248480296e76d4c7cd1666380c847e7db93d7abd957d8ff994e3f31bf
MD5 477ee8f358d2224e7cd1232634e23e57
BLAKE2b-256 8de897f464f2d9294ee677c5669e68fd058859204aa67330798a6cc017875e15

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yara_x-1.14.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.14.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 52a0a943aa3bbf68a0ed9482ae19056021f92e8a197e96008c7cf7cf2c6cf921
MD5 8b86f7da1458b9fc39ada593dd6982dc
BLAKE2b-256 8f690a2b822d9261d8a5a39b64c484728638d2f11a7d346fc5e55ad2bb63eb66

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4a1d6753ec52877ae136f11e32461d0d773844611f8761f8df7e8ff4197dcccf
MD5 1837e850818e53d547c18305366d9eb7
BLAKE2b-256 fde0ecafc6363762c9c7756cc24714dcd7594ea0af811e744130bba7d0d2ed61

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e4686bfa0f57b8e77a94c5e0a8dbab56b76fc45d7e4a6524c7adb81a1316f00a
MD5 f90c8dac58748c3cf9bba9fa9527a7b4
BLAKE2b-256 42eebbf262a42bce4be00439f237e66f0dc72ee22e4969ba527a3cacdad308d4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-cp38-abi3-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 63264ca7814fed17303b641ebe2ff59924e73df62876ec06d5b31307e7b45adc
MD5 552f153dcca6cd35d4689b88484e6d28
BLAKE2b-256 ec56e895e9e0d8c857737f119aeca03a26d10d68caac0228f45a4b98359a2f6c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.14.0-cp38-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 0ab8b94caa6596ac72b7e0c9e91b8c053b18361b215f3dafe4d8261cbfb033a1
MD5 28250077c8fac96e27d0d7a1240fb3ae
BLAKE2b-256 436b9937a0578925488a4e95331961f5bafae7b37063d6186dd182b809ca88a2

See more details on using hashes here.

Provenance

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