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

Uploaded PyPyWindows x86-64

yara_x-1.18.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.18.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (9.3 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

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

Uploaded PyPymacOS 14.0+ x86-64

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

Uploaded PyPymacOS 14.0+ ARM64

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

Uploaded CPython 3.8+Windows x86-64

yara_x-1.18.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.18.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.18.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.18.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.18.0-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-1.18.0-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 d891cc9b252b32fb6896d9f8607fb9484b566aa1753aa10c5aea80e4fd5e8641
MD5 87fb1a0349d6267048acc1fd852ddd75
BLAKE2b-256 eea8a4077da91ca8e1678c6350be4c73e4e766c240d2e926be60c16c47e129c6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 80cae2b5627b2f753619294b7bacc9a16f6e69c5ec96e0424646d7d0aac1d752
MD5 ab3373e94fc844dfa8e6a8368b9307f6
BLAKE2b-256 c517af0278ad5f6f99f48f5a3b98de5d7f2b09d9172c17d766e784f8ff4d78ce

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 d74730245f54e1bc859be40e8f3d98edd586d012f9219660fdcd72e15b03395c
MD5 01082562c9665822c1cb808e21c53d3b
BLAKE2b-256 3d8d483fba43f1ebac6aac87f5b8183bd6f03f16930d04cb405ffd2b8406c79e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 3e7e164113df45bb798a3e1ab9577db8bf7a0bb622f78bf8f4e7f32cd59bc458
MD5 cfd005280154b4798822a9b100deabb0
BLAKE2b-256 975c054c0f9ece539749a0b69f040e8ba2e7b57bfc21daf98c7ecfc53e033fe5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 120f0b0d0819049d98d8d266f172cb36fbd38dd7ff3cae22f2ee6d7fb9b5e530
MD5 3ebb0e3761022dc1f57077f62609cc08
BLAKE2b-256 fdf0cbcce3c4bb124943fc1865d49f17231394f0bc3d660ca5590043737c9d5c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yara_x-1.18.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.13.13

File hashes

Hashes for yara_x-1.18.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d4e298068d7bc6a27eb57bb1226f4b1da124fadb3978ae707fb7de474839619b
MD5 d8b9d213dcc3276bebcf80c8f36d2140
BLAKE2b-256 5043fa4ba4a2c4f94e4abd36888b439843641b938c927fabe5aedebcd13d5765

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-cp38-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 10927461340d0bf808e96212689af0d7fe4d436429166af9cd302dad2cbbbdd0
MD5 fd6df69e258ba46c66b8722ea113628e
BLAKE2b-256 54c8dd06832f215f2e7c32994e3a902e30b6c329cc140ba45f28fc38a46a2122

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-cp38-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 7ce986ef0b747926fd21f974527cc8dde642d606b6911d64ff735676af6d750e
MD5 c5ec7dd78b1c828d1dc76007e5f06ad7
BLAKE2b-256 0cc16df48428fec71f2c437c0449dd018b377f91a184b27012bc1add71b375ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-cp38-abi3-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 5a9579c5e173a082a59c79f379024d115525923808df439f5dac48d137a2efcd
MD5 5b121e77f136b30bb6e2056ba928e165
BLAKE2b-256 286a35d758a9e21174e56c7697fb7f355603875479adf4d33c59b79228125ae1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for yara_x-1.18.0-cp38-abi3-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 acce98637bb599141ec620f2f8d9423ee65a5e2839f9cefbb4be46e4038cf594
MD5 c64476722c2f39aa5efc64eae9f0cca5
BLAKE2b-256 508b5a2ea7655090720fcde7faf68d2eeab8171b30f22aac40cd952e823aacd4

See more details on using hashes here.

Provenance

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