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.1.tar.gz (631.8 kB view details)

Uploaded Source

Built Distributions

yara_x-0.11.1-pp310-pypy310_pp73-win_amd64.whl (5.4 MB view details)

Uploaded PyPy Windows x86-64

yara_x-0.11.1-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.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded PyPy macOS 11.0+ ARM64

yara_x-0.11.1-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.1-pp39-pypy39_pp73-win_amd64.whl (5.4 MB view details)

Uploaded PyPy Windows x86-64

yara_x-0.11.1-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.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded PyPy macOS 11.0+ ARM64

yara_x-0.11.1-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.1-cp38-abi3-win_amd64.whl (5.4 MB view details)

Uploaded CPython 3.8+ Windows x86-64

yara_x-0.11.1-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.1-cp38-abi3-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded CPython 3.8+ macOS 11.0+ ARM64

yara_x-0.11.1-cp38-abi3-macosx_10_12_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.8+ macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: yara_x-0.11.1.tar.gz
  • Upload date:
  • Size: 631.8 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.1.tar.gz
Algorithm Hash digest
SHA256 c108f02932a23a011996d062a9c2b127d2b4aff63845f77a0f1f965924177004
MD5 bff56b89e2916746466d7d2758938f27
BLAKE2b-256 e133515a7a4e7a52eb1730605b83804ab8a6e8c56e5df8f90808c78026d1a4fa

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

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

File metadata

File hashes

Hashes for yara_x-0.11.1-pp310-pypy310_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 efb51e2f26d33b50cb28d6a745079809c046347650f88ce24297daf8e1eb687b
MD5 108ebc656e8950e8f888badf26e8e617
BLAKE2b-256 cac492a77c1b9b5aeb9115dbc168dc430bd5a962d61af2be970b3b23724fc2f4

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

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

File metadata

File hashes

Hashes for yara_x-0.11.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 406e6f2e0214b6354ce74023f38558e219636ef74edd3b8f1524723a39f77d36
MD5 a7197712c5798f11c526ef4b185b0070
BLAKE2b-256 4f394de3e2c536c1bde76748811dedd2abb8601d6ceb1e737cb9da3c71809d34

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-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.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50bd06d6a8aafd14567caa3d6d0343b7f863f22c27faadee9100040b28698306
MD5 d9eb725457596569b6b94bfea6fcc200
BLAKE2b-256 b9f9088f9b6bf0e8ff33964c41149d2f3aeb1daff4dbb9f9da1a28ad399d1999

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-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.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.1-pp310-pypy310_pp73-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 2ab21ea99d834b1c204c5feb8b963d0f4e5f52271c7d74db3983fd58139a7b6c
MD5 dcaa03ef2e5d82eaaccc9d059cdf3774
BLAKE2b-256 13652aa384338ec11f28d0fd2cd6e425d01673bd1972dcd622dc075a853e0be5

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-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.1-pp39-pypy39_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.1-pp39-pypy39_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 20dbbf3bbe2c2d859f72058264f806e9aade8448270cf46438041e2d620d9b28
MD5 d5d6cae3976b86ff8929192bfcbf3bb2
BLAKE2b-256 79a9009743caa11681f1c6b24be775e492f504eceea0bf6c02c4ae8c994831a2

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

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

File metadata

File hashes

Hashes for yara_x-0.11.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fb4020f9b17a88baf0ee47f420df4e50c44e3cbd671e54cae873bde5aa3276f1
MD5 6bb97ba2b0c5b5847646a648b3368551
BLAKE2b-256 29c071adfc231306cb62174b8ef26c515b10cb865a4404154f20930add974c0f

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-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.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e5c26bc065b7cf6fd7fb39120f0c653d2f125fb4576d44124560bf92be1a36d
MD5 b380393dd7cc8cfbe3be1e8a1b293b16
BLAKE2b-256 5ea0b3926b32343095a50738875eda70d58cd477bcb4d04e4ec2b4e57c058174

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-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.1-pp39-pypy39_pp73-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.1-pp39-pypy39_pp73-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 a3266833525e5c39618bdafba84abd021bcf2bb75bbeb73e1e38064aa4d83317
MD5 3745b7de946a67239baadabf8c4a4e96
BLAKE2b-256 c2efbefe328c4c30c65486ba51db4d3fc87d79196e5a91d46be115e3c2ccdf40

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: yara_x-0.11.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 5.4 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.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4cb41a7dfdf6795329d7676855f89329ec98f79655ed401510cf6d77400c2d3d
MD5 63138f7e69116a38b6ab3afd6b193dee
BLAKE2b-256 d03ec197f3b0fc018566d4c9204d75d6ad09aac0869da7e31da56702dcbdd44f

See more details on using hashes here.

Provenance

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

Publisher: release.yaml on VirusTotal/yara-x

Attestations:

File details

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

File metadata

File hashes

Hashes for yara_x-0.11.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fc26074fefa5222cf7933c194b7d165d07a9967f783b06ebb677a5de745cf525
MD5 d57ff5c3fae653868d98abd56255c4b8
BLAKE2b-256 1deb57348864c42147fd2aaccbac990542ea505f3979180900e7c7097b491ec2

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-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.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f254da00c10be8c15b8a763349de4ec426d74fe09b014e85125b7b3ae95a1ae
MD5 0f2c00e20a6c85349ccee4a54b437e2d
BLAKE2b-256 2b6eec42aebf50ccb3e35f481daa5c84bae800c31b50783e8a1c11c4800e986a

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-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.1-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for yara_x-0.11.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1885a88abf6016ac2f035ab5aef709f80548d7bc39b1da6ff96460145cfbb21e
MD5 765fe4feefeefa45ef8a8eea16cb5073
BLAKE2b-256 3ca1c577051d9165b9ee5d11b3ca8cc9db16be03d80ef53420f375ba24838ef5

See more details on using hashes here.

Provenance

The following attestation bundles were made for yara_x-0.11.1-cp38-abi3-macosx_10_12_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