Skip to main content

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.

Metadata

Release files for yara-x 1.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for yara-x 1.20.0
File
yara_x-1.20.0-pp311-pypy311_pp73-win_amd64.whl PyPy 3.11 PyPy 3.11 7.3 Windows x86-64 Details
yara_x-1.20.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.28+ x86-64 Details
yara_x-1.20.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl PyPy 3.11 PyPy 3.11 7.3 Linux glibc 2.28+ ARM64 Details
yara_x-1.20.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ x86-64 Details
yara_x-1.20.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ ARM64 Details
yara_x-1.20.0-cp38-abi3-win_amd64.whl CPython 3.8 abi3 Windows x86-64 Details
yara_x-1.20.0-cp38-abi3-manylinux_2_28_x86_64.whl CPython 3.8 abi3 Linux glibc 2.28+ x86-64 Details
yara_x-1.20.0-cp38-abi3-manylinux_2_28_aarch64.whl CPython 3.8 abi3 Linux glibc 2.28+ ARM64 Details
yara_x-1.20.0-cp38-abi3-macosx_14_0_x86_64.whl CPython 3.8 abi3 macOS 14.0+ x86-64 Details
yara_x-1.20.0-cp38-abi3-macosx_14_0_arm64.whl CPython 3.8 abi3 macOS 14.0+ ARM64 Details

Total release size: 89.5 MB

Release files / yara_x-1.20.0-pp311-pypy311_pp73-win_amd64.whl

Download URL yara_x-1.20.0-pp311-pypy311_pp73-win_amd64.whl
Size 8.4 MB
Tags PyPy 3.11 PyPy 3.11 7.3 Windows x86-64
SHA-256 checksum
How to use checksums
923a2777df3137ba68cd5f910296a8178ef7a15b42b7ba7159dfb701641061dc
BLAKE2b-256 checksum
How to use checksums
b0b03eb79f3aa61aba80c8f6b09d6b445d36fea1c57dec956b76bf436fad5fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl

Download URL yara_x-1.20.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Size 9.6 MB
Tags Linux glibc 2.28+ x86-64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
b9535e9a8c6d97b391edd72f43ba530a5853d1086b8e4de9494afd9afbc364a1
BLAKE2b-256 checksum
How to use checksums
cc4cf1a42484c80f6328757b66e3a2a0e626abe89e455719f4cb2e6331f7c69a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl

Download URL yara_x-1.20.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Size 9.6 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.11 PyPy 3.11 7.3
SHA-256 checksum
How to use checksums
867a02a9a3d6058c241ed24974c00f19f9edfeda1929b48e09f666abdd5dae70
BLAKE2b-256 checksum
How to use checksums
bee297a7d3ace303669e16e75fe7bcf0bbb1176dbeb8601e0f4772d7701085ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl

Download URL yara_x-1.20.0-pp311-pypy311_pp73-macosx_14_0_x86_64.whl
Size 8.9 MB
Tags PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
2f0eac8c24017bc2878390537b6d5442f179a260c40b6b85d7ebe207aee6c9ff
BLAKE2b-256 checksum
How to use checksums
4f801483ea5ec0fcabf8b221c5652391b4d3b2340faacb4d98e1cf8858c64cee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl

Download URL yara_x-1.20.0-pp311-pypy311_pp73-macosx_14_0_arm64.whl
Size 8.2 MB
Tags PyPy 3.11 PyPy 3.11 7.3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
147f867b7bf142397da3f1da886417f6f8fca48fa747f0977a525b8eb70b7636
BLAKE2b-256 checksum
How to use checksums
f3c6daa04d5dc8a5503cb91fda33f54896b4044f11ea005b27896a241aa4487c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-cp38-abi3-win_amd64.whl

Download URL yara_x-1.20.0-cp38-abi3-win_amd64.whl
Size 8.4 MB
Tags CPython 3.8 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d8419ee81dc6fe201d6f4497390a70284ecaa8a0ebd2e397eb33c9a882673534
BLAKE2b-256 checksum
How to use checksums
ff43cdb8d3025763be6abf6b24febf301c69c09e6d13c4db8d5a9b3a37d6e78a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-cp38-abi3-manylinux_2_28_x86_64.whl

Download URL yara_x-1.20.0-cp38-abi3-manylinux_2_28_x86_64.whl
Size 9.6 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
73e7508b01991cf2443771547a982048959481462e9b641162b7fc581063a4d1
BLAKE2b-256 checksum
How to use checksums
eb9ae3c3c988543ad48ce7e56fc146be4069b6fdc3bc248884ee4265c4470cab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-cp38-abi3-manylinux_2_28_aarch64.whl

Download URL yara_x-1.20.0-cp38-abi3-manylinux_2_28_aarch64.whl
Size 9.6 MB
Tags CPython 3.8 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
688499af8777b2b48ff4314b24ba255ec52309dbc31ac20f14e6c6a6fb55e67e
BLAKE2b-256 checksum
How to use checksums
af909e3ca8e5429f7cda3e88d3d08f5d8f369e3b54fbc9d9fc7fa4d30d876c43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-cp38-abi3-macosx_14_0_x86_64.whl

Download URL yara_x-1.20.0-cp38-abi3-macosx_14_0_x86_64.whl
Size 8.9 MB
Tags CPython 3.8 abi3 macOS 14.0+ x86-64
SHA-256 checksum
How to use checksums
9554d051962c41264c99fe70c07621fedd34a580aaaba80a4be892b0cfb615c3
BLAKE2b-256 checksum
How to use checksums
26c51d4dfbd69fa2987e29202788083c06c30b0cff5e35c80d073b39fcca9556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / yara_x-1.20.0-cp38-abi3-macosx_14_0_arm64.whl

Download URL yara_x-1.20.0-cp38-abi3-macosx_14_0_arm64.whl
Size 8.2 MB
Tags CPython 3.8 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
cc2d0daf9d1bc9ceee76c31f711773918d3763849906ae1c87469399398adb48
BLAKE2b-256 checksum
How to use checksums
661b98eb070ce71703d008a5ce1e63c46cb16e6b32fe56b6bd4701fcbaab337b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.20.0 This release

10 release files

1.7.1

10 release files

1.7.0

10 release files

1.4.0

10 release files

1.2.1

10 release files

1.2.0

10 release files

1.1.0

10 release files

0.7.0

16 release files

0.6.0

17 release files

0.5.0

16 release files

0.4.0

17 release files

0.3.0

17 release files

0.2.1

17 release files

0.2.0

17 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page