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.8+ 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 Distribution

yara_x-0.11.0.tar.gz (629.4 kB view details)

Uploaded Source

Built Distributions

yara_x-0.11.0-pp310-pypy310_pp73-win_amd64.whl (5.3 MB view details)

Uploaded PyPy Windows x86-64

yara_x-0.11.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

yara_x-0.11.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded PyPy macOS 11.0+ ARM64

yara_x-0.11.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl (6.1 MB view details)

Uploaded PyPy macOS 10.15+ x86-64

yara_x-0.11.0-pp39-pypy39_pp73-win_amd64.whl (5.3 MB view details)

Uploaded PyPy Windows x86-64

yara_x-0.11.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

yara_x-0.11.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded PyPy macOS 11.0+ ARM64

yara_x-0.11.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl (6.1 MB view details)

Uploaded PyPy macOS 10.15+ x86-64

yara_x-0.11.0-pp38-pypy38_pp73-win_amd64.whl (5.3 MB view details)

Uploaded PyPy Windows x86-64

yara_x-0.11.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

yara_x-0.11.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded PyPy macOS 11.0+ ARM64

yara_x-0.11.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (6.1 MB view details)

Uploaded PyPy macOS 10.9+ x86-64

yara_x-0.11.0-cp38-abi3-win_amd64.whl (5.3 MB view details)

Uploaded CPython 3.8+ Windows x86-64

yara_x-0.11.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.0 MB view details)

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

yara_x-0.11.0-cp38-abi3-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

yara_x-0.11.0-cp38-abi3-macosx_10_9_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.8+ macOS 10.9+ x86-64

File details

Details for the file yara_x-0.11.0.tar.gz.

File metadata

  • Download URL: yara_x-0.11.0.tar.gz
  • Upload date:
  • Size: 629.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for yara_x-0.11.0.tar.gz
Algorithm Hash digest
SHA256 e9e86c32e1f10c08b0c742ecd155450667e57947e5986ee8cf6badaa083055bd
MD5 bb276058b01842ae07d9a1af17c8e1d0
BLAKE2b-256 4d69e5aa86467c894c926256ad035e133f222f57b995d77fd8393c48b3470b26

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0.tar.gz:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp310-pypy310_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 64cdbb3e403b086eb9e5dfdc3bd4c2301d7fbcc3845824d987715cf04951cc21
MD5 0c2144862b3e88ff279f0fb590ceeab4
BLAKE2b-256 7c6dd37d7e9317684960033ec0cf88965bdb9a67976942bad156127d61e50fb4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp310-pypy310_pp73-win_amd64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 69f3b6e6191890431258b0c8669319494d95038ede245222fc4eea150b9df1b6
MD5 d91d619c69c0396a8d864996bd4e9dba
BLAKE2b-256 a3210e5889f3b2401c43c8201d4f92fb6e2d808458d2c516bbbc0d2e2c69aca2

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 204a29c4225d8f938b97628fa069bcf34070590ab7774f847346d10b65873142
MD5 526608a8aa9ea77af5d30453c03cacd1
BLAKE2b-256 c02c369c770417abc308f1655f7aecccc715892ec4bea95f616a82a3e174991d

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 721ccbd101bae746ef4e2515ca9fe3fe80665e749d7b3715811020585923cf0c
MD5 8183bcca9aaa92a5f7624abe85d9aaa8
BLAKE2b-256 a9f883142020063aea53c50620e0e271cc582f1e5d4566df071efdc98fbc203b

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp39-pypy39_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 97adb372c32702eabdf1c0dcb09b2c839e5b5fb3741a75edb91162a82ff24384
MD5 b3f1f4b3d4e88f4324af659cffbeb945
BLAKE2b-256 e33a54f69d09b32169eedf93c34b61707b0452c0de1eb7256fdb776f997ccf79

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp39-pypy39_pp73-win_amd64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5d1e423be992b9c566bb06bba24bd7e725e0db6595ff1a599e6a182d8da0673c
MD5 27079144291438bb674baed3f2a67eac
BLAKE2b-256 093edfafcf373a0143f16c589c42f8aef327467e503bf04324a551c047289e62

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d206987ebc2b696f32a3f54d22edb38fd146cfa23a478ee50265800197a589f0
MD5 7e44e05e98afaac3aa4ba787a55a87b3
BLAKE2b-256 381958ede05d05cc8a422c2fd0e4d66ecf23fababe8a3ba2315ba8b50f5c842c

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 050cab7f20b86c8d436565d2844501858e24b05a9ce29d00f2ac719af7ae9796
MD5 76e8cf8307b5cb68d65ce8010b9d0000
BLAKE2b-256 4ffbc7a1e916bec59b8da9acd1449978bb1ca803609cecb698ab6d9842b7df3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp38-pypy38_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp38-pypy38_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 0bbe15b8f3a68636f6f42d1fd03ee9476e1fab2e5b6bfd6a0820c49523e6a993
MD5 0bd5feef5a8369f86605117036691676
BLAKE2b-256 92ace58bfe50760a18f620df9239c2c0139990ae9213dd7f894e8586505c68a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp38-pypy38_pp73-win_amd64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 72f9a3d51a44a8322d043fd50bff14c56af6a80a63af8bdca509d6a400f16a46
MD5 f841533d2e3a551198e197a148670662
BLAKE2b-256 3da90ad9e54ad3be93fc4fe152a9d5d3a40bfc498229178841e3d7d326a617f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df6251f60e03c8c90299934f233a12665a3f052a228e1b3ad394ce4766a68ebb
MD5 772b8daf8283a5620e56200b0ea2a64c
BLAKE2b-256 c989dd6882a61f1a36e554a4ec1a12404a88ec74e8955c8f92dd7116774f6d2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp38-pypy38_pp73-macosx_11_0_arm64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 902ab47aec72344f52b4ccf7bbef64e2e80bac863130ee9773865fed2a196fd0
MD5 1ae2e3aa3ea20aa8128ca0f2a0f317b1
BLAKE2b-256 09597f1fe5281de95b5df80ede85815e888b2e99ba3e7927edb7421d5b3108d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-cp38-abi3-win_amd64.whl.

File metadata

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

File hashes

Hashes for yara_x-0.11.0-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ff97fa74b18e5fe5b78d95383ddd6397f9d0bd18a9ea651bb6daca074fcc25b1
MD5 687ba1fa5f9b732bb8f80f94fd91b90a
BLAKE2b-256 bf6ac55c3ab51bf21a5c22d9211482a5df80dab5414e0fee7973ba6b9d5a1746

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-cp38-abi3-win_amd64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4564189a1fc96ce030721e5386f433b6b09976146c0e03cc9aedbf422b39a311
MD5 b0a3afe0dae7e58280f74ace777f75fb
BLAKE2b-256 982608a90725dc124b18cf6677458beefb4ec1fdaa8210c014504028f36f00da

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8870ef0eb59cd10f7428a2474cc7f764e12d175a428690b1e1e83f0b1d4137bf
MD5 f9549292c36ae5169c6cebef925b121b
BLAKE2b-256 1879b4575845ea0c39cb4747ab95c6da04372fa89d68bfaa33935d0539da19f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

Details for the file yara_x-0.11.0-cp38-abi3-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.0-cp38-abi3-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 b935e33493b9ebec229ce2683e8b66ce48f53c15994e6065dfef84eab9be7a5e
MD5 a4b3ef5303e0e44c1961bea9f53ce885
BLAKE2b-256 a796b994fd1f6c69c310ca41b70866a278cd1bb9f0d2ec98154114df3ef47bea

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.0-cp38-abi3-macosx_10_9_x86_64.whl:

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page